/* ==========================================================================
   Fan-network base stylesheet (shared by every site in the network).
   Per-site identity lives in sites/<id>/theme.css which overrides the tokens
   below and the three optional layout variants.

   Elevation model
   ---------------
   Four shadow levels (e1..e4) plus a top-edge highlight (--hl) and a pressed
   state (--press). Light themes use soft grey-blue shadows and a white top
   highlight; dark themes flip to hard black shadows with a faint white rim.
   Everything raised on the page uses these tokens, so the depth reads as one
   system instead of a pile of one-off box-shadows.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Brand tokens — overridden per site */
  --accent: #088ef5;
  --accent-2: #1870e0;
  --accent-ink: #ffffff;
  --pop: #f89314;
  --ink: #14263a;
  --ink-soft: #4a5c72;
  --muted: #7b8a9c;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --surface: #ffffff;
  --line: #dde6ef;
  --radius: 18px;
  --radius-sm: 10px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --head-h: 74px;

  /* Elevation */
  --e1: 0 1px 2px rgba(20, 38, 58, .07), 0 2px 5px rgba(20, 38, 58, .05);
  --e2: 0 2px 4px rgba(20, 38, 58, .06), 0 8px 18px rgba(20, 38, 58, .09);
  --e3: 0 4px 10px rgba(20, 38, 58, .07), 0 18px 38px rgba(20, 38, 58, .13);
  --e4: 0 8px 18px rgba(20, 38, 58, .09), 0 30px 58px rgba(20, 38, 58, .18);
  --hl: inset 0 1px 0 rgba(255, 255, 255, .95);
  --hl-soft: inset 0 1px 0 rgba(255, 255, 255, .55);
  --press: inset 0 2px 5px rgba(20, 38, 58, .2);
  --shadow: var(--e2);
  --shadow-lg: var(--e4);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-alt); padding: .12em .38em; border-radius: 5px; }
pre { background: #101c2b; color: #e8f1fb; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .87rem; line-height: 1.6; box-shadow: var(--e2), var(--hl-soft); }
pre code { background: none; color: inherit; padding: 0; }
blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; z-index: 99; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 18px rgba(20, 38, 58, .06);
}
.head-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--head-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; box-shadow: var(--e1); }
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.02em; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .48rem .78rem; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); box-shadow: var(--e1), var(--hl-soft); }
.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.fan-banner {
  margin: 0; background: var(--pop); color: #23180a; text-align: center;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .34rem 1rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  background-image:
    radial-gradient(75% 95% at 94% 4%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
    linear-gradient(165deg, var(--bg-alt), var(--bg) 62%);
}
.hero-inner { position: relative; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .9rem; }
.hero h1 { max-width: 22ch; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.7rem 0 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: .82rem 1.5rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .94rem; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  will-change: transform;
}
.btn-primary {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #ffffff) 0%, var(--accent) 48%, var(--accent-2) 100%);
  color: var(--accent-ink);
  box-shadow: var(--e3), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.btn-primary:hover {
  color: var(--accent-ink); transform: translateY(-2px);
  box-shadow: var(--e4), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--e1), inset 0 2px 6px rgba(0, 0, 0, .28);
}
.btn-ghost {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), color-mix(in srgb, var(--bg-alt) 70%, var(--surface)));
  color: var(--ink); border-color: var(--line);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--e3), inset 0 1px 0 rgba(255, 255, 255, .85); }
.btn-ghost:active { transform: translateY(1px); box-shadow: var(--e1), var(--press); }

/* ----------------------------------------------------------------- stats */
.stats { display: flex; gap: 1rem; list-style: none; margin: 2.6rem 0 0; padding: 0; flex-wrap: wrap; }
.stats li {
  min-width: 152px; padding: .9rem 1.15rem; border-radius: var(--radius-sm);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), color-mix(in srgb, var(--bg-alt) 60%, var(--surface)));
  border: 1px solid var(--line);
  box-shadow: var(--e2), var(--hl);
}
.stats strong { display: block; font-family: var(--font-display); font-size: 1.65rem; line-height: 1.15; }
.stats span { font-size: .82rem; color: var(--muted); }

