/* AWC-DIRECT LLC. Fonts: Libre Caslon Display and Text, SIL Open Font License, self-hosted. */
@font-face { font-family: "Libre Caslon Display"; src: url("/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --blotter: #3d0e18;
  --blotter-hi: #571524;
  --sheet: #f5f5f2;
  --sheet-low: #ebeae5;
  --sheet-low-hi: #e2e0d9;
  --ink: #15151c;
  --on-blotter: #f5f5f2;
  --error: #8a1f1f;
  --display: "Libre Caslon Display", "Big Caslon", Georgia, serif;
  --text: "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --edge: clamp(12px, 8.5vw, 124px);
  --pad: clamp(20px, 4.4vw, 64px);
  --gap: clamp(24px, 3.4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --small: 17px;
  --body: 22px;
  --h3: clamp(25px, 2.2vw, 31px);
  --h2: clamp(36px, 5.2vw, 74px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--blotter-hi) var(--blotter); scroll-padding-top: 28px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blotter); color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--blotter); color: var(--on-blotter); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blotter-hi); }
:focus-visible { outline: 2px solid var(--blotter-hi); outline-offset: 3px; }
.reply :focus-visible, footer :focus-visible { outline-color: var(--on-blotter); }
.slip :focus-visible { outline-color: var(--blotter-hi); }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h3 { font-family: var(--text); font-weight: 400; font-size: var(--h3); line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--sheet); color: var(--ink); padding: 10px 16px; font-size: var(--small); }
.skip:focus { top: 12px; }

/* The sheet: laid cotton paper, a seamless tile with laid and chain lines */
.sheet { margin-inline: var(--edge); background: var(--sheet) url("/img/laid-paper.png") 0 0 / 384px 384px; }
.page { display: grid; grid-template-columns: minmax(190px, 3fr) minmax(0, 9fr); gap: 0 var(--gap); padding: 44px var(--pad) 0; }
main { min-width: 0; }

/* Letterhead, which is also the navigation */
.letterhead { position: sticky; top: 44px; align-self: start; }
.seal { display: block; width: 128px; height: 128px; margin: 0 0 16px; animation: press 1.2s var(--ease) both; }
.seal img { width: 100%; height: 100%; }
@keyframes press { from { transform: scale(1.05); opacity: .3; } to { transform: none; opacity: 1; } }
.firm { display: block; font-size: var(--small); line-height: 1.3; letter-spacing: .05em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mail { display: block; width: fit-content; margin-top: 4px; font-size: var(--small); line-height: 1.4; }
.letterhead nav { margin-top: 24px; display: grid; gap: 4px; font-size: var(--small); }
.letterhead nav a { text-decoration: none; width: fit-content; }
.letterhead nav a:hover, .letterhead nav a[aria-current="true"] { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--blotter); color: var(--on-blotter); font: 400 var(--small)/1 var(--text); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { background: var(--blotter-hi); color: var(--on-blotter); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.letterhead .btn { margin-top: 22px; }

/* The letter */
h1 { font-size: clamp(56px, 6.25vw, 90px); line-height: 1.02; letter-spacing: -0.015em; }
.to { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 26px; }
.to select { font: inherit; color: inherit; background-color: var(--sheet-low); border: 0; border-radius: 0; padding: 2px 34px 2px 10px; appearance: none; cursor: pointer; transition: background-color .25s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%233d0e18'/%3E%3C/svg%3E");
  background-position: calc(100% - 12px) 55%; background-repeat: no-repeat; }
.to select:hover { background-color: var(--sheet-low-hi); }
.body { margin-top: 18px; max-width: 37em; }
.body p + p { margin-top: 16px; }
.swap { transition: opacity .28s var(--ease); }
.swap.out { opacity: 0; }
.signoff { margin-top: 26px; }
.signature { margin-top: 2px; font-weight: 700; font-size: var(--small); letter-spacing: .05em; }

/* Sections on the sheet */
.block { margin-top: clamp(96px, 11vw, 160px); }
.block:last-child { padding-bottom: clamp(96px, 10vw, 144px); }
h2 { font-size: var(--h2); line-height: 1; letter-spacing: -0.015em; }
.intro { margin-top: 14px; max-width: 34em; line-height: 1.45; }
figcaption { margin-top: 10px; font-size: var(--small); font-style: italic; line-height: 1.4; }
figure img { width: 100%; }

/* Schedule of work: words beside a tipped-in painting */
.schedule { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: var(--gap); margin-top: 44px; align-items: start; }
.schedule figure, .enc-grid figure { position: sticky; top: 28px; }
.work { display: grid; gap: 40px; }
.work p { margin-top: 8px; }

/* How an engagement runs: a wide painting, then the steps in order */
.band { margin-top: 44px; }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--gap); }
.steps p { margin-top: 8px; }

