/* Hallmark · shape: Feature Stack · genre: atmospheric · theme: Spore (deal 2/3) · job: try · draw: 1fd4f2
 * hero: Corridor · nav: wordmark and destinations (search swapped: no searchable catalogue) · footer: statement · imagery: existing companion atlases and game art · signature: the Mont atlas at landscape scale · spore: head-torch
 * axes: dark/roman-serif/warm · posture: committed · contrast: checked · fold: checked · hero-review: in-thread, ship · finish-review: in-thread, fix, caption semantics resolved · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: specificity, preserved real atlas labels and separated concept art from gameplay. */
/* Hallmark · waive 83 · existing map and concept art explicitly requested · Hearthbound visitors should see the actual worlds and the game art at full size. */
/* Hallmark · waive 79 · the real Mont atlas fills the lower first screen · The Hearthbound map remains the hero visual below the primary action. */
/* Hallmark · waive 44c · the full-height hero contains an absolutely positioned atlas · The Mont map fills the first screen beyond the text content measured by the checker. */
@import url('./tokens.css');
@import url('./base.css');
:root {
  --color-paper: #191814;
  --color-paper-2: #22211c;
  --color-paper-3: #2c2a22;
  --color-ink: #f2ecda;
  --color-ink-2: #d3ccba;
  --color-muted: #aaa591;
  --color-rule: #464438;
  --color-accent: #d8b573;
  --color-accent-2: #eed09c;
  --color-accent-ink: #211d15;
  --color-focus: #f3d8a7;
  --color-clear: transparent;
  --color-scrim: #191814df;
  --color-blackout: #11100ff2;
  --color-map-ink: #30382b;
  --container: 1568px;
  --gutter: clamp(22px, 4.5vw, 72px);
  --radius-card: 3px;
  --radius-pill: 3px;
  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--color-paper); }
