/* Hooray News — site styles. Mobile-first. */
:root {
  --cream: #FFF9EE;
  --paper: #FFFFFF;
  --ink: #1A1B2E;
  --ink-2: #3F4158;
  --muted: #6A6C80;
  --line: #EDE4D3;
  --sun: #FFC23D;
  --sun-soft: #FFF1CC;
  --coral: #FF5A4E;
  --coral-dark: #E2402F;
  --sky: #2F6FEB;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 27, 46, .06), 0 8px 24px -12px rgba(26, 27, 46, .18);
  --f-ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding-inline: 16px; }
.wrap-wide { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap, .wrap-narrow, .wrap-wide { padding-inline: 24px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; font-family: var(--f-ui); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn-cta { background: var(--coral); color: #fff; }
.btn-cta:hover { background: var(--coral-dark); }

/* ---------- top strip + masthead ---------- */
.topstrip { background: var(--ink); color: #F4EFE6; font-size: 13px; }
.topstrip-in { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 34px; }
.topstrip .promise { display: none; font-weight: 700; color: var(--sun); }
.topstrip-link { color: #fff; text-decoration: none; font-weight: 700; }
.topstrip-link:hover { color: var(--sun); }
@media (min-width: 720px) { .topstrip .promise { display: inline; } }

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.mark { flex-shrink: 0; }
.brand:hover .mark { animation: wiggle .6s ease; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
.wordmark { font-family: var(--f-ui); font-weight: 800; font-size: 30px; letter-spacing: -.035em; line-height: 1; display: inline-flex; align-items: baseline; }
.wordmark .bang { color: var(--coral); }
.wordmark small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-left: 8px; color: var(--muted); align-self: center; transform: translateY(2px); }
.brand-sm .wordmark { font-size: 24px; }

.search { display: none; margin-left: auto; position: relative; }
.search input { width: 240px; min-height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); padding: 8px 44px 8px 16px; font: inherit; color: var(--ink); }
.search input:focus { border-color: var(--ink); outline: none; }
.search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.head-cta { margin-left: auto; padding-inline: 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) { .hide-sm { display: none; } }
@media (min-width: 900px) {
  .search { display: block; }
  .head-cta { margin-left: 0; }
  .wordmark { font-size: 36px; }
}
@media (max-width: 380px) { .wordmark small { display: none; } .head-cta { padding-inline: 12px; } }

.catnav { border-top: 1px solid var(--line); }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; -webkit-overflow-scrolling: touch; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { --c: var(--ink); flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); position: relative; }
.catnav a:hover { background: var(--cream); color: var(--ink); }
.catnav a.on { background: var(--c); color: #fff; }
.catnav a:not(.on)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: 1px; }
.catnav a:first-child:not(.on)::before { background: var(--coral); }

/* ---------- meter + kicker ---------- */
.kicker { --c: var(--coral); font-family: var(--f-ui); font-weight: 800; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--c); text-decoration: none; }
.kicker:hover { text-decoration: underline; }
.meter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--sun-soft); border-radius: 999px; padding: 3px 9px 3px 8px; white-space: nowrap; }
.meter-label { letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }
.meter-track { width: 38px; height: 6px; border-radius: 3px; background: rgba(26, 27, 46, .12); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: calc(var(--v) * 1%); background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 3px; }
.meter b { font-size: 12.5px; color: var(--ink); }

