/* ─── Fonts (self-hosted, SIL Open Font License) ─────────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-4.woff2") format("woff2");
}

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper: #F3F6F2;
  --surface: #FFFFFF;
  --ink: #132036;
  --muted: #55627A;
  --line: #D6DED4;
  --sun: #F2AE1C;
  --footer: #132036;
  --footer-ink: #E4EAF2;
  --c: #2B62C4;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-art: 1.25rem;
  --radius-thumb: 0.9rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1828;
    --surface: #172338;
    --ink: #EDF1F6;
    --muted: #A2AEC1;
    --line: #26344C;
    --sun: #FFC64A;
    --footer: #0A1220;
    --footer-ink: #D7DEE8;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) * { --c-text: color-mix(in srgb, var(--c) 62%, white); }
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
* { --c-text: var(--c); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(42rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(60rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.cover-art { width: 100%; height: 100%; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--c, #ddd); }

/* ─── Masthead ───────────────────────────────────────────────────────────── */
.masthead { padding-top: 1.4rem; }
.masthead__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__mark circle { transform-origin: 24px 42px; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .1s; }
.brand__name { font-size: clamp(1.35rem, 3.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.masthead__about { font-weight: 550; text-decoration: none; padding: .4rem .2rem; }
.masthead__about:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead__links { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.4rem); }
.support-btn {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  padding: .55rem 1.05rem .55rem .9rem; border-radius: 999px;
  background: var(--sun); color: #132036; font-weight: 700; font-size: .95rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(19, 32, 54, .18), 0 6px 16px -8px rgba(242, 174, 28, .9);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.support-btn svg { color: #C2412F; flex: none; }
.support-btn:hover { background: #FFC23D; transform: translateY(-1px); box-shadow: 0 2px 0 rgba(19, 32, 54, .18), 0 10px 20px -8px rgba(242, 174, 28, .95); }
.support-btn:active { transform: translateY(0); }
.support-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.support-btn__short { display: none; }
@media (max-width: 30rem) {
  .support-btn { padding: .42rem .7rem .42rem .6rem; font-size: .86rem; gap: .3rem; }
  .support-btn svg { width: 15px; height: 15px; }
  .support-btn__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .support-btn__short { display: inline; }
  .masthead__top { gap: .6rem; }
  .masthead__links { gap: .55rem; }
  .brand { gap: .4rem; }
  .brand__mark { width: 1.8rem; height: 1.8rem; }
  .brand__name { font-size: 1.04rem; white-space: nowrap; }
}
@media (max-width: 22rem) { .masthead__about { display: none; } }
@media (prefers-reduced-motion: reduce) { .support-btn { transition: none; } .support-btn:hover { transform: none; } }

@keyframes rise { from { transform: translateY(9px); opacity: 0; } to { transform: none; opacity: 1; } }

.sections { margin-top: 1.1rem; border-block: 1px solid var(--line); }
.sections__list {
  list-style: none; margin-block: 0; display: flex; gap: .25rem;
  overflow-x: auto; scrollbar-width: none; padding-block: .55rem;
}
.sections__list::-webkit-scrollbar { display: none; }
.sections__list li { flex: none; }
.icon { flex: none; }
.section-link {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .4rem .75rem; border-radius: 99px; text-decoration: none; font-weight: 560; font-size: .97rem;
}
.section-link .icon { color: var(--c-text); }
.section-link:hover { background: color-mix(in srgb, var(--c) 10%, transparent); }
.section-link.is-current { background: var(--c); color: #fff; }
.section-link.is-current .icon { color: #fff; }

/* ─── Shared bits ────────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--c-text); font-weight: 650; font-size: .92rem; text-decoration: none;
}
.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: .2rem; color: var(--muted); font-size: .9rem; }
.block-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.6rem; }

/* ─── Homepage ───────────────────────────────────────────────────────────── */
.intro {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 3vw, 2.2rem);
}
.intro__line { font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 480; letter-spacing: -0.015em; line-height: 1.2; max-width: 30ch; }
.intro__count { color: var(--muted); font-size: .95rem; }
.intro__count strong { color: var(--ink); font-size: 1.25rem; font-weight: 750; margin-right: .15rem; }

.lead {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem); align-items: center;
}
.lead__art { display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius-art); overflow: hidden; }
.lead__text { display: grid; gap: .85rem; }
.lead__title { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 720; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.lead__title a, .row__title a { text-decoration: none; }
.lead__title a:hover, .row__title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: .08em; text-underline-offset: .12em; }
.lead__dek { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--muted); max-width: 40ch; }

.latest { padding-top: clamp(2.6rem, 6vw, 4.2rem); }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.rows--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.15rem; align-items: start; }
.rows--three .row { grid-template-columns: 5.5rem minmax(0, 1fr); }
.row__thumb { display: block; aspect-ratio: 1; border-radius: var(--radius-thumb); overflow: hidden; }
.row__text { display: grid; gap: .4rem; }
.row__title { font-size: 1.22rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.row__dek { font-family: var(--serif); color: var(--muted); font-size: 1rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pager__link { font-weight: 650; text-decoration: none; padding: .55rem 1rem; border-radius: 99px; border: 1.5px solid var(--ink); }
.pager__link:hover { background: var(--ink); color: var(--paper); }
.pager__count { color: var(--muted); font-size: .9rem; }

.empty { padding-block: 4rem 2rem; max-width: 36rem; }
.empty__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: .8rem; }
.empty p:not(.empty__title) { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }

/* ─── Section pages ──────────────────────────────────────────────────────── */
.band { background: var(--c); color: #fff; margin-top: 0; }
.band__inner { display: flex; align-items: center; gap: 1.4rem; padding-block: clamp(2rem, 5vw, 3.2rem); }
.band__icon { flex: none; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: #FFE9A8; color: var(--c); }
.band__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1; }
.band__text { font-family: var(--serif); font-size: 1.15rem; opacity: .92; margin-top: .45rem; }

/* ─── Story page ─────────────────────────────────────────────────────────── */
.story__head { display: grid; gap: 1rem; padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(1.6rem, 3vw, 2.2rem); }
.story__title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 730; line-height: 1.03; letter-spacing: -0.032em; text-wrap: balance; }
.story__dek { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); }
.story__art { margin-block: 0 clamp(2rem, 4vw, 3rem); }
.story__art svg, .story__art .photo { aspect-ratio: 1200 / 630; height: auto; border-radius: var(--radius-art); overflow: hidden; }
.story__caption { margin-top: .6rem; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.story__credit { white-space: normal; }
.story__caption a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.72; }
.prose p, .prose ul { margin: 0 0 1.25em; }
.prose h2 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 2em 0 .6em;
}
.prose h2::before { content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--c); }
.prose a { text-decoration-color: var(--c); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--c); font-style: italic; }

