/* ===========================================================
   Throughline Wellbeing Studio — Ink, Marigold and Paper
   Palette: primary #1A1714 · secondary #92400E · accent #E0A106
            background #FDFBF7 · foreground #1A1714
   Fonts: Petrona (display) · Mulish (body) · Anonymous Pro (mono)
   =========================================================== */

:root {
  --ink: #1A1714;
  --marigold-deep: #92400E;
  --marigold: #E0A106;
  --paper: #FDFBF7;
  --fg: #1A1714;

  /* derived tints kept WCAG-safe on paper */
  --paper-2: #F6F1E7;
  --paper-3: #EFE7D6;
  --ink-80: #2C2825;
  --ink-soft: #423B33;       /* >7:1 on paper, used for secondary copy */
  --hairline: #E2D8C5;
  --hairline-strong: #CBBFA6;

  --font-display: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Anonymous Pro", "SFMono-Regular", Consolas, monospace;

  --maxw: 1180px;
  --readw: 720px;

  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(26,23,20,.05), 0 2px 8px rgba(26,23,20,.04);
  --shadow-md: 0 4px 14px rgba(26,23,20,.08), 0 10px 34px rgba(26,23,20,.06);
  --shadow-lg: 0 20px 60px rgba(26,23,20,.14);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 700px at 88% -10%, rgba(224,161,6,.12), transparent 60%),
    radial-gradient(980px 620px at -8% 8%, rgba(146,64,14,.08), transparent 58%),
    linear-gradient(180deg, #FDFBF7 0%, #FBF6EC 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--marigold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }

/* ---------- skip link & focus ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: var(--radius); z-index: 1000;
  font-family: var(--font-mono); font-size: 14px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--marigold-deep); margin: 0 0 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--marigold); display: inline-block; }
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.divider { height: 1px; background: var(--hairline-strong); border: 0; margin: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.4) blur(10px);
  background: rgba(253,251,247,.82);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F2C14B, var(--marigold) 55%, var(--marigold-deep));
  box-shadow: inset 0 0 0 1.5px rgba(26,23,20,.12), var(--shadow-sm);
  display: grid; place-items: center;
}
.brand-mark span { font-family: var(--font-display); font-weight: 700; color: #2A1B05; font-size: 19px; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--ink-80); text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav-cta {
  margin-left: 6px; background: var(--ink) !important; color: var(--paper) !important;
  padding: 10px 18px !important; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--marigold-deep) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--marigold-deep); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--marigold); color: #2A1B05; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: #F2C14B; color: #2A1B05; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 22px;
}
.hero h1 .mark { color: var(--marigold-deep); font-style: italic; }
.hero-lead { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 36ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 26px; border-top: 1px solid var(--hairline-strong); }
.hero-meta .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.hero-meta .stat-lab { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

.hero-figure { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--hairline);
  transform: rotate(-1.4deg);
}
.hero-card img { aspect-ratio: 4/3.1; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--paper); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; transform: rotate(1.2deg);
}
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px rgba(224,161,6,.22); flex: none; }
.hero-badge b { font-family: var(--font-display); font-size: 1rem; display: block; }
.hero-badge span { font-size: 12.5px; color: var(--ink-soft); }
.hero-deco { position: absolute; top: -34px; right: -30px; width: 120px; height: 120px; border: 2px solid var(--marigold); border-radius: 50%; opacity: .5; z-index: -1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-figure { max-width: 480px; }
  .hero-badge { left: 8px; }
}

/* ---------- trust band ---------- */
.trust { background: var(--ink); color: var(--paper); }
.trust .wrap { padding-block: 22px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.trust-row span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: #E9DFCB; display: inline-flex; align-items: center; gap: 9px; }
.trust-row span svg { width: 16px; height: 16px; color: var(--marigold); }
.trust-row .sep { color: rgba(255,255,255,.28); }

/* ---------- section heads ---------- */
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.02em; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- value cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.vcard {
  background: rgba(255,255,255,.6); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 30px 28px; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--hairline-strong); }
.vcard .ic {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--paper-3), var(--paper-2)); border: 1px solid var(--hairline-strong);
  color: var(--marigold-deep); margin-bottom: 18px;
}
.vcard .ic svg { width: 26px; height: 26px; }
.vcard h3 { font-size: 1.32rem; margin-bottom: 8px; }
.vcard p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- split / about feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.split.alt { grid-template-columns: .92fr 1.08fr; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--hairline); }
.split-media img { aspect-ratio: 5/4; object-fit: cover; width: 100%; }
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
.tick { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.tick li { display: flex; gap: 13px; align-items: flex-start; font-size: 16px; }
.tick li svg { width: 22px; height: 22px; color: var(--marigold-deep); flex: none; margin-top: 2px; }
@media (max-width: 820px){ .split, .split.alt { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.svc {
  background: rgba(255,255,255,.66); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 32px 30px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc .num { font-family: var(--font-mono); font-size: 13px; color: var(--marigold-deep); letter-spacing: .1em; }
.svc h3 { font-size: 1.42rem; margin: 10px 0 10px; }
.svc p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 18px; }
.svc ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.svc ul li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-80); }
.svc ul li::before { content: "→"; position: absolute; left: 0; color: var(--marigold-deep); font-family: var(--font-mono); }
.svc .svc-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(135deg, var(--ink) 0%, #2B211A 100%); color: var(--paper); border-radius: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.stat-block .big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--marigold); }
.stat-block .lab { margin-top: 10px; color: #E4DAC6; font-size: 15px; }
.stats-band .section-head h2, .stats-band .eyebrow { color: var(--paper); }
.stats-band .eyebrow { color: var(--marigold); }
.stats-band .section-head p { color: #D9CFBC; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.member { text-align: left; }
.member .ava {
  aspect-ratio: 1; border-radius: var(--radius-lg); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: #2A1B05;
  margin-bottom: 16px; border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-sm);
}
.member h3 { font-size: 1.22rem; margin-bottom: 2px; }
.member .role { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--marigold-deep); text-transform: uppercase; }
.member p { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.quote {
  background: rgba(255,255,255,.7); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 32px 30px; position: relative;
}
.quote .qm { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--marigold); opacity: .55; height: 30px; }
.quote blockquote { margin: 0 0 20px; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .who .ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2A1B05; font-size: 16px; flex: none; }
.quote .who b { display: block; font-size: 15.5px; }
.quote .who span { font-size: 13px; color: var(--ink-soft); }

/* ---------- insights / article cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; background: rgba(255,255,255,.7);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: inherit; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-3); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pill {
  align-self: flex-start; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--marigold-deep); background: var(--paper-2);
  border: 1px solid var(--hairline-strong); padding: 4px 11px; border-radius: 100px; margin-bottom: 13px;
}
.post-card h3 { font-size: 1.32rem; line-height: 1.18; margin-bottom: 10px; }
.post-card p { font-size: 15px; color: var(--ink-soft); margin: 0 0 18px; }
.post-card .meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.post-card .meta .more { margin-left: auto; color: var(--marigold-deep); font-weight: 700; }
.post-card[dir="rtl"] { text-align: right; }

/* ---------- resources blogroll ---------- */
.resources { background: var(--paper-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.blogroll { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.blogroll a {
  display: flex; align-items: center; gap: 14px; background: var(--paper);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: 18px 20px;
  text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.blogroll a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--marigold); color: var(--ink); }
.blogroll a .rl-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--paper-3); display: grid; place-items: center; color: var(--marigold-deep); flex: none; }
.blogroll a .rl-ic svg { width: 19px; height: 19px; }
.blogroll a span.lab { display: flex; flex-direction: column; }
.blogroll a span.lab small { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--marigold-deep) 0%, #7A350B 60%, var(--ink) 130%);
  color: var(--paper); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(224,161,6,.4), transparent 60%); pointer-events: none; }
