@font-face { font-family: 'Kaisei HarunoUmi'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/kaisei-harunoumi-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei HarunoUmi'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/kaisei-harunoumi-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei HarunoUmi'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/kaisei-harunoumi-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'IBM Plex Sans Devanagari'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-devanagari-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #efebdc;
  --fg-light-base-body: #22231a;
  --fg-light-base-heading: #22231a;
  --fg-light-base-muted: #4e5040;
  --fg-light-base-link: #4a6611;
  --fg-light-base-inverse: #2b2c20;
  --bg-light-card: #e4dec7;
  --fg-light-card-body: #22231a;
  --fg-light-card-heading: #22231a;
  --fg-light-card-muted: #4e5040;
  --fg-light-card-link: #4a6611;
  --fg-light-card-inverse: #2b2c20;
  --bg-light-elevated: #f8f5ea;
  --fg-light-elevated-body: #22231a;
  --fg-light-elevated-heading: #22231a;
  --fg-light-elevated-muted: #4e5040;
  --fg-light-elevated-link: #4a6611;
  --fg-light-elevated-inverse: #2b2c20;
  --brand-light-accent: #4a6611;
  --brand-light-accent-hover: #38500a;
  --brand-light-on-accent: #fbfaf2;
  --focus-light-ring: #4a6611;
  --border-light-default: #6d7057;
  --border-light-subtle: #cfc8ae;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Clark Foot Questions: almanac on newsprint */

:root {
  --font-head: 'Kaisei HarunoUmi', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans Devanagari', 'Segoe UI', Arial, sans-serif;
  --olive: var(--brand-light-accent);
  --olive-deep: var(--brand-light-accent-hover);
  --on-olive: var(--brand-light-on-accent);
  --newsprint: var(--bg-light-base);
  --tint: var(--bg-light-card);
  --slip: var(--bg-light-elevated);
  --ink-rule: var(--border-light-default);
  --hair: var(--border-light-subtle);
  --lime: #bccc4a;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: 72rem;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Foot outlines and topic dots ---------- */

.vignette { margin: 0; }
.vignette svg, .slip-foot { display: block; width: 100%; height: auto; }

.f-line { fill: none; stroke: var(--ink-rule); stroke-width: 3.6; stroke-linejoin: round; }
.vignette-town .f-line, .slip-foot .f-line { stroke-width: 6; }
[transform*="scale(.5)"] > .f-line { stroke-width: 6; }
.f-fill { fill: var(--slip); }
.d-ink { fill: var(--olive); }
.d-open { fill: var(--slip); stroke: var(--olive); stroke-width: 2; }
.d-lime { fill: var(--lime); stroke: var(--olive); stroke-width: 2; }
.d-cut { fill: none; stroke: var(--slip); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Header: sticky masthead with double rule ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px double var(--ink-rule);
}

.mast {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mast-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.6rem 0;
}

.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.brand .site-logo { display: block; flex: none; width: clamp(11.5rem, 40vw, 15.5rem); max-width: 100%; height: auto; }
.site-menu { flex: none; }

/* Phone menu */

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--olive);
  border-radius: 3px;
  color: var(--olive-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-menu .menu-icon {
  position: relative;
  width: 1.1rem;
  height: 0.8rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.site-menu .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 30%;
  top: calc(50% - 1px);
  height: 2px;
  background: currentColor;
}

.site-menu[open] > summary { background: var(--olive); color: var(--on-olive); }

.site-menu > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  list-style: none;
  background: var(--slip);
  border-top: 3px double var(--ink-rule);
  border-bottom: 4px solid var(--olive);
}

.site-menu > ul > li { border-bottom: 1px solid var(--hair); }

.site-menu a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.site-menu a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.site-menu ul ul { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0 1rem; border-left: 3px solid var(--olive); }
.site-menu ul ul a { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; padding: 0.4rem 0; }

/* Desktop: a ruled bar under the nameplate, groups drop down as panels */

.mast-nav { display: none; }

@media (min-width: 64rem) {
  .site-menu { display: none; }
  .mast-nav { display: block; border-top: 1px solid var(--ink-rule); }

  .site-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav > ul > li + li { border-left: 1px solid var(--hair); }

  .site-nav > ul > li > a,
  .site-nav summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.9rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.96rem;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
  }

  .site-nav > ul > li:first-child > a,
  .site-nav > ul > li:first-child summary { padding-left: 0; }

  .site-nav > ul > li > a:hover,
  .site-nav summary:hover { text-decoration: underline; text-decoration-color: var(--olive); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

  .site-nav > ul > li:nth-last-child(-n+2) { margin-left: auto; }
  .site-nav > ul > li:last-child { margin-left: 0; }
  .site-nav > ul > li:last-child > a { color: var(--olive-deep); font-weight: 700; padding-right: 0; }

  .site-nav summary { list-style: none; }
  .site-nav summary::-webkit-details-marker { display: none; }
  .site-nav summary::after {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
  }

  .site-nav-group[open] > summary::after { transform: translateY(0.1rem) rotate(225deg); }

  .site-nav-group > ul {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    z-index: 40;
    min-width: 18rem;
    margin: 0;
    padding: 0.75rem 1.25rem 1rem;
    list-style: none;
    background: var(--slip);
    border: 1px solid var(--ink-rule);
    border-top: 3px solid var(--olive);
  }

  .site-nav-group > ul a { display: block; padding: 0.4rem 0; text-decoration: none; }
  .site-nav-group > ul a:hover { text-decoration: underline; }
}

/* ---------- Shared page parts ---------- */

.sheet { min-height: 60vh; }

.breadcrumbs { max-width: var(--page); margin: 0 auto; padding: 0.85rem var(--gutter) 0; font-size: 0.86rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.breadcrumbs li { position: relative; }
.breadcrumbs li + li::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--olive);
}

