/* =========================================================================
   DivorceTalk — Editorial Stylesheet
   Aesthetic: warm cream paper, deep moss accent, terracotta highlight.
   Type: Fraunces (display), Newsreader (body), IBM Plex Mono (labels).
   ========================================================================= */

:root {
  --ink:         #1B1A17;
  --ink-soft:    #3D3A35;
  --ink-mute:    #6B6558;
  --paper:       #F5F0E6;
  --paper-warm:  #EFE8D9;
  --paper-deep:  #E5DCC8;
  --rule:        #C8BCA3;
  --rule-soft:   #D9CFB8;
  --moss:        #2C4A3D;
  --moss-light:  #4A6F60;
  --ember:       #B85431;
  --ember-light: #D9764F;

  --serif-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --serif-body:    'Newsreader', 'Source Serif Pro', Georgia, serif;
  --mono:          'IBM Plex Mono', 'Courier New', monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3rem, 8vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper texture via layered gradients */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184, 84, 49, 0.025), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(44, 74, 61, 0.03), transparent 50%);
  z-index: -1;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

a:hover {
  color: var(--ember);
  text-decoration-color: var(--ember);
}

/* =========================================================================
   Typography
   ========================================================================= */

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  font-weight: 400;
}

h2:first-child { margin-top: 0; }

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-variation-settings: "SOFT" 100, "opsz" 24;
}

h4 {
  font-size: 1.0625rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ember);
  font-weight: 500;
  display: inline-block;
}

.lede {
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  font-style: italic;
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 36;
}

p { margin-bottom: 1.2em; max-width: var(--measure); }

p.full { max-width: none; }

strong { font-weight: 600; color: var(--ink); }

em { font-style: italic; }

blockquote {
  border-left: 2px solid var(--ember);
  padding: 0.25em 0 0.25em 1.5em;
  margin: 2em 0;
  font-style: italic;
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-variation-settings: "opsz" 36;
  color: var(--ink-soft);
  max-width: var(--measure);
}

ul, ol {
  margin: 0 0 1.4em 1.25em;
  max-width: var(--measure);
}

li { margin-bottom: 0.5em; padding-left: 0.25em; }

ul li::marker { color: var(--ember); }
ol li::marker { color: var(--moss); font-family: var(--mono); font-size: 0.9em; }

hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: var(--section) 0;
  position: relative;
}

hr.ornament {
  background: transparent;
  text-align: center;
  height: auto;
}

hr.ornament::after {
  content: "❦";
  color: var(--moss);
  font-size: 1.25rem;
  background: var(--paper);
  padding: 0 1rem;
}

/* =========================================================================
   Layout
   ========================================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { min-height: 60vh; }

/* =========================================================================
   Site Header
   ========================================================================= */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(245, 240, 230, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif-display);
  font-size: 1.375rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 36;
  letter-spacing: -0.01em;
}

.brand-name em {
  font-style: italic;
  color: var(--moss);
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  margin: 0;
  align-items: center;
}

nav.site-nav li { margin: 0; padding: 0; }

nav.site-nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

nav.site-nav a:hover { color: var(--ember); }

nav.site-nav a.is-active {
  color: var(--ink);
}

nav.site-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ember);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 820px) {
  nav.site-nav { display: none; }
  nav.site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 1.5rem;
  }
  nav.site-nav.is-open ul {
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
  }
  .nav-toggle { display: inline-block; }
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-text .eyebrow { margin-bottom: 1.25rem; }

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--moss);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.hero-text .lede {
  margin-bottom: 2rem;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-art {
  position: relative;
}

.hero-art svg { width: 100%; height: auto; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; opacity: 0.95; }
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-arrow::after {
  content: "→";
  transition: transform 200ms ease;
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* =========================================================================
   Topic Grid (Home page)
   ========================================================================= */

.topics {
  padding: var(--section) 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: end;
}

.section-head h2 { margin: 0; }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.topic-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 250ms ease, transform 250ms ease;
  position: relative;
}

.topic-card:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

.topic-card .topic-icon {
  width: 44px;
  height: 44px;
  color: var(--moss);
}

.topic-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.topic-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.topic-card .topic-arrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-top: auto;
  padding-top: 0.5rem;
}

.topic-card .topic-arrow::after {
  content: " →";
  transition: transform 200ms ease;
  display: inline-block;
}

.topic-card:hover .topic-arrow::after {
  transform: translateX(4px);
}

/* =========================================================================
   Article Layout (content pages)
   ========================================================================= */

.article {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section);
}

.article-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
}

.article-header .eyebrow { margin-bottom: 1.5rem; }

.article-header h1 { margin-bottom: 1.25rem; }

.article-header .lede { margin-bottom: 1.5rem; }

.article-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-body p { max-width: none; }

.article-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: 2.5em;
}

.article-body h2 .marginalia,
.article-body h3 .marginalia {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Pull-callouts inside articles */
.callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--moss);
  padding: 1.5rem 1.75rem;
  margin: 2.5em 0;
  font-size: 0.98rem;
  border-radius: 0 4px 4px 0;
}

.callout .callout-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.callout p:last-child { margin-bottom: 0; }