.cta-inner h2 { color: var(--paper); font-size: clamp(2rem, 4vw, 3rem); position: relative; }
.cta-inner p { color: #F4E9D6; font-size: 1.12rem; max-width: 50ch; margin: 14px auto 30px; position: relative; }
.cta-inner .btn-accent { position: relative; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9CFBC; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-name small { color: #B9AE99; }
.footer-about { font-size: 15px; max-width: 34ch; margin-top: 16px; color: #C7BDA8; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: #D9CFBC; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--marigold); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: #A89D88; font-family: var(--font-mono); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- article page ---------- */
.article-hero { padding: clamp(46px, 6vw, 80px) 0 0; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--marigold-deep); }
.article-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-soft); margin-bottom: 30px; }
.article-meta .pill { margin: 0; }
.article-feat { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--hairline); margin-bottom: 6px; }
.article-feat img { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; }

.prose { font-size: 17.5px; line-height: 1.78; color: var(--ink-80); }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; float: left;
  font-size: 4.2rem; line-height: .8; padding: 6px 12px 0 0; color: var(--marigold-deep);
}
.prose p { margin: 0 0 1.35em; }
.prose h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 1.7em 0 .5em; padding-top: .4em; }
.prose h3 { font-size: 1.3rem; margin: 1.5em 0 .4em; color: var(--marigold-deep); }
.prose a { color: var(--marigold-deep); font-weight: 600; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose ul li::marker { color: var(--marigold); }
.prose img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--hairline); margin: 1.6em 0; }
.prose figure { margin: 1.8em 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose section { margin: 0; }
.prose h2 + section, .prose section { font-size: 17px; }
.prose blockquote { border-left: 3px solid var(--marigold); margin: 1.6em 0; padding: 4px 0 4px 22px; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }

/* FAQ accordion */
.faq { display: grid; gap: 12px; margin-top: 8px; }
.faq-item { border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); background: rgba(255,255,255,.6); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q:hover { color: var(--marigold-deep); }
.faq-q .chev { flex: none; width: 22px; height: 22px; transition: transform .25s var(--ease); color: var(--marigold-deep); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s var(--ease); }
.faq-a > div { padding-bottom: 20px; color: var(--ink-80); font-size: 16px; }
.faq-q[aria-expanded="true"] + .faq-a { max-height: 800px; }
.prose[dir="rtl"] > p:first-of-type::first-letter { float: right; padding: 6px 0 0 12px; }

/* article aside / share */
.article-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hairline-strong); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.share { display: flex; gap: 10px; align-items: center; }
.share span { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: grid; place-items: center; color: var(--ink); }
.share a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share a svg { width: 18px; height: 18px; }

