/* The Mirror Moment — shared styles
   Direction: quiet luxury with a mirror motif, in Carin's original palette:
   alabaster cream, warm espresso ink, terracotta accents, and champagne-gold
   "mirror glass" for frames, the logo,
   section markers and the abstract panel. Reflections appear in a few
   deliberate places: the hero word, the key statistics and the hero mirror.
   Pages keep a research-article structure: abstract, numbered sections,
   citations, references. */
:root {
  --paper: #FBF7F0;          /* alabaster cream */
  --surface: #FFFCF7;
  --ink: #2B1D17;            /* warm espresso */
  --ink-soft: #4A3A32;       /* secondary text, still high contrast */
  --ink-faint: #6E5B50;      /* captions and labels */
  --accent: #A4482A;         /* deep terracotta */
  --line: #E6D9C8;
  --line-strong: #C9B396;
  /* champagne-gold mirror frame tones */
  --silver-1: #F6ECDA;
  --silver-2: #DCC39A;
  --silver-3: #B08F5C;
  --glass-1: #F7EEE3;
  --glass-2: #EEDFCD;
  --sheen: rgba(255, 252, 245, 0.8);
  --chart-1: #E2CBA6;
  --chart-2: #B08F5C;
  --chart-3: #A4482A;
  --display: "Playfair Display", "Didot", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1512; --surface: #251C18;
    --ink: #F6EDE3; --ink-soft: #DCCDBF; --ink-faint: #B4A291;
    --accent: #E59072; --line: #3D302A; --line-strong: #5E4A3C;
    --silver-1: #6B5638; --silver-2: #3E3122; --silver-3: #C9A86E;
    --glass-1: #2C221D; --glass-2: #231B17; --sheen: rgba(255, 240, 220, 0.12);
    --chart-1: #5E4A3C; --chart-2: #C9A86E; --chart-3: #E59072;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1512; --surface: #251C18;
  --ink: #F6EDE3; --ink-soft: #DCCDBF; --ink-faint: #B4A291;
  --accent: #E59072; --line: #3D302A; --line-strong: #5E4A3C;
  --silver-1: #6B5638; --silver-2: #3E3122; --silver-3: #C9A86E;
  --glass-1: #2C221D; --glass-2: #231B17; --sheen: rgba(255, 240, 220, 0.12);
  --chart-1: #5E4A3C; --chart-2: #C9A86E; --chart-3: #E59072;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; line-height: 1.75; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Silvered mirror surface, reused by frames and markers */
.silver, .mirror-frame, .body h2 .num, .masthead .wrap::before {
  background: linear-gradient(135deg, var(--silver-1) 0%, var(--silver-2) 28%, var(--silver-1) 46%, var(--silver-3) 62%, var(--silver-2) 80%, var(--silver-1) 100%);
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 22px; height: 28px; color: var(--accent); flex: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.kicker { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Article masthead: a small silvered arch, like the logo, marks each guide */
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { padding-block: 80px 52px; display: flex; flex-direction: column; gap: 20px; }
.masthead .wrap::before { content: ""; width: 30px; height: 40px; border-radius: 15px 15px 2px 2px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.masthead h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 18ch; }
.meta { font-size: 0.88rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; }

/* Article grid */
.article { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-block: 56px 96px; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.toc strong { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--accent); }
.body { min-width: 0; display: flex; flex-direction: column; gap: 60px; max-width: 70ch; }
.body section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 110px; }
.body h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.3vw, 2.25rem); line-height: 1.2; display: flex; align-items: center; gap: 16px; }
.body h2 .num { flex: none; width: 36px; height: 44px; border-radius: 18px 18px 3px 3px; display: grid; place-items: center; font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 0 var(--surface); }
.body h3 { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-top: 6px; }
.body ul, .body ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.body li::marker { color: var(--accent); }
sup.cite { font-size: 0.68em; line-height: 0; margin-left: 1px; }
sup.cite a { text-decoration: none; font-weight: 700; }