.callout.warning {
  border-left-color: var(--ember);
  background: rgba(184, 84, 49, 0.07);
}

.callout.warning .callout-label { color: var(--ember); }

/* Definition list — used for facts/timelines */
.facts {
  margin: 2em 0;
  border-top: 1px solid var(--rule);
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding-top: 1rem;
  font-weight: 500;
}

.facts dd {
  padding: 0.25rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  margin: 0;
  font-size: 1.05rem;
}

/* Numbered process steps */
.steps {
  list-style: none;
  margin: 2em 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  margin: 0;
}

.steps li:last-child { border-bottom: 1px solid var(--rule); }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ember);
  font-weight: 500;
}

.steps li strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

/* Next/Prev navigation */
.article-nav {
  max-width: 760px;
  margin: var(--section) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.article-nav a {
  background: var(--paper);
  padding: 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background 200ms ease;
}

.article-nav a:hover { background: var(--paper-warm); color: var(--ink); }

.article-nav .nav-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ember);
  display: block;
  margin-bottom: 0.5rem;
}

.article-nav .nav-title {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.article-nav .next { text-align: right; }

@media (max-width: 600px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
}

/* =========================================================================
   Resources / Listing pages
   ========================================================================= */

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.resource-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}

.resource-list .res-title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.resource-list .res-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.resource-list .res-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  background: var(--paper-warm);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* =========================================================================
   Newsletter / CTA strip
   ========================================================================= */

.cta-strip {
  background: var(--moss);
  color: var(--paper);
  padding: var(--section) 0;
  margin-top: var(--section);
}

.cta-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-strip .eyebrow { color: var(--ember-light); }

.cta-strip h2 {
  color: var(--paper);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 1rem 0 1.25rem;
}

.cta-strip p { color: rgba(245, 240, 230, 0.85); max-width: none; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  background: rgba(245, 240, 230, 0.1);
  border: 1px solid rgba(245, 240, 230, 0.3);
  color: var(--paper);
  font-family: var(--serif-body);
  font-size: 1rem;
  border-radius: 2px;
}

.newsletter-form input::placeholder { color: rgba(245, 240, 230, 0.55); }

.newsletter-form input:focus {
  outline: none;
  border-color: var(--ember-light);
  background: rgba(245, 240, 230, 0.15);
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--ember);
  border: 1px solid var(--ember);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease;
}

.newsletter-form button:hover {
  background: var(--ember-light);
  border-color: var(--ember-light);
}

@media (max-width: 760px) {
  .cta-strip .container { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================================
   Site Footer
   ========================================================================= */

.site-footer {
  background: var(--paper-deep);
  padding: var(--section) 0 2rem;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 1rem;
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 0.5rem; padding: 0; }

.footer-grid a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--ember); }

.footer-brand p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 28em;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.footer-disclaimer {
  background: rgba(184, 84, 49, 0.08);
  border: 1px solid rgba(184, 84, 49, 0.2);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 4px;
}

.footer-disclaimer strong { color: var(--ember); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Page-load reveal animation (subtle)
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * {
    opacity: 0;
    transform: translateY(8px);
    animation: gentle-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-text .eyebrow { animation-delay: 50ms; }
  .hero-text h1 { animation-delay: 200ms; }
  .hero-text .lede { animation-delay: 350ms; }
  .hero-text .hero-actions { animation-delay: 500ms; }

  .hero-art {
    opacity: 0;
    animation: fade-in 1000ms ease 400ms forwards;
  }

  @keyframes gentle-rise {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    to { opacity: 1; }
  }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .cta-strip, .article-nav { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* =========================================================================
   Footer address (added in upgrade)
   ========================================================================= */

.footer-address {
  font-style: normal;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* =========================================================================
   Spousal Support Estimator (tools page)
   ========================================================================= */

.estimator-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin: 2.5rem 0;
  border-radius: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}

.form-field input[type="number"] {
  font-family: var(--serif-body);
  font-size: 1.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input[type="number"]:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(44, 74, 61, 0.12);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-style: italic;
}

.results {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.results h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.result-figure {
  font-family: var(--serif-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  color: var(--moss);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.result-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 56ch;
}

/* =========================================================================
   FAQ list
   ========================================================================= */

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
  margin: 0;
  display: block;
}

.faq-q {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 80, "opsz" 36;
  margin: 0 0 0.6rem;
  color: var(--ink);
  line-height: 1.3;
}

.faq-q::before {
  content: "Q. ";
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ember);
  font-weight: 500;
  vertical-align: 0.15em;
  letter-spacing: 0.08em;
}

.faq-a {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.faq-a p {
  margin: 0;
  max-width: none;
}

.faq-a::before {
  content: "A. ";
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--moss);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-right: 0.25em;
}

/* =========================================================================
   Glossary
   ========================================================================= */

.letter-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1rem;
  background: var(--paper-warm);
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.letter-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: all 150ms ease;
}

.letter-index a:hover {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
}

.glossary {
  margin: 0;
}

.glossary dt {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 80, "opsz" 24;
  color: var(--ink);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 5rem;
}

.glossary dt:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.glossary dd {
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* =========================================================================
   Visually hidden helper
   ========================================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