.source-box { background: var(--paper-2); border: 1px solid var(--hairline-strong); border-left: 4px solid var(--marigold); border-radius: var(--radius-lg); padding: 22px 24px; margin: 36px 0 0; }
.source-box .eyebrow { margin-bottom: 10px; }
.source-box a { font-weight: 700; }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255,255,255,.72); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 13px 15px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(224,161,6,.22); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.contact-aside .ci { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.contact-aside .ci .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--hairline-strong); display: grid; place-items: center; color: var(--marigold-deep); flex: none; }
.contact-aside .ci .ic svg { width: 22px; height: 22px; }
.contact-aside .ci h4 { font-size: 1.08rem; margin: 2px 0 3px; }
.contact-aside .ci p, .contact-aside .ci a { font-size: 15px; color: var(--ink-soft); margin: 0; text-decoration: none; }
.contact-aside .ci a:hover { color: var(--marigold-deep); }
.form-success { display: none; background: #EAF3DE; border: 1px solid #97C459; color: #27500A; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; }
.form-success.show { display: block; }

/* ---------- generic page hero ---------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(20px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.02em; }
.page-hero p { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; margin-top: 16px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.stagger.is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-card { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* small screens prose drop cap calm */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose { font-size: 16.5px; }
  .prose > p:first-of-type::first-letter { font-size: 3.2rem; }
  .hero-meta { gap: 18px; }
}