/* Enclosures: a typed list, as at the foot of a letter */
.enc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--gap); margin-top: 44px; align-items: start; }
.enclosures { display: grid; gap: 30px; }
.enclosure h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.enclosure h3 a:hover { text-decoration-thickness: 2px; }
.enclosure p { margin-top: 6px; line-height: 1.45; }
.publisher { margin-top: 32px; font-size: var(--small); line-height: 1.5; }

/* Reply */
.reply { margin-inline: var(--edge); background: var(--blotter); color: var(--on-blotter); padding: clamp(72px, 8vw, 112px) var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px var(--gap); align-items: start; }
.reply a:hover { color: var(--on-blotter); }
.reply figure { margin-top: 40px; }
.reply figcaption { color: var(--on-blotter); }
.slip { position: sticky; top: 28px; background: var(--sheet) url("/img/laid-paper.png") 0 0 / 384px 384px; color: var(--ink); padding: clamp(22px, 2.6vw, 36px); }
.slip .btn { justify-self: start; min-width: 168px; }
.slip a:hover { color: var(--blotter-hi); }
.slip form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: var(--small); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 400 var(--small)/1.5 var(--text); color: var(--ink); background-color: var(--sheet-low); border: 0; border-radius: 0; padding: 13px 14px; transition: background-color .25s var(--ease); }
.field select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%233d0e18'/%3E%3C/svg%3E"); background-position: calc(100% - 13px) 55%; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--sheet-low-hi); }
.field textarea { min-height: 176px; resize: vertical; display: block; }
.full { grid-column: 1 / -1; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: invisible spam trap, not a rule */
.terms { font-size: 15px; line-height: 1.45; }
.form-error { grid-column: 1 / -1; color: var(--error); font-size: var(--small); line-height: 1.45; }
.slip .sent:focus { outline: none; }
.slip .sent h3 { margin-bottom: 10px; }
.slip .sent p { font-size: var(--small); }
.slip .sent .btn { margin-top: 22px; }

/* The close: the letter ends on its signature */
footer { color: var(--on-blotter); padding: 16px calc(var(--edge) + var(--pad)) 32px; }
footer a:hover { color: var(--on-blotter); }
.closing { max-width: 37em; }
.close { font-family: var(--display); font-size: min(96px, calc((100vw - 2 * (var(--edge) + var(--pad))) / 8.4)); line-height: 1.05; letter-spacing: -0.015em; white-space: nowrap; margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 18px; font-size: var(--small); }
.fine { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 56ch; }

/* Privacy */
.policy { padding-bottom: clamp(96px, 10vw, 144px); }
.policy h1 { font-size: var(--h2); line-height: 1; }
.policy .meta { margin-top: 14px; font-size: var(--small); font-style: italic; }
.policy h2 { font-family: var(--text); font-size: var(--h3); line-height: 1.15; letter-spacing: -0.005em; margin-top: 48px; }
.policy p, .policy li { font-size: var(--small); line-height: 1.65; max-width: 44em; }
.policy p { margin-top: 12px; }
.policy ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.policy li + li { margin-top: 6px; }
.policy .box { margin-top: 20px; padding: 24px 26px; background: var(--sheet-low); }
.policy .box p:first-child { margin-top: 0; }
.lost h1 { font-size: clamp(42px, 8vw, 90px); }
.lost p { font-size: var(--body); line-height: 1.5; }

@media (max-width: 980px) {
  h1 { font-size: clamp(42px, 8vw, 78px); }
  .page { grid-template-columns: 1fr; padding-top: 22px; }
  .letterhead { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; align-items: center; margin-bottom: 30px; }
  .seal { width: 64px; height: 64px; margin: 0; }
  .firm { display: flex; align-items: center; min-height: 28px; }
  .mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
  .letterhead .btn { grid-column: 3; grid-row: 1; margin-top: 0; min-height: 44px; padding: 0 18px; }
  .letterhead nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }
  .letterhead nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .letterhead nav .here-only { display: none; }
  .to select { min-height: 44px; }
  .schedule, .enc-grid, .reply { grid-template-columns: 1fr; }
  .schedule figure, .enc-grid figure, .slip { position: static; }
  .enc-grid figure { order: 2; }
}
@media (max-width: 560px) {
  :root { --body: 19px; --edge: 12px; }
  h1 { font-size: clamp(36px, 10.8vw, 42px); }
  .seal { width: 52px; height: 52px; }
  .firm { letter-spacing: .03em; }
  .mail { font-size: 15px; }
  .letterhead { gap: 0 10px; }
  .letterhead .btn { padding: 0 14px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .slip form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