.credit { margin-top: 1rem; }
.credit > * { display: block; }
.credit { display: grid; gap: .3rem; }
.credit__label { color: var(--muted); font-size: .92rem; }
.credit__link {
  font-weight: 620; font-size: 1.12rem; line-height: 1.35;
  text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.credit::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 1rem; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .95rem; }
.share span { color: var(--muted); margin-right: .2rem; }
.share a { text-decoration: none; font-weight: 600; padding: .35rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.share a:hover { border-color: var(--ink); }

.related { padding-top: clamp(3rem, 7vw, 5rem); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer { margin-top: clamp(4rem, 9vw, 6.5rem); background: var(--footer); color: var(--footer-ink); padding-block: 3rem 2rem; }
.footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.footer__text { font-family: var(--serif); max-width: 38ch; margin-top: .5rem; opacity: .85; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; }
.footer__links a { text-underline-offset: 3px; }
.footer__small { margin-top: 2.5rem; font-size: .85rem; opacity: .7; }

/* ─── In brief, notes, sign-up, support, offers ──────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.brief { margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.brief__title { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-bottom: .55rem; }
.brief ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.brief li { position: relative; padding-left: 1.25rem; font-size: 1.05rem; line-height: 1.45; font-weight: 500; }
.brief li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }

.credit__note { margin-top: .9rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.credit__note a { color: inherit; text-underline-offset: 3px; }

.after-story { margin-top: clamp(2.2rem, 5vw, 3.2rem); display: grid; gap: 1.6rem; }
.home-signup { margin-top: clamp(2.6rem, 6vw, 4rem); }

.signup {
  background: #FFE9A8; color: #132036; border-radius: var(--radius-art);
  padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) auto; align-items: center;
}
.signup__title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .35rem; }
.signup__text p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; max-width: 46ch; }
.signup__form { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup__form input {
  font: inherit; font-size: 1rem; min-width: 0; flex: 1 1 14rem; padding: .7rem 1rem;
  border-radius: 99px; border: 1.5px solid #132036; background: #fff; color: #132036;
}
.signup__form button, .signup__button {
  font: inherit; font-weight: 700; font-size: 1rem; padding: .7rem 1.3rem; border-radius: 99px; border: 0;
  background: #132036; color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block;
}
.signup__form button:hover, .signup__button:hover { background: #24365A; }

.support { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: var(--muted); }
.support a { font-family: var(--display); font-weight: 650; color: var(--ink); margin-left: .25rem; text-underline-offset: 3px; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

.offers { display: grid; gap: 1.4rem; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-thumb); padding: 1.4rem 1.5rem; }
.offer__label { font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: .4rem; }
.offer__name { font-size: 1.4rem; font-weight: 720; letter-spacing: -0.02em; }
.offer__deal { font-size: 1.15rem; font-weight: 600; margin-top: .2rem; }
.offer__text { font-family: var(--serif); color: var(--muted); margin-top: .5rem; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1rem; }
.offer__code { font-size: .95rem; color: var(--muted); }
.offer__code strong { color: var(--ink); letter-spacing: .04em; }
.offer__link { font-weight: 650; text-decoration: none; padding: .5rem 1rem; border-radius: 99px; border: 1.5px solid var(--ink); }
.offer__link:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 700px) {
  .signup { grid-template-columns: 1fr; }
}
.after-story .signup { grid-template-columns: 1fr; }
.after-story .signup__form { max-width: 30rem; }

/* ─── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; }
  .rows, .rows--three { grid-template-columns: 1fr; gap: 1.8rem; }
  .rows--three .row { grid-template-columns: 6rem minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 5.25rem minmax(0, 1fr); gap: .9rem; }
  .row__title { font-size: 1.1rem; }
  .row__dek { display: none; }
  .prose { font-size: 1.12rem; }
  .band__icon { width: 3.8rem; height: 3.8rem; }
  .band__icon svg { width: 34px; height: 34px; }
}

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