/* suellenhurling.com — colours, fonts, sizes and corners come from Studio → Look (see src/theme.js) */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url(/assets/fonts/figtree-latin-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Figtree'; font-style: italic; font-display: swap; font-weight: 300 900; src: url(/assets/fonts/figtree-latin-wght-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'); }

:root {
  --bg: #0E1522; --surface: #172033; --ink: #F1EFE8; --muted: #9AA5B8; --sun: #FFC72C; --link: #8CC8F0;
  --on-sun: #0E1522; --logo-bg: transparent; --logo-pad: 0; --kicker: var(--sun);
  --display: 'Manrope', Arial, sans-serif; --text: 'Figtree', Arial, sans-serif;
  --h-scale: 1; --h-weight: 700; --base: 18px; --r: 14px; --r-lg: 21px; --r-pill: 999px;
  /* worked out from the above */
  --surface-2: color-mix(in srgb, var(--surface) 82%, var(--ink));
  --soft: color-mix(in srgb, var(--ink) 80%, var(--bg));
  --hair: color-mix(in srgb, var(--ink) 10%, transparent);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --read: 680px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--base); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; 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: 8px; top: -60px; background: var(--sun); color: var(--on-sun); padding: 10px 16px; border-radius: var(--r); font-weight: 600; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: var(--h-weight); letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
.kicker { font-family: var(--text); font-size: 0.8rem; font-weight: 600; color: var(--kicker); margin: 0; letter-spacing: 0.01em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.date { font-size: 0.82rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: inherit; font-size: 0.92rem; font-weight: 600; padding: 12px 22px; border-radius: var(--r); border: 0; background: var(--surface-2); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink)); }
.btn.primary { background: var(--sun); color: var(--on-sun); }
.btn.primary:hover { filter: brightness(1.06); background: var(--sun); }
.btn.big { font-size: 1rem; padding: 16px 30px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.pill:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink)); }
.pill[aria-current="page"] { background: var(--sun); color: var(--on-sun); font-weight: 600; }

/* ---------- Masthead ---------- */
.masthead-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.home-link { display: inline-flex; align-items: center; text-decoration: none; background: var(--logo-bg); padding: var(--logo-pad); border-radius: var(--r); }
.logo { display: block; height: 52px; width: auto; color: var(--ink); }
.logo.small { height: 40px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--sun); letter-spacing: -0.02em; }
.wordmark.small { font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 500; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 0; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--kicker); }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--surface-2); color: var(--ink); }
.nav-search:hover, .nav-search[aria-current="page"] { color: var(--kicker); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--surface-2); color: var(--ink); cursor: pointer; padding: 0; }
.nav-toggle path { transition: transform 0.2s ease, opacity 0.2s ease; transform-origin: 12px 12px; }
.menu-open .nav-toggle .nt-a { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-toggle .nt-b { opacity: 0; }
.menu-open .nav-toggle .nt-c { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 680px) {
  .masthead-inner { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  .logo { height: 42px; }
  .nav-search { margin-left: auto; }
  /* Without JavaScript the links simply wrap below the logo */
  .nav { order: 3; width: 100%; margin-left: 0; gap: 2px 20px; }
  /* With JavaScript: a menu button that opens a stacked list */
  .has-toggle .nav-toggle { display: inline-flex; }
  .has-toggle .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; margin-top: 4px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); font-size: 1.05rem; }
  .has-toggle.menu-open .nav { display: flex; }
  .has-toggle .nav a { padding: 14px 16px; border-radius: var(--r); }
  .has-toggle .nav a:hover, .has-toggle .nav a[aria-current="page"] { background: var(--surface-2); }
}

