/* Ellsworth Heritage — prototype. Matches the v2 site: deep navy ground, warm white type,
   gold accent, Cormorant Garamond display, Outfit body, square corners. */
:root {
  color-scheme: dark;
  --bg: hsl(220 40% 6%);
  --bg-alt: hsl(220 36% 8%);
  --card: hsl(220 35% 10%);
  --line: hsl(220 20% 18%);
  --line-strong: hsl(220 18% 28%);
  --fg: hsl(210 20% 95%);
  --fg-soft: hsl(212 18% 80%);
  --muted: hsl(215 15% 64%);
  --accent: hsl(38 60% 55%);
  --accent-ink: hsl(220 40% 6%);
  --shade: hsl(220 40% 6% / .86);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --bar-h: 49px;
}
@media (min-width: 768px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
.tile-img { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); font-weight: 400; margin-bottom: 18px; }
.lede { color: var(--muted); max-width: 46ch; margin-top: 16px; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
}
.wordmark { font-family: var(--serif); font-size: 30px; font-weight: 500; font-style: italic; text-decoration: none; letter-spacing: .01em; line-height: 1; }
.wordmark span { font-family: var(--sans); font-style: normal; font-size: 10px; vertical-align: top; margin-left: 2px; }
.site-nav { display: flex; gap: 40px; }
.site-nav a { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: var(--fg-soft); font-weight: 400; padding: 8px 0; transition: color .3s; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current] { color: var(--fg); border-bottom: 1px solid var(--accent); }
.menu-btn { display: none; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; border: 1px solid hsl(210 20% 95% / .35); padding: 10px 14px; background: hsl(220 40% 6% / .4); }
@media (max-width: 899px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 0; background: var(--card); border: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current] { border-bottom: 1px solid var(--line); color: var(--accent); }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to bottom, hsl(220 40% 6% / .62) 0%, hsl(220 40% 6% / .34) 24%, hsl(220 40% 6% / .62) 56%, var(--bg) 96%); }
@media (min-width: 900px) { .hero-shade { background: linear-gradient(to bottom, hsl(220 40% 6% / .55) 0%, hsl(220 40% 6% / .14) 26%, hsl(220 40% 6% / .5) 58%, var(--bg) 98%), linear-gradient(to right, hsl(220 40% 6% / .45), transparent 60%); } }
.hero-inner { position: relative; padding: 140px var(--gutter) 36px; max-width: 1400px; width: 100%; margin: 0 auto; }
.hero .eyebrow { color: var(--fg); text-shadow: 0 1px 12px hsl(220 40% 6% / .9); }
.hero h1 { font-size: clamp(56px, 12vw, 150px); line-height: .9; letter-spacing: -.01em; text-shadow: 0 2px 30px hsl(220 40% 6% / .5); }
.hero-sub { margin-top: 20px; font-size: clamp(17px, 2vw, 21px); color: var(--fg); max-width: 34ch; text-shadow: 0 1px 14px hsl(220 40% 6% / .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 400; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.btn-solid { background: var(--fg); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent); }
.btn-line { border: 1px solid hsl(210 20% 95% / .5); background: hsl(220 40% 6% / .35); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

.hero-strip-wrap { position: relative; max-width: 1400px; width: 100%; margin: 0 auto; padding: 8px 0 28px; }
.strip-label { padding: 0 var(--gutter); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 12px; }
.hero-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hero-strip button { flex: 0 0 auto; width: 132px; scroll-snap-align: start; text-align: left; }
@media (min-width: 1100px) { .hero-strip { overflow: visible; } .hero-strip button { flex: 1 1 0; width: auto; min-width: 0; } }
.hero-strip .tile-img { aspect-ratio: 4 / 3; background: var(--card); border: 1px solid hsl(210 20% 95% / .18); overflow: hidden; }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-strip button:hover img { transform: scale(1.05); }
.hero-strip .yr { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .2em; color: var(--fg-soft); font-weight: 400; }
.hero-strip button:hover .yr { color: var(--accent); }
.photo-credit { margin: 6px var(--gutter) 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); padding: 6px 0; }
.photo-credit:hover { color: var(--accent); }

/* Section bar */
.section-bar { position: sticky; top: 0; z-index: 40; background: var(--shade); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 1400px; margin: 0 auto; padding: 0 calc(var(--gutter) - 12px); }
.section-links::-webkit-scrollbar { display: none; }
.section-links a { flex: 0 0 auto; padding: 16px 12px 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--muted); font-weight: 400; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .25s; }
.section-links a:hover { color: var(--fg); }
.section-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.progress { height: 2px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--fg-soft); opacity: .45; }