.olive-mark {
  display: block;
  width: 3rem;
  height: 0.5rem;
  background: var(--olive);
  box-shadow: 0 0.5rem 0 -0.3rem var(--lime);
}

.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.2rem 0 0.7rem; }
.prose h3 { font-size: 1.18rem; margin: 1.7rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--olive); }
.prose a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--olive); font-family: var(--font-head); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.65rem; border-bottom: 1px solid var(--hair); }
.prose th { font-family: var(--font-head); border-bottom: 2px solid var(--ink-rule); }

.photo-hero, .photo-inline { margin: 0 0 1.75rem; }
.photo-hero img, .photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink-rule);
  padding: 0.35rem;
  background: var(--slip);
  filter: sepia(0.18) saturate(0.9);
}

section[data-section][style] { padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem); margin: 1.5rem 0; }

/* ---------- Home: almanac front page ---------- */

.front-head {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.75rem;
  align-items: end;
}

.front-title h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.front-lines { max-width: 36rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 3px double var(--ink-rule); }
.front-lines .display-line { margin: 0 0 0.55rem; font-size: 1.08rem; }

.vignette-front { width: min(13.5rem, 62vw); justify-self: start; }

@media (min-width: 52rem) {
  .front-head { grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); column-gap: 3rem; }
  .vignette-front { justify-self: end; width: min(17rem, 100%); }
}

.front-desks {
  border-top: 1px solid var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
  padding: 1.5rem var(--gutter) 1.75rem;
}

.desks-head {
  max-width: calc(var(--page) - 2 * var(--gutter));
  margin: 0 auto 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.desk-grid {
  max-width: calc(var(--page) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  border-top: 2px solid var(--olive);
}

.desk {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.85rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--hair);
}

.desk-link { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; line-height: 1.3; text-decoration: none; }
.desk-dot { display: inline-block; width: 0.95rem; height: 0.95rem; margin-right: 0.45rem; vertical-align: -0.08em; }
.desk-link:hover { text-decoration: underline; }
.desk-note { font-size: 0.9rem; line-height: 1.45; }

@media (min-width: 52rem) {
  .desk-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .desk { padding: 1rem 1.1rem 1.1rem; border-bottom: 0; }
  .desk + .desk { border-left: 1px solid var(--hair); }
  .desk:first-child { padding-left: 0; }
}

.front-columns {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) 4.5rem;
}

.front-columns > * { max-width: var(--measure); }

@media (min-width: 64rem) {
  .front-columns { column-count: 3; column-gap: 2.5rem; column-rule: 1px solid var(--hair); }
  .front-columns > * { max-width: none; }
  .front-columns > :first-child,
  .front-columns > .photo-hero { column-span: all; }
  .front-columns > p:first-of-type { column-span: all; max-width: 46rem; font-size: 1.15rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink-rule); }
  .front-columns > .photo-hero img { max-height: 26rem; object-fit: cover; }
  .front-columns h2 { break-after: avoid; margin-top: 0; padding-top: 0.2rem; }
  .front-columns h2:not(:first-child) { margin-top: 1.75rem; }
  .front-columns p, .front-columns li { break-inside: avoid; }
}

/* ---------- Geo cluster: town page in two columns ---------- */

.town-head {
  max-width: var(--page);
  margin: 1rem auto 0;
  padding: 1.5rem var(--gutter);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  border-top: 3px double var(--ink-rule);
  border-bottom: 1px solid var(--ink-rule);
}

.vignette-town { max-width: 10rem; }
.town-title h1 { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); }

@media (min-width: 44rem) {
  .town-head { grid-template-columns: 12rem minmax(0, 1fr); column-gap: 2rem; }
}

.town-columns {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--gutter) 4.5rem;
}

.town-columns > * { max-width: var(--measure); }

@media (min-width: 60rem) {
  .town-columns { column-count: 2; column-gap: 3rem; column-rule: 1px solid var(--hair); }
  .town-columns > * { max-width: none; }
  .town-columns h2 { break-after: avoid; }
  .town-columns li, .town-columns p { break-inside: avoid; }
  .town-columns > :first-child { column-span: all; max-width: 46rem; font-size: 1.12rem; margin-bottom: 1.5rem; }
}