/* ---------- Hero (latest story) ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 52vw, 560px); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-text { width: 100%; padding: clamp(22px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; background: linear-gradient(to top, rgba(6,10,18,0.92), rgba(6,10,18,0.6) 55%, rgba(6,10,18,0)); }
.hero .kicker { color: var(--sun); }
.hero.no-img { color: var(--ink); min-height: 0; }
.hero.no-img .kicker { color: var(--kicker); }
.hero.no-img .hero-text { background: none; }
.hero h1 { font-size: calc(clamp(2.1rem, 5.2vw, 4.3rem) * var(--h-scale)); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }
.hero p { margin: 0; max-width: 54ch; font-size: 1.05rem; color: rgba(255,255,255,0.86); }
.hero.no-img p { color: var(--soft); }
.hero:hover h1 { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Story cards ---------- */
.section { padding-top: clamp(36px, 5vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--h-scale)); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.card-img { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card h3 { font-size: calc(1.35rem * var(--h-scale)); line-height: 1.12; letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card is clickable */
.card .kicker a, .card .kicker { position: relative; z-index: 1; }
.card h3 a:hover { color: var(--kicker); }
.card-excerpt { margin: 0; color: var(--soft); font-size: 0.92rem; }
.card.no-img .card-excerpt { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt mark { background: color-mix(in srgb, var(--sun) 35%, transparent); color: inherit; border-radius: 3px; }
.card .date { margin-top: auto; padding-top: 4px; }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card.feature .card-img { aspect-ratio: auto; min-height: 280px; }
.card.feature .card-body { padding: clamp(22px, 3vw, 36px); justify-content: flex-end; }
.card.feature h3 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--h-scale)); line-height: 1.06; }
.card.no-img .card-img { display: none; }