/* ---------- cards + grids ---------- */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.grid > .card { flex: 1 1 100%; max-width: 100%; }
@media (min-width: 640px) { .grid > .card { flex: 0 1 calc(50% - 11px); max-width: calc(50% - 11px); } }
@media (min-width: 980px) {
  .grid-3 > .card, .grid > .card { flex: 0 1 calc(33.333% - 15px); max-width: calc(33.333% - 15px); }
  .grid-2 > .card { flex: 0 1 calc(50% - 11px); max-width: calc(50% - 11px); }
  .grid-1 > .card { flex: 0 1 100%; max-width: 760px; }
}
.card { --c: var(--coral); background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease; position: relative; }
.card:hover { transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sun-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-ph { display: grid; place-items: center; height: 100%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-title { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--c); }
.card-meta a.kicker { position: relative; z-index: 1; }
.card-dek { margin: 0; color: var(--ink-2); font-family: var(--f-body); font-size: 17px; line-height: 1.45; }
.card-foot { margin: auto 0 0; padding-top: 6px; color: var(--muted); font-size: 13px; }

/* lead story */
.lead { padding-top: 24px; }
.card-lg { border-radius: 22px; }
.card-lg .card-title { font-size: clamp(28px, 6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.card-lg .card-dek { font-size: 19px; }
.card-lg .card-body { padding: 20px 20px 22px; gap: 12px; }
@media (min-width: 900px) {
  .card-lg { flex-direction: row; min-height: 440px; }
  .card-lg .card-img { flex: 0 0 58%; aspect-ratio: auto; }
  .card-lg .card-body { padding: 36px 36px 32px; justify-content: center; }
  .card-lg .card-dek { font-size: 20.5px; }
}

/* sections */
.section { padding-block: 36px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { font-family: var(--f-head); font-weight: 800; font-size: 28px; letter-spacing: -.015em; margin: 0; display: flex; align-items: center; gap: 10px; }
.more { font-weight: 700; text-decoration: none; color: var(--coral-dark); white-space: nowrap; font-size: 15px; }
.more:hover { text-decoration: underline; }
.burst-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); display: inline-block; }
.cat-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; }

/* promises */
.promises { background: var(--ink); color: #F4EFE6; margin-top: 44px; padding-block: 40px; position: relative; overflow: hidden; }
.promises::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,194,61,.35), transparent 65%); }
.promise-grid { display: grid; gap: 26px; position: relative; }
@media (min-width: 760px) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
.promise-item h3 { font-family: var(--f-head); font-size: 22px; margin: 10px 0 6px; color: #fff; }
.promise-item p { margin: 0; color: #CFCBD8; font-size: 16px; }
.promise-item a { color: var(--sun); font-weight: 700; }
.p-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sun); color: var(--ink); }

/* launch + empty */
.launch { padding-block: 64px 56px; text-align: center; background:
  radial-gradient(circle at 12% 20%, rgba(255,194,61,.35) 0 60px, transparent 61px),
  radial-gradient(circle at 88% 30%, rgba(255,90,78,.18) 0 40px, transparent 41px),
  radial-gradient(circle at 80% 85%, rgba(47,111,235,.14) 0 70px, transparent 71px),
  var(--cream); }
.launch-in { display: flex; flex-direction: column; align-items: center; max-width: 720px; }
.launch h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(34px, 7vw, 58px); line-height: 1.04; letter-spacing: -.025em; margin: 6px 0 14px; text-wrap: balance; }
.launch-dek { font-family: var(--f-body); font-size: 20px; color: var(--ink-2); margin: 0 0 26px; max-width: 600px; }
.launch-dek a { color: var(--coral-dark); }
.launch .mark { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(6deg); } }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-dark); margin: 14px 0 0; }
.empty { text-align: center; padding: 40px 0; display: flex; flex-direction: column; align-items: center; }
.empty h2 { font-family: var(--f-head); font-size: 30px; margin: 10px 0 4px; }
.empty p { color: var(--ink-2); }

/* signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 520px; position: relative; }
.signup input[type=email] { flex: 1 1 240px; min-height: 50px; border-radius: 999px; border: 2px solid var(--ink); padding: 10px 20px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.signup .btn { min-height: 50px; padding-inline: 24px; font-size: 16px; }
.signup-note { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.signup.done { justify-content: center; }
.signup-ok { font-family: var(--f-head); font-size: 22px; font-weight: 700; margin: 0; }

.signup-band { background: var(--sun); margin-top: 56px; padding-block: 36px; }
.signup-in { display: grid; gap: 20px; align-items: center; }
.signup-copy { display: flex; gap: 16px; align-items: center; }
.signup-copy .mark { flex-shrink: 0; }
.signup-band h2 { font-family: var(--f-head); font-size: clamp(24px, 4vw, 32px); line-height: 1.1; margin: 0 0 6px; font-weight: 800; letter-spacing: -.015em; }
.signup-band p { margin: 0; color: var(--ink-2); font-size: 16px; }
.signup-band .signup { justify-content: flex-start; max-width: none; }
.signup-band .signup-note { text-align: left; color: var(--ink-2); }
.signup-band .mark circle[fill="#FFC23D"] { fill: #fff; }
@media (min-width: 900px) { .signup-in { grid-template-columns: 1.1fr 1fr; } }

/* footer */
.footer { background: var(--ink); color: #CFCBD8; padding-top: 44px; font-size: 15px; }
.footer-in { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer .brand { color: #fff; }
.footer .wordmark small { color: #9C98AD; }
.footer-brand p { max-width: 420px; margin: 12px 0 0; }
.footer-ed a { color: var(--sun); }
.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h3 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.footer-col a { color: #CFCBD8; text-decoration: none; }
.footer-col a:hover { color: var(--sun); }
.footer-base { border-top: 1px solid #2E3048; margin-top: 36px; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); font-size: 13px; color: #9C98AD; }
@media (min-width: 820px) { .footer-in { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------- article ---------- */
.preview-bar { background: var(--sun); text-align: center; padding: 10px 16px; font-weight: 700; }
.story { --c: var(--coral); padding-top: 22px; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.story-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.story-kick .kicker { color: var(--c); font-size: 13.5px; }
.loc { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.story-title { font-family: var(--f-head); font-weight: 800; font-size: clamp(32px, 6.4vw, 54px); line-height: 1.06; letter-spacing: -.025em; margin: 14px 0 14px; text-wrap: balance; }
.story-dek { font-family: var(--f-body); font-size: clamp(20px, 2.6vw, 23px); line-height: 1.4; color: var(--ink-2); margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-img { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; background: var(--sun-soft); }
.byline-txt { display: flex; flex-direction: column; font-size: 15px; flex: 1 1 200px; }
.byline-txt a { font-weight: 800; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.byline-meta { color: var(--muted); font-size: 13.5px; }
.share { display: flex; gap: 8px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.story-fig { margin-top: 26px; margin-bottom: 8px; }
.story-fig img { width: 100%; border-radius: var(--radius); background: var(--sun-soft); }
.story-fig figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }

.story-body { font-family: var(--f-body); font-size: 20.5px; line-height: 1.65; color: #24253A; padding-top: 18px; }
.story-body > p:first-of-type::first-letter { font-family: var(--f-head); font-weight: 800; float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--c); }
.story-body p { margin: 0 0 1.1em; }
.story-body h2 { font-family: var(--f-head); font-size: 28px; line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
.story-body h3 { font-family: var(--f-head); font-size: 23px; margin: 1.4em 0 .4em; }
.story-body a { color: var(--ink); text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story-body a:hover { background: var(--sun-soft); }
.story-body sup { line-height: 0; vertical-align: super; font-size: 70%; }
.story-body sup a { text-decoration: none; font-family: var(--f-ui); font-size: 12px; font-weight: 800; color: var(--c); padding: 0 2px; }
.story-body blockquote p { margin: 0 0 .4em; }
.story-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--sun); font-style: italic; font-size: 1.06em; color: var(--ink); }
.story-body ul, .story-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.story-body li { margin-bottom: .4em; }
@media (max-width: 600px) { .story-body { font-size: 19px; } }

.story-after { padding-top: 10px; }
.cheer-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; margin: 18px 0 26px; border-radius: var(--radius); background: var(--sun-soft); text-align: center; position: relative; overflow: visible; }
.cheer-box p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cheer { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 26px; border-radius: 999px; border: 0; background: var(--coral); color: #fff; font-weight: 800; font-size: 20px; cursor: pointer; box-shadow: 0 6px 0 var(--coral-dark); transition: transform .1s, box-shadow .1s; position: relative; }
.cheer:hover { transform: translateY(-1px); }
.cheer:active, .cheer.pressed { transform: translateY(5px); box-shadow: 0 1px 0 var(--coral-dark); }
.cheer.cheered { background: var(--ink); box-shadow: 0 6px 0 #000; }
.cheer-emoji { font-size: 24px; }
.cheer-count { background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; font-size: 16px; min-width: 34px; }
.cheer[disabled] { opacity: .6; cursor: default; }
.confetti { position: fixed; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; z-index: 60; will-change: transform, opacity; }

.why-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; background: var(--paper); }
.why-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.why-box h2 { font-family: var(--f-head); font-size: 21px; margin: 0; }
.why-box p { margin: 10px 0 0; font-family: var(--f-body); font-size: 18px; color: var(--ink-2); }

.sources { border-top: 2px solid var(--ink); padding-top: 14px; }
.sources h2 { font-family: var(--f-ui); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.sources ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 15.5px; }
.sources li a { font-weight: 600; color: var(--ink); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources li a:hover { text-decoration-color: var(--c); }
.sources li span { color: var(--muted); }
.sources li:target { background: var(--sun-soft); border-radius: 6px; }
.sources-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.sources-note a { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.tags span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); }
.related { padding-top: 48px; }

/* ---------- list / page heroes ---------- */
.list-hero { --c: var(--coral); background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 34px 30px; position: relative; overflow: hidden; }
.list-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--c); opacity: .12; }
.list-hero .eyebrow { color: var(--c); margin: 0; filter: brightness(.85); }
.list-hero h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(36px, 7vw, 60px); line-height: 1.04; letter-spacing: -.025em; margin: 6px 0 10px; }
.list-blurb { font-family: var(--f-body); font-size: 20px; color: var(--ink-2); margin: 0; max-width: 640px; }
.list-blurb a { color: var(--ink); }
.rss-link { font-family: var(--f-ui); font-size: 13px; font-weight: 800; background: var(--sun); border-radius: 6px; padding: 2px 8px; text-decoration: none; margin-left: 6px; vertical-align: 3px; }
.search-big { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.search-big input { flex: 1; width: auto; min-height: 50px; padding-right: 16px; }
.result-count { color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; font-weight: 700; }
.pager a { text-decoration: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 18px; }
.pager a:hover { background: var(--ink); color: #fff; }

/* prose pages */
.prose { font-family: var(--f-body); font-size: 19.5px; line-height: 1.65; padding-top: 30px; }
.prose h2 { font-family: var(--f-head); font-size: 27px; line-height: 1.2; margin: 1.5em 0 .4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-links { font-family: var(--f-ui); font-size: 15px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px; }

.author-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 34px; }
.author-in { display: flex; flex-direction: column; gap: 20px; }
.author-img { border-radius: 50%; width: 150px; height: 150px; object-fit: cover; border: 5px solid var(--sun); }
.author-hero h1 { font-family: var(--f-head); font-size: clamp(36px, 6vw, 52px); margin: 4px 0 10px; letter-spacing: -.02em; }
@media (min-width: 680px) { .author-in { flex-direction: row; align-items: center; } .author-img { width: 180px; height: 180px; } }

/* contact */
.contact-form { display: grid; gap: 16px; padding-top: 30px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid #D9CFBC; border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 48px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; }
.contact-form .btn { justify-self: start; min-height: 50px; padding-inline: 28px; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
.form-done { background: var(--sun-soft); border-radius: var(--radius); padding: 26px; text-align: center; margin-top: 30px; }
.form-done h2 { font-family: var(--f-head); margin: 0 0 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; z-index: 80; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

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

/* photo captions + credits */
.story-fig figcaption .cap { color: var(--ink-2); }
.story-fig figcaption a { color: var(--muted); }
.story-fig figcaption a:hover { color: var(--ink); }
