/* ============================================================
   DS Tax Solutions
   "Schedule of Forms" — warm paper ground, oxblood seal accent,
   a ruled schedule instead of cards.

   Contents
     1.  Fonts
     2.  Tokens (light / dark / explicit override)
     3.  Reset & base
     4.  Layout primitives
     5.  Typography helpers
     6.  Buttons
     7.  Masthead & nav
     8.  Hero
     9.  Section framing
     10. Schedule of returns + seal
     11. Year-round panels
     12. Credentials
     13. About & bio
     14. Steps
     15. Deadlines table
     16. FAQ
     17. Contact & form
     18. Footer
     19. Document pages (privacy)
     20. Motion & print
   ============================================================ */


/* 1. Fonts ------------------------------------------------- */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/public-sans-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}


/* 2. Tokens ------------------------------------------------ */

:root {
  /* Type */
  --display: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Scale — modest ratio, tightened at the display end */
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  --t-3xl: clamp(2.1rem, 1.4rem + 3.1vw, 3.6rem);

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 34rem;
  --shell: 72rem;
  --band: clamp(4rem, 9vw, 7rem);
  --radius: 3px;

  /* Colour — light. Neutrals carry a red-brown bias toward the seal. */
  --paper: #fbf9f6;
  --surface: #ffffff;
  --sunken: #f4efe9;
  --ink: #191513;
  --ink-soft: #3d3531;
  --muted: #6e635c;
  --line: #e4dcd4;
  --line-strong: #cfc3b8;
  --seal: #7b2d34;          /* text, rules, small marks — tuned for contrast on --paper */
  --seal-hover: #62232a;
  --seal-solid: #7b2d34;    /* large filled areas — tuned to stay oxblood, not pink */
  --seal-solid-hover: #62232a;
  --seal-wash: #f6ebe9;
  --brass: #96773d;
  --on-seal: #fdf8f6;
  --danger: #a03028;
  --focus: #7b2d34;
  --shadow: 0 1px 2px rgba(25, 21, 19, 0.05), 0 12px 28px -18px rgba(25, 21, 19, 0.28);
}

/* System dark, unless the viewer explicitly chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #141110;
    --surface: #1c1917;
    --sunken: #221e1b;
    --ink: #f2ede8;
    --ink-soft: #ddd4cd;
    --muted: #a3968e;
    --line: #2f2825;
    --line-strong: #443a35;
    --seal: #e1918a;
    --seal-hover: #eda9a2;
    --seal-solid: #9a3841;
    --seal-solid-hover: #b04450;
    --seal-wash: #2a1a19;
    --brass: #c6a163;
    --on-seal: #fff1ee;
    --danger: #f0938a;
    --focus: #e1918a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -18px rgba(0, 0, 0, 0.9);
  }
}

/* Explicit dark choice wins over a light OS */
:root[data-theme='dark'] {
  --paper: #141110;
  --surface: #1c1917;
  --sunken: #221e1b;
  --ink: #f2ede8;
  --ink-soft: #ddd4cd;
  --muted: #a3968e;
  --line: #2f2825;
  --line-strong: #443a35;
  --seal: #e1918a;
  --seal-hover: #eda9a2;
  --seal-solid: #9a3841;
  --seal-solid-hover: #b04450;
  --seal-wash: #2a1a19;
  --brass: #c6a163;
  --on-seal: #fff1ee;
  --danger: #f0938a;
  --focus: #e1918a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 28px -18px rgba(0, 0, 0, 0.9);
}


/* 3. Reset & base ------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.25; }

p { margin: 0; }

a { color: var(--seal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--seal-hover); }

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--seal-solid);
  color: var(--on-seal);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 140ms ease;
}
.skip:focus { top: 0.75rem; color: var(--on-seal); }


/* 4. Layout primitives ------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* 5. Typography helpers ------------------------------------ */

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow,
.rail-label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--seal);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--seal);
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}

.footnote {
  margin-top: 1.25rem;
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: var(--measure);
}

.tag {
  display: inline-block;
  vertical-align: 0.14em;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seal);
  background: var(--seal-wash);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}


