/* EVDost website
   Greens from the logo, warm evening light from the photography. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("/assets/fonts/noto-nastaliq-urdu-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #032218;
  --text: #34483f;
  --muted: #5b6f65;
  --forest: #06733f;
  --forest-dark: #04592f;
  --leaf: #2fd170;
  --mint: #eef5f0;
  --line: #d6e4da;
  --paper: #ffffff;
  --glow: #f0a43a;       /* evening light, used only for the launch dot */
  --error: #b42318;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --wrap: 1180px;
  --radius-photo: 28px;
  --radius-card: 20px;
  --radius-input: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.8vw, 4.2rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.6rem); font-weight: 720; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); color: var(--text); max-width: 36em; }
.small { font-size: .9375rem; color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 2px solid var(--forest); border-radius: 999px;
  background: var(--forest); color: #fff;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--mint); color: var(--forest-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-light-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-light-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-weight: 650; font-size: .9375rem; color: var(--ink); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--forest); }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 20px 24px; box-shadow: 0 18px 30px rgba(3,34,24,.08);
}
.site-nav.is-open li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--mint); font-size: 1.125rem; }
.site-nav.is-open .btn { margin-top: 18px; width: 100%; }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.launch-note { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 650; color: var(--ink); margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 5px rgba(240,164,58,.22); }
.hero h1 { max-width: 12ch; }
.hero-host h1 { max-width: 15ch; }
.urdu { font-family: var(--urdu); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 2.1; color: var(--forest); margin-top: 10px; text-align: left; }
.hero .lede { margin-top: 14px; }
.hero-photo img, .split-photo img, .cta-photo img, .form-page-photo img { width: 100%; border-radius: var(--radius-photo); object-fit: cover; }
.hero-photo img { aspect-ratio: 4 / 5; max-height: 640px; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 24px; }
.page-hero .lede { margin-top: 16px; }
.not-found { padding-bottom: 120px; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--mint); }
.section-flush { padding-top: 24px; }
.page-hero + .section { padding-top: 32px; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--text); }
.center-link { margin-top: 32px; font-weight: 650; }

