/* =========================================================
   Selene Program: prototype styles
   One signature color (--signature); everything else is
   night-sky neutrals. Swap the signature in one place.
   ========================================================= */

:root {
  /* Signature (changeable from the prototype panel) */
  --signature: #ffb23f;
  --signature-ink: #1b1204;          /* text on signature fills */
  --signature-soft: color-mix(in srgb, var(--signature) 14%, transparent);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

/* ---------- Theme tokens ----------
   <html data-theme="dark|light"> is set before first paint by the inline
   script in each page's <head>. Bare :root is Night (the default).
   The home hero and the header sitting on it stay Night in both themes,
   because they are on top of the video. */
:root,
:root[data-theme="light"] .hero-video,
:root[data-theme="light"] .site-header--over-hero:not(.is-scrolled) {
  /* Night-sky neutrals */
  --bg: #07080f;
  --bg-raised: #0e1020;
  --ink: #ecebe5;                    /* moonlight */
  --ink-2: rgb(236 235 229 / 0.68);
  --ink-3: rgb(236 235 229 / 0.42);
  --line: rgb(236 235 229 / 0.12);
  --line-strong: rgb(236 235 229 / 0.24);

  --signature-text: var(--signature);  /* signature as text/icon on the page bg */
  --glass: rgb(7 8 15 / 0.82);         /* translucent bars (sticky subnav, overlays) */
  --hover-fill: rgb(236 235 229 / 0.12);
  --soft-fill: rgb(236 235 229 / 0.07);
  --faint-fill: rgb(236 235 229 / 0.06);
  --current-bg: #fff;                  /* selected pill */
  --current-ink: #07080f;

  /* Shared surfaces */
  --bg-glow: #0d1024;                  /* top glow of the body gradient */
  --header-glass: rgb(7 8 15 / 0.72);
  --menu-panel: rgb(7 8 15 / 0.96);
  --card-bg: rgb(14 16 32 / 0.6);
  --card-bg-hover: rgb(14 16 32 / 0.85);
  --proto-bg: rgb(14 16 32 / 0.9);
  --proto-panel-bg: rgb(14 16 32 / 0.97);
  --proto-shadow: 0 16px 48px rgb(0 0 0 / 0.5);
  --img-ph-dot: rgb(120 116 108 / 0.12);
  --img-ph-a: #1a1d2b;
  --img-ph-b: #0e1020;

  color-scheme: dark;
}

/* Day: the same brand in daylight (warm paper, ink-dark text) */
:root[data-theme="light"] {
  --bg: #f7f5ef;
  --bg-raised: #ffffff;
  --ink: #14151c;
  --ink-2: rgb(20 21 28 / 0.74);
  --ink-3: rgb(20 21 28 / 0.60);
  --line: rgb(20 21 28 / 0.12);
  --line-strong: rgb(20 21 28 / 0.24);

  --signature-text: color-mix(in srgb, var(--signature) 50%, #1a1206);
  --glass: rgb(247 245 239 / 0.85);
  --hover-fill: rgb(20 21 28 / 0.08);
  --soft-fill: rgb(20 21 28 / 0.05);
  --faint-fill: rgb(20 21 28 / 0.045);
  --current-bg: #14151c;
  --current-ink: #fff;

  --bg-glow: #fffcf4;
  --header-glass: rgb(247 245 239 / 0.82);
  --menu-panel: rgb(247 245 239 / 0.97);
  --card-bg: rgb(255 255 255 / 0.62);
  --card-bg-hover: #ffffff;
  --proto-bg: rgb(255 255 255 / 0.92);
  --proto-panel-bg: rgb(255 255 255 / 0.98);
  --proto-shadow: 0 16px 48px rgb(20 21 28 / 0.14);
  --img-ph-dot: rgb(20 21 28 / 0.06);
  --img-ph-a: #ece8de;
  --img-ph-b: #e2ddd0;

  color-scheme: light;
}

/* Short cross-fade while switching themes (class added by main.js,
   never under reduced motion) */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease,
              fill .3s ease, stroke .3s ease, opacity .3s ease !important;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--bg-glow) 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img, svg { display: block; }
em { font-style: normal; }
main { overflow: clip; }

:focus-visible {
  outline: 2px solid var(--signature-text);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--signature); color: var(--signature-ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Placeholder content marker */
.ph {
  text-decoration: underline dashed;
  text-decoration-color: var(--ink-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}
.hide-ph .ph { text-decoration: none; }

/* ---------- Sky ---------- */
.sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* Stars only at night */
:root[data-theme="light"] .sky { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .sky { transition: opacity .4s ease, visibility .4s; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }

.btn-primary {
  padding: 16px 24px;
  background: var(--signature);
  color: var(--signature-ink);
  font-weight: 600;
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(1px); }

.btn-register {
  padding: 10px 16px;
  background: var(--soft-fill);
  color: var(--ink);
}
.btn-register:hover { background: var(--hover-fill); }
.btn-register.is-open {
  background: var(--signature);
  border-color: var(--signature);
  color: var(--signature-ink);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 30px; height: 30px; overflow: visible; }
.logo-word { font: 400 26px/1 var(--font-serif); letter-spacing: 0.01em; }

.primary-nav ul {
  display: flex; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.primary-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover { color: var(--ink); background: var(--faint-fill); }

@media (min-width: 861px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-actions { justify-self: end; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Day/Night toggle: icon only, no box. Shows the sun at night (switch to
   day) and the moon by day (switch to night). */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--soft-fill);
  color: var(--ink);
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block;
  width: 16px; height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--menu-panel);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    color: var(--ink);
  }
  .primary-nav a:hover { background: none; color: var(--signature-text); }
}
@media (max-width: 420px) {
}

/* ---------- Hero: full-width video behind a black tint (cf. snu.ac.kr) ---------- */
.hero-video {
  position: relative;
  /* At least the video's 16:9 frame (full page width) and at least the screen
     height; the video scales up to cover whichever is larger. */
  width: 100%;
  height: max(100svh, 56.25vw);   /* 56.25vw = the 16:9 video's height at full width */
  display: grid;
  place-items: start center;
  overflow: hidden;
  isolation: isolate;
  /* backdrop while the video loads, or if it is missing */
  background: radial-gradient(ellipse at 50% 40%, #1b1e33 0%, #0d0f1d 55%, var(--bg) 100%);
}
/* Layers, back to front: video (0) → tint (1) → title and description (2) */
.hero-video-media {
  position: absolute; inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-media.is-ready { opacity: 1; }
.hero-video-tint {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgb(0 0 0 / 0.18), transparent 70%),
    linear-gradient(to bottom, rgb(0 0 0 / 0.25), transparent 25% 75%, rgb(7 8 15 / 0.6)),
    rgb(0 0 0 / 0.45);
  pointer-events: none;
}
.hero-video-copy {
  position: relative;
  z-index: 2;
  width: 100%;            /* never wider than the screen (grid centering would size it to the text) */
  min-width: 0;
  /* centered within the first screen, even when the hero is taller (very wide windows) */
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  animation: hero-rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-video-logo {
  width: clamp(176px, 18vw, 296px);
  max-height: 34svh;               /* keeps logo + title + text inside short screens */
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(20px, 2.4vw, 34px);
  border-radius: 50%;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.45);
}
.hero-video-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(44px, 8.5vw, 144px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-shadow: 0 4px 48px rgb(0 0 0 / 0.35);
}
.hero-video-tagline {
  margin: clamp(18px, 2.2vw, 30px) 0 0;
  font: 500 clamp(17px, 1.7vw, 26px)/1.3 var(--font-display);
  font-stretch: 100%;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.9);
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.4);
  text-wrap: balance;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-scroll {
  position: absolute;
  left: 50%; bottom: max(28px, env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.hero-scroll:hover { color: var(--ink); }
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--ink-2), transparent);
  transform-origin: top;
  animation: hero-scroll 2.4s ease-in-out infinite;
}
@keyframes hero-scroll {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-copy, .hero-scroll-line { animation: none; }
}
@media (max-width: 860px) {
  .hero-scroll { display: none; }
}

/* ---------- Simple explanation under the video ---------- */
.intro {
  padding: clamp(72px, 11vw, 160px) 0 clamp(80px, 12vw, 180px);
  scroll-margin-top: var(--header-h);
}
.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro-tagline {
  margin: 0;
  font: 500 clamp(34px, 4.4vw, 60px)/1.05 var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.intro-tagline em {
  display: block;
  font-style: normal;          /* same sans as the first line, only the color differs */
  color: var(--signature-text);
}
.intro-body { min-width: 0; max-width: 36em; }
.intro-lede {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.intro-text {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.edition-line {
  display: flex; flex-wrap: wrap; align-items: center;
  row-gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  font: 400 14px/1.4 var(--font-mono);
  color: var(--ink-2);
}
.edition-item { display: flex; align-items: center; }
.edition-item dd { margin: 0; }
.edition-item + .edition-item::before {
  content: "";
  width: 4px; height: 4px;
  margin-inline: 12px;
  border-radius: 50%;
  background: var(--ink-3);
}
.edition-name dd { color: var(--ink); font-weight: 500; }
.edition-name::before {
  content: "Next";
  margin-right: 12px;
  padding: 4px 8px;
  background: var(--signature-soft);
  border-radius: 999px;
  color: var(--signature-text);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-cta { margin-top: 32px; }

.hero-cta { margin-top: 32px; }

@media (max-width: 860px) {
  .intro-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Prototype panel (remove before launch) ---------- */
.proto {
  position: fixed; right: 16px; bottom: 16px;
  z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font-size: 13px;
}
.proto-toggle {
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: var(--proto-bg);
  color: var(--ink-2);
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.proto-toggle:hover { color: var(--ink); }
.proto-panel {
  order: -1;
  width: 260px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--proto-panel-bg);
  box-shadow: var(--proto-shadow);
}
.proto-panel[hidden] { display: none; }
.proto fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.proto fieldset:last-child { margin-bottom: 0; }
.proto legend {
  margin-bottom: 8px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.proto label { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-2); cursor: pointer; }
.proto input { accent-color: var(--signature); margin: 0; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px; height: 28px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--bg-raised);
}
.swatch[aria-pressed="true"] { border-color: var(--ink); }

/* =========================================================
   Shared subpage primitives (About / Program / People / Editions)
   Page-specific styles live in about.css, program.css, etc.
   ========================================================= */

/* Current page in the top nav */
.primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 4px; height: 4px;
  margin: 4px auto -8px;
  border-radius: 50%;
  background: var(--signature);
}
@media (max-width: 860px) {
  .primary-nav a[aria-current="page"] { color: var(--signature-text); }
  .primary-nav a[aria-current="page"]::after { display: none; }
}

/* Eyebrow: mono label with a signature dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font: 400 13px/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--signature);
  box-shadow: 0 0 0 4px var(--signature-soft);
}

/* Page hero: title block at the top of every subpage */
.page-hero {
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-title {
  margin: 0;
  font: 400 clamp(56px, 8vw, 112px)/0.95 var(--font-serif);
  letter-spacing: -0.02em;
}
.page-title em { font-style: italic; color: var(--signature-text); }
.page-lede {
  margin: 24px 0 0;
  max-width: 40em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* Sections: label column + content column on wide screens */
.section {
  padding: clamp(56px, 8vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: 0; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 860px) { .section-grid { grid-template-columns: 1fr; } }

.section-label {
  margin: 0;
  font: 400 12px/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label .num { color: var(--signature-text); margin-right: 8px; }

.section-title {
  margin: 0;
  font: 500 clamp(28px, 3.4vw, 44px)/1.1 var(--font-sans);
  letter-spacing: -0.025em;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--signature-text);
}

/* Long-form text */
.prose { max-width: 42em; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { color: var(--ink); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; }

/* Cards */
.card {
  border-radius: 16px;
  background: var(--card-bg);
  padding: clamp(20px, 2.4vw, 28px);
  transition: border-color .2s, background-color .2s;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.is-interactive:hover { background: var(--card-bg-hover); }

/* Tags / pills */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--soft-fill);
  border-radius: 999px;
  font: 400 11px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-signature { background: var(--signature-soft); color: var(--signature-text); }
a.tag { text-decoration: none; transition: color .2s, border-color .2s; }
a.tag:hover { color: var(--ink); background: var(--hover-fill); }

/* In-page sub-navigation (sticky pill bar under the header) */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex; gap: 6px;
  margin: 0; padding: 12px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a, .subnav button {
  display: block;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.subnav a:hover, .subnav button:hover { color: var(--ink); }
.subnav a[aria-current="true"], .subnav button[aria-pressed="true"], .subnav button[aria-selected="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}
/* Anchored sections clear the fixed header + subnav */
[data-anchor] { scroll-margin-top: calc(var(--header-h) + 72px); }

/* Initials avatar (placeholder for portraits) */
.avatar {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  background: var(--bg-raised);
  font: 500 15px/1 var(--font-sans);
  color: var(--ink-2);
}

/* Image placeholder block */
.img-ph {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 35%, var(--img-ph-dot) 0 6%, transparent 7%),
    linear-gradient(160deg, var(--img-ph-a), var(--img-ph-b));
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