button, a { -webkit-tap-highlight-color: var(--color-clear); }
a { text-decoration: none; }
a:hover { color: var(--color-accent-2); }
:is(a, button, summary, input):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
a:active, button:active { opacity: .8; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; background: var(--color-ink); color: var(--color-paper); padding: var(--space-sm) 20px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 2; }
.wordmark { font-family: var(--font-display); font-size: 29px; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-sm); }
.wordmark-spark { color: var(--color-accent); font-size: 32px; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.site-header nav a { font-size: 14px; color: var(--color-ink-2); white-space: nowrap; }
.site-header nav a:hover { color: var(--color-accent-2); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: var(--space-sm) var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid var(--color-clear); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; cursor: pointer; }
.button:hover { background: var(--color-accent-2); color: var(--color-accent-ink); }
.button-quiet { background: var(--color-clear); border-color: var(--color-rule); color: var(--color-ink); }
.button-quiet:hover { background: var(--color-paper-3); color: var(--color-ink); }
button:disabled { cursor: not-allowed; opacity: .45; }
.text-link { font-size: 14px; text-decoration: underline; text-underline-offset: 6px; white-space: nowrap; }
.hero { position: relative; min-height: calc(100svh - 104px); max-width: 1920px; margin-inline: auto; isolation: isolate; }
.hero-map { position: absolute; inset: 0 0 0 25%; z-index: -1; overflow: clip; }
.hero-map img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-map::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-paper) 0%, var(--color-scrim) 12%, var(--color-clear) 48%), linear-gradient(0deg, var(--color-paper) 0%, var(--color-clear) 24%, var(--color-clear) 80%, var(--color-paper) 100%); }
.hero-content { min-height: calc(100svh - 104px); display: flex; align-items: center; position: relative; padding-block: 80px 152px; }
.hero-copy { width: 64%; }
h1 { font-size: clamp(58px, 6.8vw, 104px); max-width: 13ch; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy > p { margin-top: 32px; max-width: 30ch; color: var(--color-ink-2); font-size: 19px; line-height: 1.6; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.map-caption { position: absolute; right: var(--gutter); bottom: 60px; text-align: right; }
.map-caption span { font-family: var(--font-display); font-size: 36px; }
.map-caption p { font-size: 14px; color: var(--color-ink-2); margin-top: var(--space-2xs); }
.introduction { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap-columns); padding-block: 140px; align-items: start; }
h2 { font-size: clamp(34px, 3.8vw, 56px); letter-spacing: -.035em; line-height: 1.13; }
.intro-copy { max-width: 45ch; padding-top: var(--space-xs); }
.intro-copy .lead { color: var(--color-ink); }
.intro-copy > p + p { margin-top: var(--space-lg); color: var(--color-muted); }
.intro-copy > a { display: inline-block; margin-top: 32px; }
.adventure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--gap-columns); align-items: start; padding-bottom: 140px; }
.adventure-heading { position: sticky; top: 80px; padding-top: 36px; padding-right: 28px; }
.adventure-heading p { max-width: 31ch; color: var(--color-ink-2); margin-top: 28px; }
.adventure-heading .text-link { display: inline-block; margin-top: 32px; }
figure { margin: 0; min-width: 0; }
.adventure-scenes { display: flex; flex-direction: column; gap: 56px; }
.adventure-scenes img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }
.adventure-scenes figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 20px; }
.adventure-scenes .scene-title { font-family: var(--font-display); font-size: 24px; color: var(--color-ink); }
figcaption, .development-note { font-size: 14px; color: var(--color-muted); }
figcaption h3 { color: var(--color-ink); }
[data-lightbox] { display: block; cursor: zoom-in; }
[data-lightbox].text-link { display: inline-block; }
.atlas-section { background: var(--color-paper-2); color: var(--color-ink); padding-block: 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--gap-columns); margin-bottom: var(--space-xl); }
.section-heading p { margin-top: 20px; color: var(--color-ink-2); }
.section-heading > .text-link { margin-bottom: var(--space-2xs); }
.map-controls { display: flex; align-items: center; gap: var(--space-xs); border: 0; margin: 0 0 28px; padding: 0; }
.map-controls input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.map-controls label { cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) 20px; font-size: 14px; color: var(--color-ink-2); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); }
.map-controls label:hover { background: var(--color-paper-3); }
.map-controls input:checked + label { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.map-controls input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.atlas-maps { display: flex; flex-direction: column; gap: var(--space-xl); }
.atlas-maps img { width: 100%; max-height: 680px; aspect-ratio: 7 / 5; object-fit: contain; background: var(--color-paper-3); border-radius: var(--radius-card); }
.atlas-maps figcaption { display: flex; align-items: center; gap: var(--gap-columns); padding-top: var(--space-lg); }
.atlas-maps figcaption span { font-family: var(--font-display); font-size: 28px; color: var(--color-ink); }
.atlas-maps figcaption p { flex: 1; }
.atlas-maps figcaption a { color: var(--color-ink); }
.gameplay { padding-block: 128px; }
.gameplay-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.gameplay-images img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-card); }
.gameplay-images figcaption { margin-top: var(--space-md); }
.journey-section { border-top: 1px solid var(--color-rule); padding-block: 100px; }
.journey-content { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-columns); }
.journey-content h2 { font-size: clamp(40px, 5.7vw, 82px); }
.journey-content p { margin-top: var(--space-lg); color: var(--color-ink-2); }
.journey-action { max-width: 26ch; }
.journey-action .button { min-width: 220px; }
.journey-action p { font-size: 14px; color: var(--color-muted); margin-top: var(--space-md); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); }
.site-footer .wordmark { font-size: 22px; }
.site-footer p, .site-footer a:not(.wordmark) { font-size: 14px; }
.site-footer p { color: var(--color-muted); }
.site-footer > div { display: flex; align-items: center; gap: 28px; }
.image-viewer { width: calc(100% - 48px); max-width: 1680px; max-height: calc(100svh - 48px); padding: var(--space-lg); border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); }
.image-viewer::backdrop { background: var(--color-blackout); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: var(--space-lg); }
.viewer-toolbar p { color: var(--color-ink-2); font-size: 14px; }
.viewer-image { width: 100%; max-height: calc(100svh - 220px); object-fit: contain; }
.viewer-help { font-size: 14px; color: var(--color-muted); margin-top: var(--space-md); }
@media (min-width: 1921px) { .hero-map { inset-inline-end: max(0px, calc((100% - 1568px) / 2)); } }
@media (max-width: 900px) {
  .site-header { height: 90px; gap: 20px; }
  .wordmark { font-size: 24px; }
  .site-header nav { gap: 20px; }
  .header-play { display: none; }
  .hero, .hero-content { min-height: calc(100svh - 90px); }
  .hero-copy { width: 82%; }
  .hero-map { inset-inline-start: 12%; }
  .introduction { gap: 48px; padding-block: var(--space-3xl); }
  .adventure { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-3xl); }
  .adventure-heading { position: static; padding: 0; margin-bottom: var(--space-lg); }
  .adventure-heading p { max-width: 48ch; }
  .adventure-scenes figcaption { flex-wrap: wrap; gap: var(--space-xs); }
  .journey-content { align-items: start; }
}
@media (max-width: 600px) {
  .site-header { height: 82px; flex-wrap: wrap; align-content: center; gap: var(--space-xs); }
  .wordmark { font-size: 22px; }
  .wordmark-spark { font-size: 26px; }
  .site-header nav { margin-left: auto; gap: var(--space-md); }
  .site-header nav a { font-size: 13px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero, .hero-content { min-height: calc(100svh - 82px); }
  .hero-content { padding-block: 92px 200px; align-items: flex-start; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(44px, 11.5vw, 65px); }
  .hero-copy > p { font-size: 17px; max-width: 28ch; margin-top: var(--space-lg); }
  .hero-map { inset: 15% 0 0; }
  .hero-map::after { background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-scrim) 28%, var(--color-clear) 68%, var(--color-paper) 100%); }
  .actions { gap: 20px; }
  .map-caption { bottom: 35px; }
  .map-caption span { font-size: 28px; }
  .introduction { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 72px; }
  h2 { font-size: 34px; }
  .adventure-heading { padding: 0; }
  .adventure-scenes { gap: var(--space-xl); }
  .adventure-scenes img { aspect-ratio: 4 / 3; }
  .adventure-scenes figcaption { align-items: start; flex-direction: column; padding-top: var(--space-md); }
  .adventure-scenes .scene-title { font-size: 23px; }
  .atlas-section { padding-block: 72px; }
  .section-heading { flex-direction: column; align-items: start; gap: var(--space-lg); margin-bottom: 32px; }
  .map-controls { gap: var(--space-xs); }
  .map-controls label { padding: var(--space-sm); }
  .atlas-maps img { aspect-ratio: 7 / 6; object-fit: cover; }
  .atlas-maps figcaption { flex-wrap: wrap; gap: var(--space-md); }
  .atlas-maps figcaption p { flex-basis: 100%; order: 3; }
  .atlas-maps figcaption a { margin-left: auto; }
  .gameplay { padding-block: 72px; }
  .gameplay-images { grid-template-columns: minmax(0, 1fr); }
  .journey-section { padding-block: 72px; }
  .journey-content { flex-direction: column; gap: var(--space-xl); }
  .journey-content h2 { font-size: 40px; }
  .site-footer { flex-direction: column; align-items: start; gap: var(--space-lg); padding-block: 36px; }
  .site-footer > div { gap: var(--space-lg); }
  .image-viewer { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: var(--space-md); }
  .viewer-toolbar { align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