/* 6. Buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--body);
  font-size: var(--t-base);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--solid {
  background: var(--seal-solid);
  color: var(--on-seal);
}
.btn--solid:hover { background: var(--seal-solid-hover); color: var(--on-seal); }

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }


/* 7. Masthead ---------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-seal);
  background: var(--seal-solid);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--seal-solid), inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--seal-solid);
}

.wordmark__text { display: flex; flex-direction: column; line-height: 1.1; }

.wordmark__name {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 0;
}

.wordmark__sub {
  display: none;                /* shown once there is room for it on one line */
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.22rem;
}

.nav { display: none; gap: 1.75rem; }

.nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--ink-soft);
  font-size: var(--t-base);
  text-decoration: none;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.1rem;
  height: 1px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.masthead__cta { padding: 0.5rem 0.9rem; font-size: var(--t-sm); }

@media (min-width: 30rem) {
  .wordmark__sub { display: block; }
}

@media (min-width: 62rem) {
  .nav { display: flex; }
  .masthead__cta { padding: 0.55rem 1.1rem; }
}


/* 8. Hero -------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, var(--surface), var(--paper) 70%);
}

.hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }

.hero h1 { max-width: 30ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}

.hero__facts li { display: flex; align-items: baseline; gap: 0.6rem; }

.hero__facts .mono {
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--seal);
}


/* 9. Section framing --------------------------------------- */

.section { padding-block: var(--band); }
.section + .section { border-top: 1px solid var(--line); }

.section--inverse {
  background: var(--sunken);
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 0.75rem 3rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section__intro { display: flex; flex-direction: column; gap: 0.9rem; }
.section__intro p { max-width: var(--measure); color: var(--muted); }

@media (min-width: 55rem) {
  .section__head { grid-template-columns: 11rem minmax(0, 1fr); }
  .section__head .rail-label { padding-top: 0.6rem; }
}


/* 10. Schedule of returns ---------------------------------- */

.schedule { border-top: 1px solid var(--line-strong); }

.schedule__row {
  display: grid;
  gap: 0.4rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.schedule__code {
  font-family: var(--mono);
  font-size: var(--t-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--seal);
  font-variant-numeric: tabular-nums;
}

.schedule__body { display: flex; flex-direction: column; gap: 0.5rem; }
.schedule__body p { color: var(--muted); max-width: 42rem; }

.schedule__seal { display: none; }

@media (min-width: 55rem) {
  .schedule__row { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
  .schedule__code { padding-top: 0.28rem; }

  .schedule__row--flag { grid-template-columns: 11rem minmax(0, 1fr) 8.5rem; }
  .schedule__seal {
    display: block;
    width: 7.5rem;
    justify-self: end;
    align-self: center;
  }
}

.schedule__seal svg { display: block; width: 100%; height: auto; }

.seal-ring { fill: none; stroke: var(--brass); }
.seal-ring--outer { stroke-width: 2; }
.seal-ring--inner { stroke-width: 0.75; opacity: 0.75; }

.seal-type {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  fill: var(--brass);
}

.seal-mark {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--seal);
}

.seal-rule { stroke: var(--brass); stroke-width: 0.75; opacity: 0.6; }


/* 11. Year-round panels ------------------------------------ */

.yearround {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.yearround__grid { display: grid; gap: 1.25rem; }

.panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel > p { color: var(--muted); }

.ticks { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.35rem; }

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--t-base);
  color: var(--ink-soft);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--brass);
}

@media (min-width: 44rem) {
  .yearround__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 55rem) {
  .yearround { grid-template-columns: 11rem minmax(0, 1fr); }
  .yearround > .rail-label { padding-top: 0.35rem; }
}


/* 12. Credentials ------------------------------------------ */

.creds { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }

.cred {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.cred p { color: var(--muted); max-width: var(--measure); }

@media (min-width: 48rem) {
  .creds { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); }
  .cred:nth-child(odd) { padding-right: 0; }
}


/* 13. About & bio ------------------------------------------ */

.bio {
  display: grid;
  gap: 1.75rem 3rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line-strong);
}

.bio__aside { display: flex; flex-direction: column; gap: 0.9rem; }

.bio__portrait { margin: 0 0 0.4rem; }
.bio__portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.bio__role {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
}