/* ----------------------------------------------------------------- bands */
.band { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.band-alt { background: var(--bg-alt); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(20, 38, 58, .05); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.more { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--accent-2); white-space: nowrap; }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.45rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--feature { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid--feature .card:first-child { grid-column: 1 / -1; }

.card {
  position: relative;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent) 0%, color-mix(in srgb, var(--surface) 96%, var(--bg-alt)) 100%);
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--surface) 55%, #ffffff);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--e2), var(--hl);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--e4), var(--hl);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  border-top-color: color-mix(in srgb, var(--accent) 30%, #ffffff);
}
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); box-shadow: inset 0 -1px 0 rgba(20, 38, 58, .08); }
.card-media--placeholder {
  display: grid; place-items: center; height: 86px; aspect-ratio: auto;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--bg-alt)), color-mix(in srgb, var(--accent) 6%, var(--bg-alt)));
  color: var(--accent-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem;
  box-shadow: inset 0 -1px 0 rgba(20, 38, 58, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.grid--feature .card:first-child .card-media--placeholder { height: 104px; }
.card-body { padding: 1.15rem 1.25rem 1.3rem; }
.card-meta { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); margin: 0 0 .55rem; flex-wrap: wrap; }
.card-title { font-size: 1.14rem; margin: 0 0 .45rem; }
.card-excerpt { font-size: .91rem; color: var(--ink-soft); margin: 0 0 .6rem; }
.card-byline { font-size: .78rem; color: var(--muted); margin: 0; }
.pill {
  display: inline-block; padding: .2rem .62rem; border-radius: 999px;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 9%, transparent));
  color: var(--accent-2); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(20, 38, 58, .06);
}
.grid--feature .card:first-child .card-title { font-size: 1.5rem; }
.empty { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------- cat grid */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cat-card {
  height: 100%;
  background-image: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 94%, var(--bg-alt)) 100%);
  border: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--surface) 55%, #ffffff);
  border-radius: var(--radius);
  box-shadow: var(--e2), var(--hl);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--e4), var(--hl); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cat-card a { display: block; padding: 1.35rem 1.4rem; text-decoration: none; color: inherit; height: 100%; }
.cat-card h3 { margin: 0 0 .4rem; font-size: 1.06rem; }
.cat-card p { font-size: .87rem; color: var(--ink-soft); margin: 0 0 .85rem; }
.cat-count { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-2); }