.more { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.more .note { width: 100%; text-align: center; font-size: 0.82rem; color: var(--muted); margin: 0; }

.page-head { padding-top: clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: calc(clamp(2.4rem, 7vw, 4.8rem) * var(--h-scale)); letter-spacing: -0.04em; }
.page-head p { margin: 10px 0 0; color: var(--muted); }
.page-head .page-intro { color: var(--soft); font-size: 1.1rem; max-width: 48ch; }
.empty { padding: clamp(48px, 8vw, 96px) 0; max-width: 640px; }
.empty h1 { font-size: calc(clamp(2.2rem, 6vw, 3.6rem) * var(--h-scale)); margin-bottom: 14px; }
.empty p { color: var(--soft); }
.empty a { color: var(--kicker); }
.empty-line { color: var(--soft); }

/* ---------- Subscribe ---------- */
.subscribe { margin-top: clamp(48px, 6vw, 72px); background: var(--band, var(--sun)); color: var(--on-band, var(--on-sun)); border-radius: var(--r-lg); padding: clamp(26px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px 48px; align-items: center; }
.subscribe h2 { font-size: calc(clamp(1.9rem, 4vw, 2.9rem) * var(--h-scale)); line-height: 1.02; letter-spacing: -0.035em; }
.subscribe p { margin: 8px 0 0; opacity: 0.85; }
.subscribe-note { font-weight: 600; opacity: 1 !important; }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 14px 16px; border-radius: var(--r); border: 0; background: #fff; color: #111; }
.subscribe-form button { font: inherit; font-weight: 700; padding: 14px 24px; min-height: 48px; border-radius: var(--r); border: 0; background: var(--band-btn, #0E1522); color: var(--band-btn-text, #fff); cursor: pointer; }
.subscribe-form button:hover { filter: brightness(1.12); }

/* ---------- Story page ---------- */
.essay-head { max-width: 980px; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.essay-head h1 { font-size: calc(clamp(2.3rem, 6.4vw, 4.8rem) * var(--h-scale)); line-height: 1.02; letter-spacing: -0.04em; }
.essay-head .date { font-size: 0.9rem; }
.cover img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--r-lg); }
.prose { max-width: calc(var(--read) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 5vw, 48px) var(--gutter) 0; font-size: 1.06em; line-height: 1.72; }
.prose > p:first-child { font-size: 1.2em; line-height: 1.55; color: var(--ink); }
.prose p { margin: 0 0 1.2em; color: color-mix(in srgb, var(--ink) 92%, var(--bg)); }
.prose h2 { font-size: calc(1.75rem * var(--h-scale)); margin: 1.7em 0 0.55em; }
.prose h3 { font-size: calc(1.3rem * var(--h-scale)); margin: 1.4em 0 0.4em; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose a:hover { color: var(--kicker); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.8em 0; padding: 0; font-family: var(--display); font-weight: var(--h-weight); font-size: calc(1.55rem * var(--h-scale)); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.prose blockquote::before { content: '“'; display: block; font-size: 3.2em; line-height: 0.6; color: var(--sun); margin-bottom: 0.15em; }
.prose blockquote p { margin: 0 0 0.4em; color: inherit; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose > img { width: 100%; border-radius: var(--r); }
.prose > img { margin: 1.8em 0; }
.prose figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
.prose hr { border: 0; text-align: center; margin: 2.2em 0; }
.prose hr::after { content: '•  •  •'; color: var(--muted); letter-spacing: 0.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.share { max-width: calc(var(--read) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share span { font-size: 0.85rem; color: var(--muted); margin-right: 6px; }
.narrow { max-width: calc(var(--read) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }

/* ---------- Comments ---------- */
.comments { padding-top: clamp(44px, 6vw, 64px); }
.comments > h2 { font-size: calc(clamp(1.6rem, 3.5vw, 2.1rem) * var(--h-scale)); margin-bottom: 20px; }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { background: var(--surface); border-radius: var(--r); padding: 18px 20px; }
.comment.by-author { background: color-mix(in srgb, var(--sun) 10%, var(--surface)); }
.comment-who { margin: 0 0 6px; font-size: 0.92rem; }
.comment-who strong { font-family: var(--display); }
.comment-who time { color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.author-tag { color: var(--kicker); font-size: 0.8rem; font-weight: 600; margin-left: 4px; }
.comment-body p { margin: 0 0 0.6em; color: var(--soft); }
.replies { margin-top: 14px; padding-left: clamp(12px, 3vw, 24px); }
.replies .comment { background: var(--surface-2); }
.reply-link { font-size: 0.85rem; font-weight: 600; color: var(--kicker); text-decoration: none; }
.reply-link:hover { text-decoration: underline; }
.comment-form { margin-top: 24px; background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); }
.comment-form h3 { font-size: calc(1.4rem * var(--h-scale)); margin-bottom: 18px; }
.comment-form h3 a { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 14px; }
label { font-size: 0.86rem; font-weight: 600; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
input, textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--bg); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; line-height: 1.5; }
.notice { font-weight: 600; background: color-mix(in srgb, var(--sun) 14%, var(--surface)); color: var(--ink); border-radius: var(--r); padding: 14px 18px; margin: 0 0 20px; }
.notice.error { background: color-mix(in srgb, #E5484D 22%, var(--surface)); }
.card-form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); max-width: var(--read); margin-top: 28px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; max-width: 640px; }
.search-form input { flex: 1 1 240px; min-width: 0; font-size: 1.05rem; background: var(--surface); border-color: transparent; }
.result-count { color: var(--muted); margin: 0 0 18px; font-size: 0.9rem; }

/* ---------- Older/newer ---------- */
.adjacent { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; padding-top: clamp(40px, 6vw, 64px); }
.adjacent a { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; text-decoration: none; font-family: var(--display); font-weight: var(--h-weight); font-size: calc(1.2rem * var(--h-scale)); line-height: 1.15; letter-spacing: -0.015em; }
.adjacent a span { font-family: var(--text); font-weight: 500; font-size: 0.8rem; color: var(--kicker); letter-spacing: 0; }
.adjacent a:hover { background: var(--surface-2); }
.adj-next { text-align: right; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(56px, 8vw, 96px); }
.footer-inner { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; border-top: 1px solid var(--hair); }
.footer-about { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 52ch; }
.footer-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--kicker); }
.footer-small { width: 100%; margin: 0; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }

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