/* Hallmark · macrostructure: Narrative Workflow · H6 photographic fold knobs: visual=official-cafe-scene, dialogue=bottom, choice=right
 * theme: custom · vibe: "sea-salt café, coral shop, quiet gold" · paper: oklch(99% 0.009 95) · accent: oklch(67% 0.16 355)
 * display: Noto Serif SC · body: Noto Sans SC · axes: light / roman-serif / chromatic-dusty-pink
 * genre: editorial · enrichment: E8 verified official still · nav: N6 newspaper masthead fixed · footer: Ft6 letter close
 * contrast: pass (40–41) · nav: N6 · footer: Ft6 · slop: pass (42–45)
 * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--space-md)); }
body {
  margin: 0;
  min-width: 20rem;
  padding-block-end: calc(4.75rem + env(safe-area-inset-bottom));
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin-block: 0; }
h1, h2, h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
h1 { font-size: var(--text-display-s); font-weight: 900; }
h2 { font-size: clamp(var(--text-xl), 5vw, var(--text-3xl)); font-weight: 900; }
h3 { font-size: var(--text-lg); font-weight: 800; }
p { max-width: var(--reading); }
summary { cursor: pointer; }
:focus-visible { outline: var(--rule-strong) solid var(--color-focus); outline-offset: var(--space-2xs); }
::selection { background: var(--color-blue); color: var(--color-charcoal); }

.shell { width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: clip; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: var(--space-sm) auto auto var(--space-sm); z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-charcoal); color: var(--color-night-ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.tnum { font-variant-numeric: tabular-nums; }
.fine-print { color: var(--color-muted); font-size: var(--text-sm); }

.site-header { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); pointer-events: none; }
.nav-wrap { position: relative; width: 100%; padding-inline: var(--gutter); background: var(--color-paper); color: var(--color-ink); border-block-end: var(--rule-double) double var(--color-ink); pointer-events: auto; }
.nav-issue { display: none; justify-content: space-between; align-items: center; min-height: 1.75rem; border-block-end: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; }
.nav-main {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  background: var(--color-paper);
  color: var(--color-ink);
  border: 0;
  pointer-events: auto;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.site-header.is-compact .nav-main { transform: translateY(calc(var(--space-2xs) * -1)); background: var(--color-paper); }
.brand { min-width: 0; min-height: 2.75rem; display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; object-fit: cover; border-radius: var(--radius-sm); }
.brand span { overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-weight: 900; }
.nav-links { display: none; align-items: center; gap: var(--space-2xs); }
.nav-link { min-height: 2.75rem; display: inline-flex; align-items: center; padding-inline: var(--space-sm); text-decoration: none; white-space: nowrap; border-block-end: var(--rule-strong) solid transparent; }
.nav-link[aria-current="page"] { border-color: var(--color-accent); }
.nav-actions { display: flex; align-items: center; gap: var(--space-xs); }
.menu-button { min-width: 3.25rem; min-height: 2.75rem; border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; }
.menu-sheet {
  position: absolute;
  inset: 100% var(--gutter) auto;
  width: auto;
  margin: 0;
  padding: var(--space-sm);
  display: grid;
  gap: var(--space-2xs);
  background: var(--color-charcoal);
  color: var(--color-night-ink);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(var(--space-xs) * -1));
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.menu-sheet.is-open { visibility: visible; opacity: 1; transform: none; }
.menu-sheet a { min-height: 2.75rem; display: flex; align-items: center; padding-inline: var(--space-sm); border-block-end: var(--rule-hair) solid var(--color-charcoal-2); text-decoration: none; white-space: nowrap; }

.button {
  position: relative;
  isolation: isolate;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  overflow: clip;
  border: var(--rule-strong) solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.button--large { min-height: 3.5rem; padding-inline: var(--space-xl); font-size: var(--text-md); }
.button--outline { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-ink); }
.button--dark { background: var(--color-charcoal); color: var(--color-night-ink); border-color: var(--color-gold); }
.button--shine::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: -42%; z-index: -1; width: 26%; background: var(--color-paper); opacity: 0.34; transform: skewX(-18deg); transition: transform var(--dur-long) var(--ease-out); }
.button--shine:is(:hover, :focus-visible)::after { transform: translateX(560%) skewX(-18deg); }
.button:active, .menu-button:active, .filter-tab:active, .gallery-item:active { transform: translateY(1px); }
.button[aria-disabled="true"], .button:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.button[aria-busy="true"] { cursor: wait; }
.button[aria-busy="true"]::before { content: ""; width: 1rem; aspect-ratio: 1; border: var(--rule-strong) solid currentColor; border-inline-end-color: transparent; border-radius: var(--radius-pill); animation: spin 0.8s linear infinite; }
.button[data-state="error"] { background: var(--color-error); color: var(--color-night-ink); border-color: var(--color-error); }
.button[data-state="success"] { background: var(--color-success); color: var(--color-night-ink); border-color: var(--color-success); }
@keyframes spin { to { transform: rotate(1turn); } }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-block: var(--nav-height) calc(var(--nav-height) + var(--space-2xl)); background: var(--color-charcoal); color: var(--color-night-ink); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.02); animation: hero-settle 12s var(--ease-out) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-overlay); }
@keyframes hero-settle { from { transform: scale(1.05); } to { transform: scale(1.02); } }
.hero-inner { display: grid; gap: var(--space-md); }
.hero-dialogue { padding: var(--space-lg); background: color-mix(in oklch, var(--color-charcoal) 88%, transparent); color: var(--color-night-ink); border: var(--rule-hair) solid var(--color-gold); box-shadow: var(--shadow-float); }
.hero-labels { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-block-end: var(--space-sm); }
.tag { width: max-content; display: inline-flex; align-items: center; min-height: 2rem; padding-inline: var(--space-sm); border: var(--rule-hair) solid currentColor; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.hero h1 { max-width: 18ch; font-size: clamp(2rem, 8vw, 4.4rem); }
.hero h1 small { display: block; margin-block-start: var(--space-xs); color: var(--color-gold); font-family: var(--font-body); font-size: var(--text-md); font-weight: 700; letter-spacing: 0; }
.hero-lede { margin-block-start: var(--space-md); max-width: 58ch; font-size: var(--text-md); }
.hero-facts { margin-block-start: var(--space-lg); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.hero-facts div { min-width: 0; padding-block-start: var(--space-xs); border-block-start: var(--rule-hair) solid color-mix(in oklch, var(--color-night-ink) 32%, transparent); }
.hero-facts dt { color: var(--color-gold); font-size: var(--text-sm); }
.hero-facts dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.choice-panel { display: grid; gap: var(--space-xs); }
.choice-panel .button { justify-content: space-between; }
.choice-key { display: inline-grid; place-items: center; width: 1.75rem; aspect-ratio: 1; border: var(--rule-hair) solid currentColor; border-radius: var(--radius-xs); font-size: var(--text-sm); }

.info-strip { position: relative; z-index: var(--z-raised); padding-block: var(--space-lg); background: var(--color-paper); border-block: var(--rule-hair) solid var(--color-rule); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rule-hair); background: var(--color-rule); }
.info-grid div { min-width: 0; padding: var(--space-md); background: var(--color-paper); }
.info-grid dt { color: var(--color-muted); font-size: var(--text-sm); }
.info-grid dd { margin-block-start: var(--space-2xs); font-weight: 800; overflow-wrap: anywhere; }

.section { padding-block: var(--space-3xl); }
.section--paper-2 { background: var(--color-paper-2); color: var(--color-ink); }
.section--night { background: var(--color-charcoal); color: var(--color-night-ink); }
.section-head { margin-block-end: var(--space-xl); display: grid; gap: var(--space-sm); }
.section-head p { color: var(--color-muted); font-size: var(--text-md); }
.section--night .section-head p { color: var(--color-gold); }
.section--night :focus-visible, .download-panel :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--color-focus-light); }
.section-index { display: block; color: var(--color-accent-strong); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 900; letter-spacing: 0.08em; }

.story-layout { display: grid; gap: var(--space-xl); }
.story-copy { display: grid; align-content: start; gap: var(--space-lg); }
.story-copy p { font-size: var(--text-md); line-height: 1.9; }
.story-visual { min-width: 0; }
.story-visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-md); }
.story-note { margin-block-start: var(--space-sm); padding: var(--space-md); border-inline-start: var(--rule-strong) solid var(--color-accent); color: var(--color-muted); }

.workflow { padding: 0; list-style: none; display: grid; }
.workflow-step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-xl); border-block-start: var(--rule-strong) solid var(--color-ink); }
.workflow-step:last-child { border-block-end: var(--rule-strong) solid var(--color-ink); }
.stage { color: var(--color-accent-strong); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; font-variant-numeric: tabular-nums; }
.workflow-step div { min-width: 0; display: grid; gap: var(--space-xs); }
.workflow-step p { color: var(--color-muted); }

.features-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.feature-card { min-width: 0; padding: var(--space-lg); background: var(--color-paper); border-block-start: var(--rule-hair) solid var(--color-gold-dark); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.feature-card b { display: block; margin-block-end: var(--space-xs); font-family: var(--font-display); font-size: var(--text-lg); }
.feature-card p { color: var(--color-muted); }
.feature-card--wide { background: var(--color-indigo); color: var(--color-night-ink); }
.feature-card--wide p { color: var(--color-night-ink); }

.character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.character-card { min-width: 0; overflow: clip; background: var(--color-paper-2); border-block-end: var(--rule-hair) solid var(--color-gold-dark); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.character-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.character-card div { padding: var(--space-sm); }
.character-card h3 { font-size: var(--text-md); }
.character-card p { color: var(--color-muted); font-size: var(--text-sm); }

.gallery-mosaic, .gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
.gallery-item { position: relative; min-width: 0; padding: 0; overflow: clip; border: 0; background: var(--color-charcoal); color: var(--color-night-ink); cursor: pointer; text-align: start; transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--dur-long) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.gallery-item span { position: absolute; inset: auto var(--space-sm) var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-overlay-strong); color: var(--color-night-ink); font-size: var(--text-sm); }
.gallery-more { margin-block-start: var(--space-lg); }
.filter-tabs { margin-block-end: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.filter-tab { min-height: 2.75rem; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); cursor: pointer; white-space: nowrap; }
.filter-tab[aria-pressed="true"] { background: var(--color-charcoal); color: var(--color-night-ink); border-color: var(--color-charcoal); }
.filter-status { min-height: 1.5em; margin-block-end: var(--space-md); color: var(--color-muted); }

.media-split { display: grid; gap: var(--space-xl); align-items: center; }
.trailer-card { position: relative; overflow: clip; background: var(--color-charcoal); }
.trailer-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.trailer-card figcaption { position: absolute; inset: auto var(--space-sm) var(--space-sm); padding: var(--space-sm); background: var(--color-overlay-strong); color: var(--color-night-ink); }
.media-copy { display: grid; gap: var(--space-md); }

.download-panel { background: var(--color-charcoal); color: var(--color-night-ink); border-block: var(--rule-hair) solid var(--color-gold-dark); }
.download-panel-inner { display: grid; gap: var(--space-xl); align-items: center; }
.download-copy { display: grid; gap: var(--space-sm); }
.download-copy p { color: var(--color-gold); }
.download-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.download-facts div { padding: var(--space-sm); border: var(--rule-hair) solid var(--color-charcoal-2); }
.download-facts dt { color: var(--color-gold); font-size: var(--text-sm); }
.download-facts dd { font-weight: 800; }
.download-action { display: grid; gap: var(--space-xs); }

.timeline { display: grid; gap: var(--space-sm); }
.timeline details { border-block-start: var(--rule-hair) solid var(--color-rule); }
.timeline summary { min-height: 4rem; display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); list-style: none; font-weight: 800; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: "+"; font-size: var(--text-xl); }
.timeline details[open] summary::after { content: "−"; }
.timeline time { color: var(--color-accent-strong); font-variant-numeric: tabular-nums; }
.timeline-body { padding: 0 0 var(--space-lg) 7rem; color: var(--color-muted); }

.rating-panel { display: grid; gap: var(--space-xl); padding-block: var(--space-xl); border-block: var(--rule-hair) solid var(--color-gold-dark); }
.rating-score strong { display: block; color: var(--color-gold); font-family: var(--font-display); font-size: var(--text-3xl); }
.rating-score small { color: var(--color-night-ink); }
.rating-panel > p { align-self: center; }
.review-grid { margin-block-start: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.review-card { min-width: 0; padding: var(--space-lg); background: var(--color-charcoal-2); border-block-start: var(--rule-hair) solid var(--color-gold-dark); transition: transform var(--dur-short) var(--ease-out); }
.review-card p { font-size: var(--text-md); }
.review-card footer { margin-block-start: var(--space-md); color: var(--color-gold); font-size: var(--text-sm); }

.faq-layout { display: grid; gap: var(--space-xl); }
.faq-list details { border-block-start: var(--rule-hair) solid var(--color-rule); }
.faq-list details:last-child { border-block-end: var(--rule-hair) solid var(--color-rule); }
.faq-list summary { position: relative; min-height: 4rem; display: flex; align-items: center; padding: var(--space-md) var(--space-xl) var(--space-md) 0; list-style: none; font-family: var(--font-display); font-size: var(--text-md); font-weight: 900; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; inset-inline-end: 0; font-family: var(--font-body); font-size: var(--text-xl); }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-long) var(--ease-in-out); }
.faq-list details[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding-block-end: var(--space-lg); color: var(--color-muted); }

.final-cta { position: relative; min-height: 36rem; display: grid; place-items: end start; overflow: clip; background: var(--color-charcoal); color: var(--color-night-ink); }
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.final-cta-inner { position: relative; z-index: var(--z-raised); width: min(100%, 54rem); display: grid; gap: var(--space-lg); }
.final-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.final-cta .fine-print { color: var(--color-night-ink); }

.subhero { min-height: 32rem; padding-block: calc(var(--nav-height) + var(--space-3xl)) var(--space-2xl); display: grid; align-items: end; background: var(--color-charcoal); color: var(--color-night-ink); }
.subhero-inner { display: grid; gap: var(--space-md); }
.subhero p { color: var(--color-gold); font-size: var(--text-md); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--text-sm); }
.breadcrumbs a { white-space: nowrap; }

.platform-grid, .requirements-grid, .guide-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.platform-card, .requirement-card, .guide-card { min-width: 0; padding: var(--space-lg); background: var(--color-paper-2); border-block-start: var(--rule-hair) solid var(--color-gold-dark); }
.platform-card { display: grid; gap: var(--space-lg); }
.platform-card ul, .guide-prose ul, .guide-prose ol, .article-prose ul, .article-prose ol { padding-inline-start: var(--space-lg); display: grid; gap: var(--space-xs); }
.recommend-tag { width: max-content; padding: var(--space-2xs) var(--space-sm); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 900; }
.install-steps { padding: 0; list-style: none; counter-reset: install; display: grid; gap: var(--space-sm); }
.install-step { counter-increment: install; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-lg); background: var(--color-paper); border-block-start: var(--rule-hair) solid var(--color-gold-dark); }
.install-step::before { content: "0" counter(install); color: var(--color-accent-strong); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; }
.requirement-card dl { margin-block-start: var(--space-md); }
.requirement-card dl div { padding-block: var(--space-sm); display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-sm); border-block-end: var(--rule-hair) solid var(--color-rule); }
.requirement-card dt { color: var(--color-muted); }
.requirement-card dd { font-weight: 800; overflow-wrap: anywhere; }
.notice { margin-block-start: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); border-inline-start: var(--rule-strong) solid var(--color-coral); }

.guide-layout { display: grid; gap: var(--space-2xl); }
.toc { align-self: start; display: grid; background: var(--color-charcoal); color: var(--color-night-ink); }
.toc h2 { padding: var(--space-lg); font-size: var(--text-md); }
.toc ol { padding: 0; list-style: none; }
.toc a { min-height: 2.75rem; display: flex; align-items: center; padding-inline: var(--space-lg); border-block-start: var(--rule-hair) solid var(--color-charcoal-2); white-space: nowrap; }
.guide-prose, .article-prose { min-width: 0; display: grid; gap: var(--space-3xl); }
.guide-prose section, .article-prose section { display: grid; gap: var(--space-lg); scroll-margin-top: calc(var(--nav-height) + var(--space-lg)); }
.guide-prose p, .guide-prose li, .article-prose p, .article-prose li { max-width: 72ch; font-size: 1.0625rem; line-height: 1.8; }
.guide-prose table, .article-prose table { width: 100%; border-collapse: collapse; }
.guide-prose th, .guide-prose td, .article-prose th, .article-prose td { padding: var(--space-sm); border: var(--rule-hair) solid var(--color-rule); text-align: start; }
.guide-card { display: grid; gap: var(--space-xs); }
.guide-card a { margin-block-start: var(--space-sm); font-weight: 900; }
.route-index { display: grid; gap: var(--space-sm); }
.route-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-block-start: var(--rule-hair) solid var(--color-rule); }
.article-hero { padding-block: calc(var(--nav-height) + var(--space-3xl)) var(--space-3xl); background: var(--color-charcoal); color: var(--color-night-ink); }
.article-hero-inner { display: grid; gap: var(--space-md); }
.article-hero p { color: var(--color-gold); }
.article-body { width: min(100%, 58rem); margin-inline: auto; padding: var(--space-3xl) var(--gutter); }

.site-footer { padding: var(--space-3xl) var(--gutter) calc(var(--space-4xl) + env(safe-area-inset-bottom)); background: var(--color-charcoal); color: var(--color-night-ink); }
.footer-letter { width: min(100%, var(--page)); margin-inline: auto; display: grid; gap: var(--space-2xl); }
.footer-signoff { max-width: 28ch; font-family: var(--font-display); font-size: clamp(var(--text-xl), 5vw, var(--text-3xl)); font-weight: 900; }
.footer-grid { display: grid; gap: var(--space-xl); padding-block: var(--space-xl); border-block: var(--rule-hair) solid var(--color-gold-dark); }
.footer-grid > div, .footer-grid nav { min-width: 0; display: grid; align-content: start; gap: var(--space-xs); }
.footer-grid h2 { color: var(--color-gold); font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.08em; }
.footer-grid a { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; width: max-content; max-width: 100%; font-size: var(--text-sm); white-space: nowrap; }
.footer-grid p, .footer-legal { color: color-mix(in oklch, var(--color-night-ink) 72%, transparent); font-size: var(--text-sm); }
.footer-legal { display: grid; gap: var(--space-2xs); }

.sticky-download { position: fixed; inset: auto 0 0; z-index: var(--z-sticky-nav); min-height: 4.75rem; padding: var(--space-xs) max(var(--space-md), env(safe-area-inset-right)) max(var(--space-xs), env(safe-area-inset-bottom)) max(var(--space-md), env(safe-area-inset-left)); display: flex; justify-content: flex-end; align-items: center; gap: var(--space-md); background: var(--color-charcoal); color: var(--color-night-ink); border-block-start: var(--rule-hair) solid var(--color-gold-dark); }
.sticky-download > span { display: none; }
.sticky-download .button { flex: 1; }
.back-top { position: fixed; inset: auto var(--space-md) 6rem auto; z-index: var(--z-sticky); min-width: 2.75rem; min-height: 2.75rem; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); opacity: 0; transform: translateY(var(--space-xs)); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.lightbox { position: fixed; inset: 0; width: min(96%, 82rem); height: fit-content; max-height: 92svh; margin: auto; padding: var(--space-2xl) var(--space-md) var(--space-md); overflow: auto; border: var(--rule-hair) solid var(--color-gold-dark); border-radius: var(--radius-md); background: var(--color-charcoal); color: var(--color-night-ink); }
.lightbox::backdrop { background: var(--color-overlay-strong); }
.lightbox[open] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "figure figure" "prev next"; gap: var(--space-xs); animation: modal-in var(--dur-long) var(--ease-out); }
.lightbox figure { grid-area: figure; min-width: 0; display: grid; gap: var(--space-xs); }
.lightbox figure img { width: 100%; max-height: 72svh; object-fit: contain; }
.lightbox figcaption { text-align: center; }
.lightbox-close { position: absolute; inset: var(--space-xs) var(--space-xs) auto auto; }
.lightbox-prev { grid-area: prev; }
.lightbox-next { grid-area: next; }
.lightbox-close, .lightbox-arrow { min-height: 2.75rem; border: var(--rule-hair) solid var(--color-gold-dark); border-radius: var(--radius-pill); background: var(--color-charcoal-2); color: var(--color-night-ink); cursor: pointer; white-space: nowrap; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.98); } }

.reveal { opacity: 0; transform: translateY(var(--space-xs)); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.is-error img { opacity: 0.28; }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { border-color: var(--color-blue); }
  .button:hover { transform: translateY(-1px); background: var(--color-orange); border-color: var(--color-orange); }
  .button--outline:hover { background: var(--color-charcoal); color: var(--color-night-ink); border-color: var(--color-charcoal); }
  .menu-button:hover, .filter-tab:hover { border-color: var(--color-ink); background: var(--color-paper-2); }
  .feature-card:hover, .character-card:hover, .review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
  .gallery-item:hover img { transform: scale(1.035); opacity: 0.86; }
  .footer-grid a:hover { color: var(--color-gold); }
}

@media (min-width: 40rem) {
  .nav-links { display: flex; }
  .menu-button, .menu-sheet { display: none; }
  .nav-issue { display: flex; }
  .nav-main { min-height: calc(var(--nav-height) - 1.75rem); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: ". brand actions" "links links links"; align-content: center; gap: 0 var(--space-md); }
  .brand { grid-area: brand; justify-self: center; }
  .nav-links { grid-area: links; justify-self: center; }
  .nav-actions { grid-area: actions; justify-self: end; }
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card--wide { grid-column: span 2; }
  .character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-grid, .requirements-grid, .guide-cards, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-download { inset-inline: auto var(--space-md); bottom: var(--space-md); min-width: 30rem; border: var(--rule-hair) solid var(--color-gold-dark); border-radius: var(--radius-pill); padding: var(--space-xs); justify-content: space-between; }
  .sticky-download > span { display: grid; padding-inline-start: var(--space-md); }
  .sticky-download .button { flex: none; }
  .lightbox[open] { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev figure next"; align-items: center; }
}

@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr); align-items: end; }
  .story-layout, .media-split, .download-panel-inner, .rating-panel, .faq-layout { grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr); }
  .workflow-step { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-xl); }
  .stage { font-size: var(--text-2xl); }
  .gallery-mosaic { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  .gallery-mosaic .gallery-item:first-child { grid-row: span 2; }
  .gallery-mosaic .gallery-item:first-child img { height: 100%; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .toc { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); z-index: var(--z-sticky); }
  .footer-grid { grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 90rem) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .hero-media img, .reveal { animation: none; transform: none; }
  .reveal { opacity: 1; }
}