/* Abstract: a pane of glass with a soft sheen and a silvered edge */
.abstract { position: relative; overflow: hidden; padding: 30px 32px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, var(--glass-1), var(--glass-2));
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 6px var(--surface), inset 0 0 0 7px var(--line); }
.abstract::before { content: ""; position: absolute; top: -40%; left: -30%; width: 45%; height: 180%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, var(--sheen), transparent); pointer-events: none; }
.abstract > * { position: relative; }
.abstract .label { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.abstract p { font-size: 1.1rem; line-height: 1.75; color: var(--ink); }
.abstract strong { color: var(--accent); }

/* Notes */
.note { font-size: 0.98rem; color: var(--ink-soft); background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 20px; }
.note b { color: var(--ink); }
.placeholder { border: 1.5px dashed var(--line-strong); padding: 24px; color: var(--ink-soft); background: var(--surface); }

/* Figures and tables */
figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
figcaption { font-size: 0.88rem; line-height: 1.6; color: var(--ink-faint); font-weight: 500; }
figcaption b { color: var(--ink); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
th, td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
thead th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
td.n { text-align: right; white-space: nowrap; padding-right: 0; }

/* Bar chart */
.bars { display: flex; flex-direction: column; gap: 24px; font-size: 0.9rem; }
.bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.bar-row > b { font-weight: 700; }
.bar-track { display: flex; flex-direction: column; gap: 6px; }
.bar-line { display: flex; align-items: center; gap: 10px; }
.bar { height: 12px; border-radius: 0 2px 2px 0; flex: none; }
.bar-line span { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.bar.c1 { background: var(--chart-1); }
.bar.c2 { background: var(--chart-2); }
.bar.c3 { background: var(--chart-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.84rem; color: var(--ink-soft); font-weight: 600; }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px; }
.legend i.dot { border-radius: 50%; }
.legend i.ring { border-radius: 50%; background: transparent !important; border: 1.5px solid var(--chart-2); }

/* Stats: numbers sit on the "glass" and reflect below */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 4px; }
.stat b { font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--accent); align-self: flex-start;
  -webkit-box-reflect: below 0px linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2)); margin-bottom: 0.45em; }
.stat span { font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }

/* Guide list on home: each guide is a small arched mirror */
.toc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.toc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px; border-radius: 80px 80px 4px 4px; background: linear-gradient(170deg, var(--surface), var(--glass-1)); box-shadow: inset 0 0 0 1px var(--line-strong); text-decoration: none; color: var(--ink); min-width: 0; }
.toc-card::before { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, var(--sheen), transparent); transition: left .7s ease; pointer-events: none; }
a.toc-card:hover::before { left: 120%; }
@media (prefers-reduced-motion: reduce) { .toc-card::before { transition: none; } }
.toc-card > * { position: relative; }
.toc-card b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; padding-top: 4px; }
a.toc-card:hover b { color: var(--accent); }
.toc-card span:not(.chip) { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.toc-card.soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.toc-card.soon b { color: var(--ink-faint); }
.chip { align-self: center; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
a.toc-card .chip { color: var(--accent); }
.toc-card { text-align: center; align-items: center; }

/* Glossary */
.glossary { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.glossary details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.glossary summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary::after { content: "+"; font-family: var(--sans); color: var(--accent); font-weight: 600; }
.glossary details[open] summary::after { content: "−"; }
.glossary details p { padding-top: 8px; color: var(--ink-soft); }

/* Competencies */
.comp { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; border-top: 2px solid var(--ink); padding-top: 20px; }
.comp > div { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.body .comp ul { list-style: none; padding: 0; font-size: 0.95rem; gap: 6px; }

/* Template and buttons */
.template { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.template pre { margin: 0; width: 100%; white-space: pre-wrap; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; line-height: 1.7; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 28px; color: var(--ink); border-radius: 4px; }
.btn, button.copy { font: inherit; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; padding: 14px 24px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; display: inline-block; line-height: 1.4; border-radius: 2px; }
.btn.ghost, button.copy { background: transparent; color: var(--ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
button.copy:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Contact */
.contact-card { padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; border-radius: 4px; background: linear-gradient(160deg, var(--glass-1), var(--glass-2)); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 6px var(--surface), inset 0 0 0 7px var(--line); }
.contact-card .label { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.contact-value { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 4vw, 2rem); overflow-wrap: anywhere; user-select: all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Calendar */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { font: inherit; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 10px 18px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cal { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.month { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; min-width: 0; }
.body .month h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--ink); }
.month ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; line-height: 1.5; }
.month li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.month li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--chart-2); }
.month li.key { color: var(--ink); font-weight: 700; }
.month li.key::before { background: var(--chart-3); }
.month li.you::before { background: transparent; border: 1.5px solid var(--chart-2); }

/* References */
.refs { border-top: 2px solid var(--ink); padding-top: 28px; }
.body .refs h2 { font-size: 1.5rem; }
.body .refs ol { font-size: 0.88rem; line-height: 1.65; color: var(--ink-soft); gap: 12px; }
.refs li { scroll-margin-top: 110px; overflow-wrap: anywhere; }
.refs li:target { color: var(--ink); background: var(--glass-1); }

/* Home hero */
.home-hero { border-bottom: 1px solid var(--line); }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: center; padding-block: 88px 80px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.home-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(3.1rem, 8vw, 5.8rem); line-height: 1.02; letter-spacing: -0.015em; }
.home-hero h1 em { font-style: italic; color: var(--accent); }
.reflect { display: inline-block; -webkit-box-reflect: below -0.12em linear-gradient(transparent 52%, rgba(0, 0, 0, 0.22)); }
.hero-copy .mission { font-size: 1.15rem; line-height: 1.75; color: var(--ink-soft); max-width: 46ch; margin-top: 0.7em; }
.hero-copy .mission strong { color: var(--ink); }

/* The hero mirror: silvered arched frame, glass with a slow sweep of light */
.mirror { justify-self: center; width: min(330px, 100%); gap: 16px; }
.mirror-frame { padding: 12px; border-radius: 999px 999px 8px 8px; box-shadow: 0 30px 60px -36px rgba(43, 29, 23, 0.5), inset 0 0 0 1px var(--silver-3); }
.mirror-glass { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(165deg, var(--glass-1) 0%, var(--surface) 45%, var(--glass-2) 100%); box-shadow: inset 0 0 0 1px var(--silver-3), inset 0 10px 30px rgba(0, 0, 0, 0.08); }
.mirror-glass::before, .mirror-glass::after { content: ""; position: absolute; top: -30%; height: 160%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, var(--sheen), transparent); pointer-events: none; }
.mirror-glass::before { left: -10%; width: 34%; animation: sweep 9s ease-in-out infinite; }
.mirror-glass::after { left: 30%; width: 10%; opacity: 0.8; animation: sweep 9s ease-in-out infinite; }
@keyframes sweep { 0%, 15% { translate: -140% 0; } 55%, 100% { translate: 360% 0; } }
@media (prefers-reduced-motion: reduce) { .mirror-glass::before, .mirror-glass::after { animation: none; } }
.mirror-glass img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 18%; }
.mirror-glass::before, .mirror-glass::after { z-index: 1; }
.pull { margin: 8px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line-strong); font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.35; color: var(--accent); display: flex; flex-direction: column; gap: 14px; }
.pull cite { font-family: var(--sans); font-style: normal; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.mirror-glass span { position: relative; font-family: var(--display); font-style: italic; font-weight: 500; color: var(--ink-faint); font-size: 1.1rem; line-height: 1.5; }
.mirror-glass small { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mirror figcaption { text-align: center; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }

/* Chart interaction */
.bar-line { cursor: default; border-radius: 2px; transition: opacity .2s; }
.bar-line:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bars.has-active .bar-line:not(.active) { opacity: 0.35; }
.readout { font-size: 0.92rem; font-weight: 700; color: var(--accent); min-height: 1.6em; }

/* Student stories: arched mirror cards */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-card { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 999px 999px 4px 4px; padding: 10px; display: flex; }
.story-card::after { content: ""; position: absolute; top: -30%; left: -40%; width: 30%; height: 160%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, var(--sheen), transparent); pointer-events: none; }
.story-card { background: linear-gradient(135deg, var(--silver-1) 0%, var(--silver-2) 28%, var(--silver-1) 46%, var(--silver-3) 62%, var(--silver-2) 80%, var(--silver-1) 100%); }
.story-card > * { position: relative; }
.story-card p, .story-card .chip { margin: 0; }
.story-card { flex-direction: column; }
.story-card .chip, .story-card p { background: transparent; }
.story-card::before { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 2px 2px; background: linear-gradient(165deg, var(--glass-1), var(--surface) 50%, var(--glass-2)); }
.story-card .chip { margin-top: auto; align-self: center; padding: 0 16px; }
.story-card p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.05rem; line-height: 1.4; text-align: center; padding: 8px 18px 28px; color: var(--ink); }

/* Gentle reveal as sections scroll in. Starts visible, only adds motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .body > section, .body > .abstract, .toc-card, .stat, .story-card, figure {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise { from { opacity: 0.55; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Skip link */
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: 2px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-faint); font-weight: 500; }
.site-foot .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 72px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc strong { width: 100%; margin: 0; }
  .home-hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 56px; }
  .mirror { width: min(260px, 75%); }
  .masthead .wrap { padding-block: 52px 40px; }
  .comp { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .site-nav { gap: 4px 16px; }
  .stats { grid-template-columns: 1fr; }
  .toc-cards { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .month { grid-template-columns: 1fr; gap: 8px; }
  .abstract { padding: 24px 22px; }
  .story-grid { grid-template-columns: 1fr; max-width: 280px; }
}