.bio__since {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--muted);
}
.bio__since .mono {
  font-size: var(--t-xl);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.bio__body { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.bio__body p { color: var(--muted); }

.bio__lead {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (min-width: 55rem) {
  .bio { grid-template-columns: 11rem minmax(0, 1fr); }
  .bio__aside { padding-top: 0.3rem; }
}


/* 14. Steps ------------------------------------------------ */

.steps { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }

.step {
  display: grid;
  gap: 0.45rem;
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.step p:last-child { color: var(--muted); max-width: 42rem; }

.step__n {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (min-width: 55rem) {
  .step { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 3rem; }
  .step__n { grid-row: 1 / span 2; padding-top: 0.45rem; }
}


/* 15. Deadlines table -------------------------------------- */

.table-scroll { overflow-x: auto; }

.deadlines {
  width: 100%;
  min-width: 34rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.deadlines th,
.deadlines td {
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.deadlines thead th {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.7rem;
}

.deadlines tbody th { color: var(--seal); font-size: var(--t-base); font-weight: 500; }
.deadlines td { color: var(--ink-soft); }
.deadlines tbody tr:last-child th,
.deadlines tbody tr:last-child td { border-bottom: 1px solid var(--line-strong); }


/* 16. FAQ -------------------------------------------------- */

.faq { border-top: 1px solid var(--line-strong); max-width: 52rem; }

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.15rem;
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: '+';
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--seal);
  transition: transform 180ms ease;
}
.qa[open] summary::after { content: '\2013'; }
.qa summary:hover { color: var(--seal); }

.qa__body { padding-bottom: 1.35rem; }
.qa__body p { color: var(--muted); max-width: 44rem; }


/* 17. Contact & form --------------------------------------- */

.section--contact { background: var(--sunken); border-top: 1px solid var(--line); }

.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }

.contact__intro { display: flex; flex-direction: column; gap: 1rem; }
.contact__intro > p { color: var(--muted); max-width: var(--measure); }

.details { display: flex; flex-direction: column; gap: 0; margin: 1rem 0 0; }

.details__row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-base);
}
.details__row:last-child { border-bottom: 1px solid var(--line); }

.details dt {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}
.details dd { margin: 0; color: var(--ink-soft); }

.details__link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: var(--t-sm);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-pair { display: grid; gap: 1.1rem; }

.field label {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.req { color: var(--seal); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea { resize: vertical; min-height: 7rem; }

.field select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) calc(50% + 1px), calc(100% - 0.75rem) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--seal);
  box-shadow: 0 0 0 3px var(--seal-wash);
  outline: none;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--danger); }

.error { font-size: var(--t-sm); color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { font-size: var(--t-base); color: var(--ink-soft); }
.form__status:empty { display: none; }
.form__status[data-state='ok'] { color: var(--seal); font-weight: 600; }
.form__status[data-state='error'] { color: var(--danger); }

.form__note { font-size: var(--t-sm); color: var(--muted); }

@media (min-width: 30rem) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}


/* 18. Footer ----------------------------------------------- */

.footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: var(--t-base);
}

.footer__inner { display: grid; gap: 1.75rem; }

.footer__owner { margin-top: 0.4rem; color: var(--muted); font-size: var(--t-sm); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--t-sm); }
.footer__nav a:hover { color: var(--seal); text-decoration: underline; }

.footer__legal { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer__legal p { font-size: var(--t-sm); color: var(--muted); }
.footer__disclaimer { max-width: 46rem; }

@media (min-width: 55rem) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
}


/* 19. Document pages --------------------------------------- */

.doc { padding-block: clamp(3rem, 7vw, 5rem) var(--band); }

.doc__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-strong);
}

.doc__head h1 { max-width: 16ch; }

.doc__date { color: var(--muted); }
.doc__date .mono {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc__body { display: flex; flex-direction: column; }

/* Clauses are numbered because a legal document is referred to by number. */
.clause {
  display: grid;
  gap: 0.5rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.clause__n { color: var(--seal); font-size: var(--t-base); }

.clause__body { display: flex; flex-direction: column; gap: 0.85rem; max-width: 40rem; }
.clause__body h2 { font-size: var(--t-xl); }
.clause__body p { color: var(--muted); }
.clause__body strong { color: var(--ink-soft); font-weight: 600; }

.doc__back { margin-top: clamp(2rem, 4vw, 3rem); font-size: var(--t-base); }

@media (min-width: 55rem) {
  .clause { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
  .clause__n { padding-top: 0.4rem; }
}


/* 20. Motion & print --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .masthead, .skip, .hero__actions, .form, .footer__nav { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .qa__body { display: block; }
}