/* Bands */
.band { padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: var(--bar-h); }
.band-alt { background: var(--bg-alt); }
@media (min-width: 768px) { .band { padding: 120px 0; } }
.band h2 { font-size: clamp(38px, 6vw, 72px); }
.band-head { display: flex; flex-direction: column; gap: 28px; margin-bottom: 48px; }
@media (min-width: 900px) { .band-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 80px; } }

/* Story */
.story-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; } }
.placeholder-copy { margin-top: 32px; border: 1px dashed var(--line-strong); padding: 28px; max-width: 56ch; }
.ph-mark { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--fg-soft); }
.ph-note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.story-quote { margin: 0; }
.story-art { display: block; width: 100%; border: 1px solid var(--line); overflow: hidden; }
.story-art img { width: 100%; transition: transform .7s; }
.story-art:hover img { transform: scale(1.03); }
.story-quote blockquote { margin: 28px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; }
.story-quote figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Timeline */
.decades { display: flex; flex-wrap: wrap; border: 1px solid var(--line); align-self: flex-start; }
@media (min-width: 900px) { .decades { align-self: auto; } }
.decades a { padding: 12px 16px; font-size: 12px; letter-spacing: .2em; text-decoration: none; color: var(--fg-soft); border-right: 1px solid var(--line); font-weight: 400; }
.decades a:last-child { border-right: 0; }
.decades a:hover { color: var(--accent); }