/* ---------------------------------------------------------- page heads */
.page-head { padding: clamp(1.9rem, 4vw, 3rem) 0 0; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.page-head h1 { margin-bottom: .35rem; }
.index-count { font-size: .84rem; color: var(--muted); }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
.crumbs ol { list-style: none; display: flex; gap: .45rem; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }

/* ------------------------------------------------------------- toolbar */
.toolbar { display: grid; gap: 1rem; margin-bottom: 1.7rem; }
.search input {
  width: 100%; padding: .88rem 1.2rem; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
  box-shadow: var(--e1), var(--press); transition: box-shadow .16s ease, border-color .16s ease;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), var(--e1); }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  background-image: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 94%, var(--bg-alt)));
  color: var(--ink-soft); padding: .44rem .9rem; border-radius: 999px;
  box-shadow: var(--e1), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .14s ease, box-shadow .14s ease, color .14s ease, border-color .14s ease;
}
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent-2); box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, .85); }
.chip.is-active {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
  border-color: var(--accent); color: var(--accent-ink);
  box-shadow: var(--e2), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.chip.is-active span { color: inherit; opacity: .78; }

/* ---------------------------------------------------------- post / page */
.post-head { padding: clamp(1.6rem, 4vw, 2.8rem) 0 1rem; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.post-head h1 { margin-bottom: .5rem; }
.post-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.post-meta { font-size: .84rem; color: var(--muted); }
/* Article covers keep their native 16:9 framing: capped to the page width so a
   wide viewport never crops the illustration, and never upscaled past source. */
.post-cover { margin: 0 auto; max-width: var(--wrap); }
.post-cover img { width: 100%; height: auto; max-height: 680px; object-fit: cover; display: block; box-shadow: var(--e3); }

/* Inline figures + photo grids. Native size is respected (small source photos
   are never upscaled) and tall portraits are capped so articles stay readable. */
.post-figure { margin: 2rem 0; }
.post-figure img { display: block; margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: 560px; border-radius: var(--radius-sm); box-shadow: var(--e2); }
.post-figure figcaption { margin-top: .6rem; text-align: center; font-size: .84rem; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; align-items: start; }
.photo-grid-title { grid-column: 1 / -1; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.photo-grid .post-figure { margin: 0; }
.photo-grid .post-figure img { max-height: 340px; }
.photo-grid .post-figure figcaption { font-size: .78rem; }
.post-body { padding: 2.2rem 0 3rem; }
.post-body > h2 { margin-top: 2.2rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.post-body h3, .post-body h2 { scroll-margin-top: calc(var(--head-h) + 1rem); }
.post-body h2 + p, .post-body h3 + p { margin-top: .2rem; }
.prose { padding: 1rem 0 0; }
.hub-body { margin-bottom: 2rem; }
.anchor { margin-left: .4rem; color: var(--line); text-decoration: none; font-size: .7em; opacity: 0; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.toc {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 100%, transparent), color-mix(in srgb, var(--bg-alt) 70%, var(--surface)));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 2rem;
  box-shadow: var(--e2), var(--hl);
}
.toc-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .55rem; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.toc li { margin-bottom: .28rem; }
.toc-l3 { padding-left: 1rem; font-size: .86rem; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--accent-2); }
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--e2), var(--hl); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
th { background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 100%, transparent), color-mix(in srgb, var(--bg-alt) 88%, var(--line))); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; box-shadow: inset 0 -1px 0 var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.callout {
  border-radius: var(--radius); padding: 1.05rem 1.25rem; margin: 1.7rem 0;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg-alt) 100%, transparent), color-mix(in srgb, var(--bg-alt) 88%, var(--surface)));
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  box-shadow: var(--e2), var(--hl);
}
.callout > p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin: 0 0 .4rem; }
.callout-tip { border-left-color: #13a06b; }
.callout-warn { border-left-color: #e0851b; }
.callout-note { border-left-color: var(--accent-2); }
.faq { margin: 2.4rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.faq dt { font-weight: 700; margin-top: 1.1rem; }
.faq dd { margin: .3rem 0 0; color: var(--ink-soft); }
.sources { margin: 2rem 0; font-size: .88rem; color: var(--ink-soft); }
.disclosure {
  margin: 2.4rem 0; padding: 1.05rem 1.25rem; border-radius: var(--radius);
  background-image: linear-gradient(180deg, var(--bg-alt), color-mix(in srgb, var(--bg-alt) 85%, var(--surface)));
  font-size: .85rem; color: var(--ink-soft); border: 1px dashed var(--line);
  box-shadow: var(--e1), var(--hl-soft);
}

/* ---------------------------------------------------------------- footer */
.site-foot {
  background-image: linear-gradient(180deg, #17293c, #101c2b 60%);
  color: #c3d1e0; margin-top: 2.6rem; padding: 2.9rem 0 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -10px 30px rgba(20, 38, 58, .08);
}
.site-foot h2 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-foot a { color: #c3d1e0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-inner { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-about p { font-size: .87rem; color: #9fb0c2; max-width: 42ch; }
.foot-col ul { list-style: none; padding: 0; margin: 0; font-size: .87rem; display: grid; gap: .4rem; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-legal p { font-size: .78rem; color: #8296ab; margin: 0; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .head-inner { padding: .6rem 0; gap: .5rem; }
  .brand { width: 100%; }
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { gap: .25rem; flex-wrap: nowrap; }
  .site-nav a { padding: .42rem .62rem; font-size: .84rem; white-space: nowrap; }
  .site-head { position: static; }
  .crumbs li:last-child { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats { gap: .7rem; }
  .stats li { flex: 1 1 130px; min-width: 130px; padding: .75rem .9rem; }
  .grid--feature .card:first-child { grid-column: auto; }
  .grid--feature .card:first-child .card-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* First-party links block on every article (site.officialLinks). */
.official-links { margin: 2.4rem 0 0; padding: 1.4rem 1.6rem; border: 1px solid var(--line, #e2e2e2); background: var(--bg-alt, #fff); }
.official-links h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.official-note { margin: 0 0 .9rem; font-size: .92rem; color: var(--muted, #6e6e6e); }
.official-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.official-links li { margin: 0; font-size: .92rem; }
.official-links li a { font-weight: 600; }
.official-links li span { color: var(--muted, #6e6e6e); }


/* ===== novaluxia-fans theme ===== */
/* Site A — Novaluxia Fans PH
   Layout: magazine masthead + river home, modelled on the structural language of
   a Condé Nast beauty title: dark utility bar with a centred serif wordmark,
   centred uppercase section nav, left-aligned secondary nav, then a river home
   of centred section bands over a 3-up grid and horizontal carousels.

   Design rules taken from that language:
   - white page, black text, zero chrome: no cards, no borders, no shadows, no radii
   - headlines are serif at weight 400, tight leading
   - kickers, nav and bylines are uppercase sans, letter-spaced, small
   - section titles are centred
*/

:root {
  --ink: #000;
  --ink-soft: #2b2b2b;
  --muted: #6e6e6e;
  --line: #e2e2e2;
  --line-mid: #c9c9c9;
  --bg: #fff;
  --bg-alt: #fff;
  --surface: #fff;
  --chrome: #111;
  --chrome-ink: #f2f2f2;
  --chrome-muted: #b8b8b8;

  --accent: #000;
  --accent-2: #000;
  --accent-ink: #fff;
  --pop: #000;

  --radius: 0;
  --radius-sm: 0;

  --font-display: 'Newsreader', 'Times New Roman', Georgia, serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1450px;
  --wrap-narrow: 720px;
  --head-h: 150px;

  --e1: none; --e2: none; --e3: none; --e4: none;
  --hl: none; --press: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.85rem, 2.6vw, 2.375rem); }
h3 { font-size: 1.5rem; line-height: 1.17; }

a { color: inherit; }

.wrap { width: min(100% - 3.2rem, var(--wrap)); }
/* base.css pairs .wrap with .wrap-narrow; the rule above is later in the bundle
   and would otherwise win for elements carrying both classes, leaving article
   body copy ~1390px wide. Re-declare the narrow variant so it stays narrow. */
.wrap-narrow { width: min(100% - 3.2rem, var(--wrap-narrow)); }
@media (max-width: 700px) { .wrap { width: min(100% - 2rem, var(--wrap)); } .wrap-narrow { width: min(100% - 2rem, var(--wrap-narrow)); } }

/* ------------------------------------------------------------ masthead */

.site-head { position: relative; z-index: 5; background: var(--bg); }

.head-bar {
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: 0 clamp(1rem, 3vw, 2.4rem);
}
.head-bar .brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); justify-self: center; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.head-util { display: flex; align-items: center; gap: 1.35rem; font-family: var(--font-ui); }
.head-util--right { justify-self: end; }
.head-util a {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome-muted);
}
.head-util a:hover { color: var(--ink); }

.nav-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-row ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.9rem, 2.2vw, 2.1rem);
  list-style: none; margin: 0; padding: .78rem 1.2rem;
}
.nav-row a {
  font-family: var(--font-ui);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.nav-row a:hover, .nav-row a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-row--sub ul { padding: .62rem 1.2rem; gap: clamp(.8rem, 1.8vw, 1.7rem); }
.nav-row--sub a { font-weight: 500; font-size: .68rem; color: var(--ink-soft); }

.fan-banner {
  margin: 0; padding: .5rem 1rem; text-align: center;
  font-family: var(--font-ui); font-size: .64rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------- lead band */

.lead-band { padding: clamp(1.8rem, 3.4vw, 3rem) 0 clamp(1.4rem, 2.6vw, 2.4rem); }
.lead-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }
.lead-story { display: block; text-decoration: none; }
.lead-media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #f2f2f2; }
.lead-story .card-kicker { margin-top: 1.05rem; }
.lead-title { font-size: clamp(1.9rem, 2.9vw, 2.6rem); margin: 0 0 .55rem; }
.lead-excerpt { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 .6rem; max-width: 60ch; }

.lead-rail { display: grid; gap: 1.6rem; text-align: center; }
.rail-story { display: block; text-decoration: none; }
.rail-story .card-media { aspect-ratio: 16 / 9; }
.rail-story .card-title { font-size: 1.36rem; }
.rail-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rail-thumb { display: block; text-decoration: none; }
.rail-thumb .card-media { aspect-ratio: 16 / 9; }
.rail-thumb .card-title { font-size: 1rem; margin: .6rem 0 0; }
.rail-thumb:hover .card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------- bands */

.band { padding: clamp(1.9rem, 3.6vw, 3.1rem) 0; background: var(--bg); box-shadow: none; }
.band-alt { background: var(--bg); }
.band--carousel { padding-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.band-head { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: clamp(1.3rem, 2.4vw, 2rem); }
.band-head h2 { margin: 0; text-align: center; }
.band-head .more {
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  border-bottom: 1px solid var(--line-mid); padding-bottom: 2px;
}
.band-head .more:hover { color: var(--ink); border-color: var(--ink); }

.grid { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--compact { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--feature { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--feature .card:first-child { grid-column: auto; }
@media (max-width: 900px) { .grid--3, .grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--feature, .grid { grid-template-columns: 1fr; } }

.carousel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 22.5rem);
  gap: clamp(1.2rem, 2.4vw, 2rem); width: max-content; padding: 0 max(1.6rem, calc((100vw - var(--wrap)) / 2)) .6rem;
}
.carousel-track .card { scroll-snap-align: start; }

/* ------------------------------------------------------------- cards */

.card {
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible;
  transform: none;
}
.card:hover { transform: none; box-shadow: none; border-color: transparent; }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-media {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: #f2f2f2; box-shadow: none;
}
.card-media--placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; background: #f2f2f2; }
.card-body { padding: .95rem 0 0; text-align: center; }
.card-kicker {
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 .55rem;
}
.card-title { font-size: 1.42rem; margin: 0 0 .5rem; }
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card-byline {
  font-family: var(--font-ui); font-size: .64rem; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.card-excerpt { font-size: .97rem; color: var(--ink-soft); margin: 0 0 .55rem; }
.card-meta { justify-content: center; font-family: var(--font-ui); font-size: .66rem; color: var(--muted); margin-bottom: .5rem; }
.card--compact .card-title { font-size: 1.24rem; }

.pill {
  display: inline; background: none; border: 0; padding: 0; border-radius: 0;
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); box-shadow: none;
}

/* ---------------------------------------------------------- subscribe */

.band--subscribe { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subscribe-inner { text-align: center; display: grid; gap: .5rem; justify-items: center; max-width: 46rem; margin-inline: auto; }
.subscribe-inner h2 { margin: 0; }
.subscribe-inner p { margin: 0 0 .7rem; color: var(--ink-soft); }
.btn {
  border-radius: 0; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: .8rem 1.5rem; box-shadow: none; transform: none;
}
.btn:hover, .btn-primary:hover, .btn-ghost:hover { transform: none; box-shadow: none; text-decoration: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: none; color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------- article / hub pages */

.post-head { background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.6rem) 0 1.4rem; text-align: center; }
.crumbs { font-family: var(--font-ui); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); justify-content: center; margin-bottom: 1.1rem; }
.crumbs ol { justify-content: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-tags { justify-content: center; gap: .9rem; }
.post-head h1 { max-width: 22ch; margin: 0 auto .7rem; }
.post-head .lede { margin: 0 auto; max-width: 46rem; color: var(--ink-soft); font-size: 1.1rem; }
.post-meta { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

/* cap at the widest cover asset so the hero is never upscaled */
.post-cover { margin: 0 auto; max-width: min(var(--wrap), 1344px); }
.post-cover img { width: 100%; height: auto; max-height: 680px; object-fit: cover; box-shadow: none; display: block; }

.post-body > h2 { margin-top: 2.4rem; }
.post-body p, .post-body li { font-size: 1.0625rem; }
.post-body a { text-underline-offset: 3px; }

.toc, .callout, .table-wrap table, .faq, .sources, .disclosure { border-radius: 0; box-shadow: none; }
.toc { border: 1px solid var(--line); background: none; }
.toc-title { font-family: var(--font-ui); letter-spacing: .14em; }
.callout { border: 0; border-left: 3px solid var(--ink); border-radius: 0; background: #fafafa; }
.callout-title { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.table-wrap table { border: 1px solid var(--line); }
.table-wrap th { font-family: var(--font-ui); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.page-head, .hub-head { background: var(--bg); box-shadow: none; border-bottom: 1px solid var(--line); text-align: center; }
.hub-body { text-align: left; }

.cat-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card { border: 0; border-radius: 0; box-shadow: none; background: #fff; transform: none; }
.cat-card:hover { transform: none; box-shadow: none; }
.cat-card a { padding: 1.1rem 1.2rem; }
.cat-card h3 { font-size: 1.1rem; }
.cat-card p { font-size: .9rem; }
.cat-count { font-family: var(--font-ui); letter-spacing: .13em; color: var(--muted); }

.hero { background: var(--bg); box-shadow: none; }
.stats { justify-content: center; }
.stats li { background: none; border: 0; box-shadow: none; padding: 0 1.2rem; }
.stats strong { font-family: var(--font-display); font-weight: 400; }
.stats span { font-family: var(--font-ui); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }

/* ------------------------------------------------------------ footer */

.site-foot { background: var(--chrome); color: var(--chrome-ink); margin-top: clamp(2rem, 4vw, 3.4rem); box-shadow: none; border: 0; }
.foot-inner { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1.6rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 3.2rem) 0 1.6rem; }
.foot-col h2 { font-family: var(--font-ui); font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin: 0 0 .9rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-col a { font-family: var(--font-ui); font-size: .8rem; color: var(--chrome-muted); text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-about p { font-family: var(--font-body); font-size: .92rem; color: var(--chrome-muted); margin: 0 0 .6rem; max-width: 42ch; }
.foot-socials a { font-family: var(--font-ui); font-size: .78rem; }
.foot-legal { border-top: 1px solid #2e2e2e; padding: 1.1rem 0 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-legal p { margin: 0; font-family: var(--font-ui); font-size: .68rem; letter-spacing: .04em; color: var(--chrome-muted); }

/* Footer keyword row — the five searches readers arrive on, repeated site-wide
   so the pages answering them get the internal links. */
.foot-keywords { border-top: 1px solid #2e2e2e; padding: 1.4rem 0 1.5rem; }
.foot-keywords-label { margin: 0 0 .8rem; font-family: var(--font-ui); font-size: .63rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8d8d8d; }
.foot-keywords ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem 1.9rem; }
.foot-keywords a { font-family: var(--font-ui); font-size: .8rem; color: var(--chrome-muted); text-decoration: none; border-bottom: 1px solid #3a3a3a; padding-bottom: 1px; }
.foot-keywords a:hover { color: #fff; border-bottom-color: var(--accent); }
@media (max-width: 700px) { .foot-keywords ul { gap: .5rem 1.3rem; } .foot-keywords a { font-size: .76rem; } }

/* Keyword-bearing internal links, sitting under the Keep reading cards. The
   anchor text is the search phrase, so this block is what actually feeds the
   trust cluster its anchor variety. */
.related-links { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.related-links-label { margin: 0 0 .75rem; font-family: var(--font-ui); font-size: .63rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.related-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.7rem; }
.related-links a { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-mid); padding-bottom: 1px; }
.related-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 700px) { .related-links ul { gap: .45rem 1.1rem; } .related-links a { font-size: .76rem; } }

/* -------------------------------------------------------------- misc */

.skip { font-family: var(--font-ui); }
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; }
  .head-bar { min-height: 54px; }
  .head-util { gap: .9rem; }
  .head-util a { font-size: .62rem; letter-spacing: .1em; }
  .brand-word { font-size: 1.3rem; }
}
@media (max-width: 620px) {
  .head-util--left { display: none; }
  .head-bar { grid-template-columns: 1fr auto; }
  .head-bar .brand { justify-self: start; }
  .nav-row ul { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; }
  .carousel-track { grid-auto-columns: minmax(0, 17rem); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- polish overrides */

.disclosure {
  border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0;
  background: #fafafa; background-image: none; box-shadow: none;
  font-size: .92rem; color: var(--ink-soft);
}
.sources { font-size: .95rem; }
.sources h2 { font-size: 1.2rem; }
.sources a { text-underline-offset: 3px; }
.faq dt { font-family: var(--font-display); font-weight: 400; font-size: 1.16rem; }
.faq dd { font-size: 1rem; }
.empty { font-style: normal; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.page-head, .hub-head { padding: clamp(1.9rem, 3.4vw, 2.8rem) 0 1.2rem; background: var(--bg); box-shadow: none; }
.hub-head h1, .page-head h1 { margin-inline: auto; }
.index-count { font-family: var(--font-ui); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; }
.hero-inner { text-align: center; }
.hero h1, .hero .lede { margin-inline: auto; max-width: 34ch; }
.hero .lede { max-width: 56ch; }
.hero-actions { justify-content: center; }
.band-alt, .band--subscribe { background: var(--bg); }
.chip, .toolbar input, .toolbar select, .filter-bar input {
  border-radius: 0; box-shadow: none; border: 1px solid var(--line);
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toc ol { font-size: .95rem; }
.callout p, .callout li { font-size: .99rem; }
.table-wrap th { background: #fafafa; }
.table-wrap td, .table-wrap th { border-color: var(--line); }

/* Size the lockup by WIDTH, never by height. base.css caps every img at
   max-width:100%, so a fixed height would let a narrow header cell squash the
   logo sideways. With width + height:auto the aspect ratio always holds. */
.brand-lockup { display: block; width: clamp(150px, 46vw, 293px); height: auto; }
@media (max-width: 900px) { .brand-lockup { width: clamp(132px, 40vw, 229px); } .head-bar { min-height: 62px; } }
@media (max-width: 620px) {
  /* All posts / Reviews / About all repeat links that the nav row below
     already carries, so on a narrow phone they only steal width from the
     logo. Keep RSS (the one thing not in the nav) and give the lockup the room. */
  .head-util--right a:not([href$="feed.xml"]) { display: none; }
  .brand-lockup { width: clamp(150px, 46vw, 200px); }
  .head-util { gap: .7rem; }
  .head-util a { font-size: .6rem; letter-spacing: .1em; }
}