/* ---------- Topic cluster: ruled index ---------- */

.subject { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 4.5rem; }

.subject-head { padding: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--ink-rule); margin-bottom: 1.75rem; }
.subject-title h1 { margin: 1rem 0 0; font-size: clamp(1.9rem, 4.6vw, 2.9rem); }

.subject-body h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
}

.subject-body h2::before {
  content: '';
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--olive);
}

.subject-index { margin-top: 2.5rem; padding: 1.25rem 1.25rem 1.5rem; border-top: 3px double var(--ink-rule); }
.index-head { margin: 0 0 0.75rem; font-size: 1.25rem; }

.ruled-index ul { list-style: none; margin: 0; padding: 0; }
.ruled-index li { border-bottom: 1px solid var(--hair); }
.ruled-index a {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.65rem 0;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.ruled-index a::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--olive); }
.ruled-index a:hover { text-decoration: underline; }

/* ---------- Question detail: boxed question, column reply ---------- */

.reply { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem var(--gutter) 4.5rem; }

.reply-box {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem 1.4rem;
  border: 1.5px solid var(--ink-rule);
  outline: 1px solid var(--ink-rule);
  outline-offset: 4px;
  margin: 0.5rem 0 2.25rem;
}

.reply-q {
  display: block;
  width: 2.25rem;
  height: 0.35rem;
  margin-bottom: 1rem;
  background: var(--olive);
}

.reply-title h1 { margin: 0; font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.14; }

.reply-body > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.85;
  color: var(--olive-deep);
}

.reply-body p { hyphens: auto; }

/* ---------- About: colophon in two narrow columns ---------- */

.sources { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 4.5rem; }
.sources-head { padding: 1.75rem 0 1.25rem; border-bottom: 3px double var(--ink-rule); margin-bottom: 1.75rem; }
.sources-title h1 { margin: 1rem 0 0; font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 22ch; }

.sources-columns { max-width: var(--measure); font-size: 0.98rem; }

@media (min-width: 56rem) {
  .sources-columns { max-width: 52rem; column-count: 2; column-gap: 3rem; column-rule: 1px solid var(--hair); }
  .sources-columns h2 { break-after: avoid; margin-top: 0; }
  .sources-columns h2:not(:first-child) { margin-top: 1.75rem; }
  .sources-columns p, .sources-columns li { break-inside: avoid; }
}

/* ---------- Contact: lined letter sheet ---------- */

.letter { max-width: 46rem; margin: 0 auto; padding: 1.25rem var(--gutter) 4.5rem; }

.letter-sheet {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--ink-rule);
  border-top: 4px solid var(--olive);
  margin-bottom: 2.5rem;
}

.letter-title h1 { margin: 0 0 1.5rem; font-size: clamp(1.75rem, 4vw, 2.4rem); }

.letter-form { display: grid; gap: 1.35rem 2rem; }

@media (min-width: 40rem) {
  .letter-form { grid-template-columns: 1fr 1fr; }
  .line-wide, .letter-button { grid-column: 1 / -1; }
}

.line-field { display: grid; gap: 0.2rem; }
.line-label { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }

.line-field input,
.line-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.1rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink-rule);
  border-radius: 0;
}

.line-field textarea {
  resize: vertical;
  line-height: 2rem;
  padding-top: 0.25rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2rem - 1px), var(--hair) calc(2rem - 1px), var(--hair) 2rem);
  background-attachment: local;
}

.line-field input:focus,
.line-field textarea:focus { outline: 2px solid var(--olive); outline-offset: 3px; border-bottom-color: var(--olive); }

.letter-button {
  justify-self: start;
  min-height: 3rem;
  padding: 0.6rem 1.9rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-olive);
  background: var(--olive);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.letter-button:hover { background: var(--olive-deep); }
.letter-button:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }

.letter-body { max-width: var(--measure); }

/* ---------- Thank you: printed slip ---------- */

.slip-page { padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 4.5rem; }

.slip {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem;
  border: 1.5px dashed var(--ink-rule);
}

.slip-foot { width: 3.25rem; margin-bottom: 0.75rem; }
.slip-title h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.slip-body { font-size: 0.98rem; }
.slip-back { margin: 1.25rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--hair); font-family: var(--font-head); font-weight: 700; }

/* ---------- Footer: colophon ---------- */

.site-footer { border-top: 3px double var(--ink-rule); }

.colophon {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
  display: grid;
  gap: 1.75rem;
}

.colophon-name { margin: 0 0 0.35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.colophon-line { margin: 0; font-size: 0.92rem; max-width: 22rem; }
.colophon-head { margin: 0 0 0.5rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--olive); font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.colophon-list { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.colophon-list a { display: inline-block; padding: 0.3rem 0; }

@media (min-width: 48rem) {
  .colophon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .colophon { grid-template-columns: 1.3fr 1.2fr 1.2fr 1fr; column-gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