/* Two paths */
.paths { display: grid; gap: 24px; }
.path { display: grid; text-decoration: none; color: inherit; border-radius: var(--radius-photo); overflow: hidden; background: var(--mint); }
.path img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; transition: transform .4s ease; }
.path:hover img { transform: scale(1.03); }
.path-text { padding: 24px 24px 28px; }
.path-text p { margin-top: 8px; color: var(--text); }
.path-link { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.path:hover .path-link { color: var(--forest-dark); }

/* Split: photo + copy */
.split { display: grid; gap: 36px; align-items: center; }
.split-photo img { aspect-ratio: 4 / 5; max-height: 620px; }
.split-copy > h2 + * { margin-top: 20px; }
.split-copy > p + p { margin-top: 14px; }
.split-copy > p .btn { margin-top: 12px; }
.prose p + p { margin-top: 16px; }
.prose p { max-width: 36em; }

.benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.benefits p { margin-top: 4px; }

/* Numbered steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 58px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: #fff; font-weight: 750;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; border-left: 2px solid #b9d6c3; }
.steps p { margin-top: 4px; max-width: 32em; }
.note { margin-top: 12px; padding: 20px 22px; border-radius: var(--radius-card); background: var(--mint); }
.section-tint .note { background: #fff; }
.note p { margin-top: 6px; }

.step-cards { list-style: none; counter-reset: card; margin: 0; padding: 0; display: grid; gap: 16px; }
.step-cards li { counter-increment: card; padding: 28px 24px; border-radius: var(--radius-card); background: var(--mint); }
.step-cards li::before { content: counter(card); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 750; margin-bottom: 18px; }
.step-cards p { margin-top: 6px; }

/* Feature lists */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; }
.feature-grid li { padding-top: 18px; border-top: 2px solid var(--forest); }
.feature-grid p { margin-top: 6px; }
.host-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.host-types li { background: #fff; border-radius: var(--radius-card); padding: 22px 24px; }
.host-types p { margin-top: 4px; }

.example { margin: 22px 0 16px; padding: 24px; border-radius: var(--radius-card); background: var(--ink); color: #cfe2d6; font-size: 1.0625rem; line-height: 1.8; }
.example-total { margin-top: 10px; color: var(--leaf); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }

/* Quote band */
.quote-band { padding: 0 0 64px; }
.quote-grid { display: grid; gap: 0; border-radius: var(--radius-photo); overflow: hidden; background: var(--ink); }
.quote-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.quote-band blockquote { margin: 0; padding: 32px 28px 36px; color: #fff; }
.quote-band blockquote p { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }
.quote-band blockquote footer { margin-top: 16px; color: #9fc0ad; font-weight: 600; }

/* "Dost" name band */
.name-band { padding: 56px 0; background: var(--ink); color: #cfe2d6; }
.name-band h2 { color: #fff; }
.name-band p { margin-top: 12px; max-width: 34em; }
.name-grid { display: grid; gap: 12px; align-items: center; }
.name-urdu { font-family: var(--urdu); font-weight: 700; color: var(--leaf); font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: 1.9; text-align: left; }

/* CTA band */
.cta-band { background: var(--forest); color: #e6f3ea; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; max-width: 30em; }
.cta-grid { display: grid; gap: 32px; align-items: center; }
.cta-photo img { aspect-ratio: 4 / 3; object-position: center 40%; }

/* FAQ */
.faq-wrap { display: grid; gap: 48px; max-width: 860px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 8px; }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; color: var(--ink); font-weight: 650; font-size: 1.0625rem; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: translateY(-75%) rotate(45deg); transition: transform .2s ease; }
.faq-group details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-group details p { padding: 0 0 20px; max-width: 42em; }

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.375rem; margin-top: 36px; }
.legal h2:first-child { margin-top: 0; }
.legal h2 + p, .legal h2 + ul { margin-top: 10px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal strong { color: var(--ink); }

/* Form pages */
.form-page { padding: 48px 0 80px; background: var(--paper); }
.form-page-grid { display: grid; gap: 32px; align-items: start; }
.form-page-intro .lede { margin-top: 14px; }
.form-page-photo { display: none; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center;
}
.contact-facts { margin: 24px 0 0; display: grid; gap: 14px; }
.contact-facts dt { font-weight: 700; color: var(--ink); }
.contact-facts dd { margin: 2px 0 0; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 20px 24px; box-shadow: 0 24px 50px rgba(3,34,24,.07); }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--mint); margin-bottom: 22px; }
.role-switch button { min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 650; font-size: .9375rem; line-height: 1.25; color: var(--text); cursor: pointer; }
.role-switch button[aria-selected="true"] { background: var(--ink); color: #fff; }

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 14px; }
.field label, .consent span { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.field label { display: block; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1.5px solid #b9cec1; border-radius: var(--radius-input);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23032218' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 3px solid rgba(6,115,63,.18); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.error { font-size: .875rem; color: var(--error); margin-top: 6px; font-weight: 600; }
.honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--forest); flex: none; }
.consent span { font-weight: 500; }
form .btn-wide { margin-top: 20px; }
.form-status { margin-top: 12px; font-size: .9375rem; }
.form-status.is-error { color: var(--error); font-weight: 600; }
.done { padding: 8px 0; }
.done:focus { outline: none; }
.done h2 { font-size: 1.6rem; }
.done p { margin: 8px 0 22px; }
.done::before {
  content: ""; display: block; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16'%3E%3Cpath d='M2 8l6 6L18 2' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") no-repeat center;
}

/* Footer */
.site-footer { background: var(--ink); color: #a9c4b4; padding: 56px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 108px; padding: 10px 12px; background: #fff; border-radius: 14px; }
.footer-brand p { margin-top: 14px; max-width: 24em; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6e7dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #12402d; font-size: .875rem; }

/* Tablet and up */
@media (min-width: 640px) {
  .paths { grid-template-columns: 1fr 1fr; }
  .step-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .host-types { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 30px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Desktop */
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 28px; position: static; padding: 0; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 26px; }
  .site-nav.is-open li a { display: inline; padding: 0; border: 0; font-size: 1rem; }
  .site-nav .btn, .site-nav.is-open .btn { margin: 0; width: auto; }
  .site-nav a:not(.btn):hover { color: var(--forest); }

  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .page-hero { padding: 88px 0 32px; }
  .section { padding: 104px 0; }
  .section-flush { padding-top: 32px; }
  .page-hero + .section { padding-top: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split-reverse .split-photo { order: -1; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .host-types { grid-template-columns: repeat(4, 1fr); }
  .quote-band { padding: 0 0 104px; }
  .quote-grid { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .quote-photo { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .quote-band blockquote { padding: 48px; }
  .name-band { padding: 72px 0; }
  .name-grid { grid-template-columns: auto 1fr; gap: 64px; }
  .cta-band { padding: 80px 0; }
  .cta-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .form-page { padding: 80px 0 112px; background: linear-gradient(90deg, var(--paper) 0, var(--paper) 50%, var(--mint) 50%); }
  .form-page-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .form-page-photo { display: block; margin-top: 36px; }
  .form-page-photo img { aspect-ratio: 5 / 4; object-position: center 35%; }
}

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

/* Legal pages: contents list beside long text */
.legal-meta { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.legal-layout { display: grid; gap: 32px; }
.legal-toc { padding: 20px 22px; border-radius: var(--radius-card); background: var(--mint); align-self: start; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--forest); text-decoration: underline; }
.legal-section { scroll-margin-top: 96px; }
.legal-section + .legal-section { margin-top: 40px; }
.legal .legal-section h2 { margin-top: 0; }
.legal-section > p + p, .legal-section > ul + p, .legal-section > ol + p, .legal-section > p + ul, .legal-section > p + ol, .legal-section > div + ul, .legal-section > div + ol { margin-top: 12px; }
.legal-section > h2 + * { margin-top: 12px; }
.legal-list { padding-left: 1.4em; margin: 10px 0 0; }
.legal-list li + li { margin-top: 8px; }
.legal-box { padding: 18px 20px; border-radius: var(--radius-card); background: var(--mint); border-left: 4px solid var(--forest); }
@media (min-width: 960px) {
  .legal-layout { grid-template-columns: 280px 1fr; gap: 64px; }
  .legal-toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 120px); overflow: auto; }
}
.legal p, .legal ul, .legal ol { max-width: 46em; }

/* Blog index */
.post-grid { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.post-card:hover img { transform: scale(1.03); }
.post-card-text { padding: 18px 20px 22px; }
.post-card-cat { font-size: .875rem; font-weight: 700; color: var(--forest); }
.post-card h3 { margin-top: 6px; font-size: 1.2rem; line-height: 1.25; }
.post-card-text p:last-child { margin-top: 8px; color: var(--text); font-size: .9375rem; }
.post-card:hover h3 { color: var(--forest); }
.related { padding: 56px 0; }
.related h2 { margin-bottom: 24px; }

/* Blog post */
.post-head { padding-top: 40px; max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--forest); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 22ch; text-wrap: balance; }
.post-meta { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.post-cover { margin: 28px auto 0; max-width: 1180px; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-photo); }
.post-layout { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 72px; }
.post-toc { padding: 20px 22px; border-radius: var(--radius-card); background: var(--mint); align-self: start; }
.post-toc h2 { font-size: 1rem; margin: 0 0 10px; }
.post-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9375rem; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { color: var(--forest); text-decoration: underline; }
.post-body { min-width: 0; max-width: 720px; font-size: 1.125rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); margin-top: 1.9em; scroll-margin-top: 96px; text-wrap: balance; }
.post-body h3 { font-size: 1.25rem; margin-top: 1.5em; scroll-margin-top: 96px; }
.post-body h2 + *, .post-body h3 + * { margin-top: .6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin-left: 0; padding: 16px 20px; border-left: 4px solid var(--forest); background: var(--mint); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
.post-body img { width: 100%; border-radius: var(--radius-card); }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { background: var(--mint); color: var(--ink); font-weight: 700; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body .sources { font-size: .9375rem; }
.post-body .post-figure { margin: 2em 0; }
.post-body .post-figure img { display: block; height: auto; border: 1px solid var(--line); background: #fff; }
.post-body .post-faq { margin-top: 2.2em; padding: 6px 24px 24px; border-radius: var(--radius-card); background: var(--mint); }
.post-body .post-faq > * + * { margin-top: .8em; }
.post-body .post-faq h2 { margin-top: .9em; }
.post-body .post-faq h3 { font-size: 1.125rem; margin-top: 1.4em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.post-body .post-faq h2 + h3 { border-top: 0; padding-top: 0; }
@media (max-width: 520px) { .post-body .post-faq { padding: 4px 18px 20px; } }

@media (min-width: 640px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-head { padding-top: 64px; }
  .post-layout { grid-template-columns: 260px minmax(0, 720px); gap: 64px; justify-content: center; }
  .post-toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
  .site-nav ul { gap: 22px; }
}