.timeline .loading { color: var(--muted); padding: 24px 0; }
.year { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; scroll-margin-top: calc(var(--bar-h) + 8px); }
.year-num { font-family: var(--serif); font-weight: 300; font-size: 64px; line-height: .9; color: var(--fg); grid-column: 1; align-self: end; }
.year-num small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-top: 10px; font-weight: 400; }
.year-cover { grid-column: 2; grid-row: 1; width: 120px; align-self: end; text-align: left; }
.year-cover .tile-img { border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.year-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.year-cover:hover img { transform: scale(1.05); }
.year-cover .cap { display: none; margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.year-cover:hover .cap { color: var(--accent); }
.year-body { grid-column: 1 / -1; min-width: 0; margin-top: 16px; }
@media (min-width: 900px) {
  .year { grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 0 64px; padding: 56px 0; }
  .year-num { font-size: 88px; align-self: start; color: hsl(210 20% 95% / .9); }
  .year-body { grid-column: 2; grid-row: 1; margin-top: 6px; }
  .year-cover { grid-column: 3; width: 100%; align-self: start; }
  .year-cover .cap { display: block; }
}
.year.empty { padding: 22px 0; }
.year.empty .year-num { font-size: 40px; color: var(--muted); }
.year.empty .year-body { margin-top: 6px; }
@media (min-width: 900px) { .year.empty { padding: 28px 0; } .year.empty .year-num { font-size: 48px; } .year.empty .year-body { margin-top: 10px; } }
.empty-line { color: var(--muted); font-size: 15px; }
.empty-line a, .slot a { color: var(--fg-soft); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.empty-line a:hover, .slot a:hover { color: var(--accent); }

/* Lineup size, one tick per model in that year's catalog */
.lineup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; }
.lineup-ticks { display: flex; gap: 3px; }
.lineup-ticks i { display: block; width: 7px; height: 10px; background: var(--accent); opacity: .8; }
.lineup-n { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--fg-soft); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 14px; font-weight: 400; line-height: 1.2; color: var(--fg); background: hsl(220 35% 10% / .6); transition: border-color .25s, color .25s, background .25s; min-height: 40px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.static { cursor: default; color: var(--fg-soft); }
.chips-label { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 400; }

.moments { margin-top: 28px; display: grid; gap: 22px; max-width: 68ch; }
.year.empty .moments { margin-top: 18px; }
.moment { border-left: 1px solid var(--line-strong); padding-left: 18px; }
.moment .kind { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.moment .kind b { font-weight: 400; color: var(--accent); }
.moment .text { font-size: 16px; color: var(--fg); }
.moment .text.q { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.25; }
.moment .src { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.moment .go { display: inline-block; margin-top: 6px; font-size: 13.5px; color: var(--fg-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); padding: 4px 0; }
.moment .go:hover { color: var(--accent); }
.flag { display: inline-block; border: 1px dashed var(--accent); color: var(--accent); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 7px; font-weight: 400; white-space: nowrap; font-family: var(--sans); font-style: normal; }
.more-moments { margin-top: 18px; font-size: 13.5px; color: var(--fg-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); padding: 6px 0; }
.more-moments:hover { color: var(--accent); }
.today-cta { margin-top: 24px; }

/* Models: the lines as a chart */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.g-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: -16px 0 22px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .g-legend { margin-top: -40px; } }
.g-legend li { display: flex; align-items: center; gap: 10px; }
.g-legend .k { flex: 0 0 auto; display: block; width: 30px; height: 8px; }
.k.solid, .g-cell.solid i { background: var(--accent); }
.k.canon, .g-cell.canon i { background: repeating-linear-gradient(135deg, hsl(38 60% 55% / .62) 0 2px, hsl(38 60% 55% / .14) 2px 5px); }
.k.before, .g-cell.canon.before i { background: linear-gradient(90deg, transparent, hsl(38 60% 55% / .5)); }
.g-hint { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.g-source { margin-top: 14px; font-size: 13px; color: var(--muted); }

.lines { --name-w: 112px; --col-w: 20px; overflow: auto; max-height: 76vh; border: 1px solid var(--line); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; -webkit-overflow-scrolling: touch; }
.gantt { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: calc(var(--name-w) + 37 * var(--col-w)); }
.gantt th, .gantt td { padding: 0; font-weight: 400; }
.gantt thead th { position: sticky; top: 0; z-index: 2; height: 40px; background: var(--g-bg, var(--bg)); border-bottom: 1px solid var(--line-strong); vertical-align: bottom; }
.gantt .g-yr { width: var(--col-w); border-left: 1px solid hsl(220 20% 18% / .55); }
.gantt .g-yr.five { border-left-color: var(--line-strong); z-index: 3; }
.gantt .g-yr span:not(.vh) { display: block; padding: 0 0 9px 5px; font-size: 12px; letter-spacing: .08em; color: var(--fg-soft); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: left; overflow: visible; }
.gantt .g-corner { left: 0; z-index: 4; width: var(--name-w); text-align: left; border-left: 0; }
.gantt .g-corner span { display: block; padding: 0 0 9px 10px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.gantt .g-name { position: sticky; left: 0; z-index: 1; width: var(--name-w); background: var(--g-bg, var(--bg)); text-align: left; padding: 6px 6px 6px 10px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.gantt .g-corner { border-right: 1px solid var(--line-strong); }
.g-title { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.1; color: var(--fg); }
.g-use { display: none; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.gantt td { height: 44px; border-left: 1px solid hsl(220 20% 18% / .55); border-bottom: 1px solid var(--line); }
.gantt td.five { border-left-color: var(--line-strong); }
.gantt tbody tr:hover .g-name, .gantt tbody tr:hover td { background-color: hsl(220 35% 10% / .7); }
.gantt tbody tr:hover .g-name { background-color: var(--card); }
.g-cell { display: flex; align-items: center; width: calc(100% + 1px); height: 43px; margin-left: -1px; position: relative; }
.g-cell i { display: block; width: 100%; height: 8px; }
.g-cell.start i { margin-left: 3px; }
.g-cell.end i { margin-right: 3px; }
.g-cell.canon i { height: 8px; }
button.g-cell { cursor: pointer; }
button.g-cell i { transition: background .2s, height .2s; }
button.g-cell:hover i, button.g-cell:focus-visible i { background: var(--fg); height: 14px; }
button.g-cell:focus-visible { outline-offset: -2px; z-index: 1; }

@media (min-width: 700px) {
  .lines { --name-w: 210px; --col-w: 26px; }
  .g-title { font-size: 21px; }
  .g-use { display: block; }
  .gantt .g-name { padding: 8px 14px 8px 16px; }
  .gantt .g-corner span { padding-left: 16px; }
  .gantt td { height: 48px; }
  .g-cell { height: 47px; }
}
/* Wide screens: no inner box. The chart fits, and the year row sticks under the page's own section bar. */
@media (min-width: 1180px) {
  .lines { --name-w: 250px; overflow: visible; max-height: none; border: 0; border-top: 1px solid var(--line); }
  .gantt { width: 100%; }
  .gantt .g-yr { width: auto; }
  .gantt thead th { top: var(--bar-h); }
  .g-hint { display: none; }
}

.line-notes { margin-top: 36px; display: grid; gap: 12px; max-width: 78ch; font-size: 14px; color: var(--muted); }
.line-notes b { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--fg-soft); margin-right: 6px; }

/* Technology: the same chart, on the alternate band */
.band-alt .lines { --g-bg: var(--bg-alt); }
.k.between { height: 2px !important; background: hsl(38 60% 55% / .45); }
.g-cell.between i { height: 2px; background: hsl(38 60% 55% / .45); }

/* Shelf */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 700px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1100px) { .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; } }
.book { display: block; width: 100%; text-align: left; }
.book .tile-img { aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.book img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.book:hover img { transform: scale(1.05); }
.book .b-year { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; margin-top: 14px; }
.book:hover .b-year { color: var(--accent); }
.b-title { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.b-note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.slot .tile-img { aspect-ratio: 4 / 3; border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--muted); font-size: 14px; }
.slot .b-year { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; margin-top: 14px; color: var(--muted); }

/* News */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { display: grid; gap: 6px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.filters select { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--fg); background: var(--card); border: 1px solid var(--line-strong); padding: 11px 36px 11px 12px; min-width: 150px; min-height: 46px; border-radius: 0; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.filters .reset { min-height: 46px; padding: 0 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); border: 1px solid var(--line); font-weight: 400; }
.filters .reset:hover { color: var(--accent); border-color: var(--accent); }
.count { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.news li { display: grid; gap: 8px 48px; padding: 30px 0; border-top: 1px solid var(--line); }
.news li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .news li { grid-template-columns: 220px minmax(0, 1fr); } }
.n-meta { font-size: 13.5px; color: var(--muted); }
.n-meta .pub { display: block; color: var(--fg); font-size: 16px; font-weight: 400; }
.n-meta .type { display: inline-block; margin-top: 8px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 2px 8px; font-weight: 400; }
.n-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 400; }
.n-quote { margin: 12px 0 0; font-size: 17px; color: var(--fg-soft); max-width: 62ch; }
.n-credit { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.n-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; font-size: 13.5px; }
.n-links a { color: var(--fg-soft); text-underline-offset: 3px; text-decoration-color: var(--line-strong); padding: 4px 0; }
.n-links a:hover { color: var(--accent); }
.n-links a.ext { color: var(--accent); }
.news .none { color: var(--muted); display: block; }

/* Footer */
.site-footer { padding: 64px 0 80px; }
.foot-word { font-family: var(--serif); font-style: italic; font-size: 34px; font-weight: 500; }
.foot-word span { font-family: var(--sans); font-style: normal; font-size: 10px; vertical-align: top; }
.foot-note { color: var(--fg-soft); margin-top: 16px; max-width: 60ch; }
.foot-legend { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: hsl(220 40% 4%); color: var(--fg); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: hsl(220 40% 3% / .9); }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); }
.lb-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.lb-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lb-tools { display: flex; gap: 8px; flex: 0 0 auto; }
.lb-tools button, .lb-nav button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.lb-tools button:hover, .lb-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.lb-tools button[aria-pressed="true"] { background: var(--fg); color: var(--accent-ink); border-color: var(--fg); }
.lb-stage { overflow: auto; display: flex; align-items: center; justify-content: center; padding: 12px; -webkit-overflow-scrolling: touch; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; background: var(--card); }
.lb-stage.zoomed { display: block; }
.lb-stage.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px var(--gutter); border-top: 1px solid var(--line); }
.lb-nav button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.lb-mid { display: grid; justify-items: center; gap: 2px; text-align: center; }
.lb-hint { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.lb-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .lb-nav button { padding: 0 12px; letter-spacing: .1em; } .lb-title { font-size: 19px; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--fg); color: var(--accent-ink); padding: 12px 18px; font-size: 14px; font-weight: 400; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
