:root {
  --paper: #fcfbf8;
  --ink: #342a46;
  --muted: #68656d;
  --line: #ddd9d0;
  --accent: #bd5236;
  --yellow: #f2ca69;
  --home: #edf3f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 'Segoe UI', Arial, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { font-family: 'Trebuchet MS', Arial, sans-serif; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.25rem; line-height: 1.35; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 105px; border-bottom: 1px solid var(--ink); }
.wordmark { font-family: 'Trebuchet MS', Arial, sans-serif; text-decoration: none; font-size: 1.7rem; letter-spacing: -.07em; line-height: .95; font-weight: 700; }
.wordmark span { display: block; font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 1rem; letter-spacing: -.03em; margin-top: 4px; }
.masthead nav { display: flex; gap: 32px; margin-left: auto; font-size: .9rem; }
.masthead nav a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.masthead nav a:hover { text-decoration: underline; }
.language-switch { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.language-switch button { border: 0; background: none; padding: 8px 3px; min-height: 44px; font-size: .8rem; cursor: pointer; }
.language-switch button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; font-weight: 700; text-underline-offset: 5px; }
.language-switch span { color: #aaa49b; font-size: .8rem; }
.intro { padding-block: 52px 64px; }
.intro-heading { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 62px; padding-bottom: 38px; }
.byline { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
h1 { font-family: 'Trebuchet MS', Arial, sans-serif; font-size: clamp(3.9rem, 7.6vw, 6.5rem); line-height: .98; letter-spacing: -.075em; font-weight: 700; }
h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; }
.title-stop { color: var(--accent); }
.subtitle { font-size: 1.1rem; margin-top: 24px; }
.intro-note { max-width: 390px; font-size: 1rem; padding-bottom: 2px; }
.intro-note p { color: var(--muted); }
.inline-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 44px; font-size: .9rem; font-weight: 600; }
.tiny-play { font-size: .65rem; color: var(--accent); }
.opening-frame { border-top: 6px solid var(--yellow); }
.image-button { width: 100%; display: block; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.image-button img { width: 100%; height: auto; }
figcaption { font-size: .875rem; line-height: 1.5; }
.opening-frame figcaption { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.opening-frame figcaption span:first-child { color: var(--ink); }
.game-summary { font-size: 1.05rem; max-width: 850px; margin-top: 25px; color: var(--muted); }
.film-section { background: var(--ink); color: var(--paper); padding-block: 58px; }
.film-layout { display: grid; grid-template-columns: .65fr 1.6fr; gap: 64px; align-items: center; }
.section-number { font-family: Consolas, monospace; font-size: .8rem; color: var(--accent); letter-spacing: -.04em; flex-shrink: 0; }
.film-copy .section-number { color: var(--yellow); display: block; margin-bottom: 20px; }
.film-copy h2 { margin-bottom: 20px; }
.film-copy p { color: #d6d0df; font-size: .95rem; }
.film-copy .inline-link { color: var(--yellow); }
.video-frame { aspect-ratio: 16/9; width: 100%; background: #211b2c; overflow: hidden; }
.video-poster { width: 100%; height: 100%; display: block; padding: 0; border: 0; background: #211b2c; cursor: pointer; position: relative; color: white; }
.video-poster img { width: 100%; height: 100%; object-fit: contain; }
.video-shade { position: absolute; inset: 0; background: #20182790; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; padding: 16px; font-size: .95rem; }
.play-circle { width: 66px; height: 66px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; padding-left: 4px; font-size: 1.4rem; }
.video-poster:hover .play-circle { background: #ffe3a1; }
.video-poster:focus-visible { outline-offset: -5px; outline-color: var(--yellow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.chapter { padding-block: 66px; }
.section-heading { display: flex; align-items: baseline; gap: 22px; margin-bottom: 30px; }
.places-layout { display: grid; grid-template-columns: .6fr 1.7fr; gap: 50px; align-items: start; }
.places-sidebar > p { font-size: .95rem; color: var(--muted); margin-bottom: 25px; }
.location-picker { display: flex; flex-direction: column; align-items: stretch; }
.location-choice { text-align: left; padding: 11px 16px; border: 0; border-left: 2px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: .9rem; line-height: 1.5; min-height: 44px; }
.location-choice:hover { color: var(--ink); background: #f4f0e9; }
.location-choice[aria-pressed=true] { color: var(--ink); border-left-color: var(--accent); background: #f1e9df; font-weight: 600; }
.location-frame figcaption { padding-top: 13px; }
.games-section { border-top: 1px solid var(--line); }
.games-overview { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 42px; }
.games-copy > p { color: var(--muted); font-size: .95rem; }
.games-copy ol { margin: 20px 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 15px; counter-reset: games; }
.games-copy li { counter-increment: games; font-size: .875rem; display: flex; gap: 10px; align-items: baseline; line-height: 1.5; }
.games-copy li:before { content: counter(games, decimal-leading-zero); color: var(--accent); font-family: Consolas, monospace; font-size: .75rem; }
.games-copy .math-note { padding-top: 15px; border-top: 1px solid var(--line); font-size: .875rem; }
.gallery { display: grid; gap: 30px; margin-top: 34px; }
.three-up { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery figure { min-width: 0; }
.gallery figcaption { padding-top: 12px; font-weight: 600; }
.gallery figcaption p { font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: 4px; }
.extra-photos { margin-top: 28px; }
.extra-photos > summary { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; list-style: none; }
.extra-photos > summary::-webkit-details-marker { display: none; }
.extra-photos > summary:before { content: '+'; text-decoration: none; font-size: 1.2rem; color: var(--accent); }
.extra-photos[open] > summary:before { content: '−'; }
.home-section { background: var(--home); }
.section-intro { max-width: 800px; color: var(--muted); font-size: 1rem; }
.personal-gallery { grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: end; }
.capture-note { max-width: 940px; color: var(--muted); font-size: .8rem; margin-top: 26px; }
.handover-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; margin-top: 38px; }
.package ul { padding-left: 20px; margin: 20px 0; }
.package li { padding-left: 4px; margin-block: 9px; font-size: .95rem; }
.package li::marker { color: var(--accent); }
.key-note { padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.technical dl { margin: 17px 0 0; }
.technical dl > div { display: grid; grid-template-columns: .65fr 1fr; gap: 14px; font-size: .875rem; padding-block: 11px; border-bottom: 1px solid var(--line); }
.technical dt { color: var(--muted); }
.technical dd { margin: 0; overflow-wrap: anywhere; }
.project-notes { margin-top: 42px; border-top: 1px solid var(--ink); }
.project-notes details { border-bottom: 1px solid var(--line); }
.project-notes summary { position: relative; padding: 20px 35px 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1rem; }
.project-notes summary::-webkit-details-marker { display: none; }
.project-notes summary:after { content: '+'; position: absolute; right: 5px; font-size: 1.2rem; color: var(--accent); top: 18px; }
.project-notes details[open] summary:after { content: '−'; }
.detail-body { padding-bottom: 24px; max-width: 940px; color: var(--muted); font-size: .9rem; }
.detail-body p + p { margin-top: 15px; }
.detail-body ul { padding-left: 20px; margin-top: 15px; }
.detail-body li + li { margin-top: 8px; }
.installation-note { border-left: 2px solid var(--accent); padding-left: 18px; }
.footer { border-top: 1px solid var(--ink); padding-block: 27px; color: var(--muted); display: flex; justify-content: space-between; gap: 25px; font-size: .8rem; }
.lightbox { width: min(1440px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 16px; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: #18131de8; }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-top { padding-bottom: 12px; }
.lightbox h2 { font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
.lightbox button { border: 0; min-width: 44px; min-height: 44px; font-size: 1.3rem; background: #ebe7df; cursor: pointer; }
.lightbox img { width: 100%; max-height: calc(94dvh - 145px); object-fit: contain; }
.lightbox-bottom { padding-top: 12px; font-size: .875rem; }
body.modal-open { overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 10px; background: var(--ink); color: white; z-index: 5; }
.skip-link:focus { top: 12px; }
@media(max-width:1000px) {
  .intro-heading { grid-template-columns: 1.3fr 1fr; gap: 35px; }
  h1 { font-size: 5rem; }
  h1 em { display: block; }
  .title-stop { display: none; }
  .film-layout { gap: 36px; }
  .places-layout { gap: 30px; }
  .games-overview { grid-template-columns: 1fr; gap: 25px; }
  .games-copy ol { grid-template-columns: repeat(3,1fr); }
  .handover-layout { gap: 42px; }
}
@media(max-width:720px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 90px; flex-wrap: wrap; gap: 15px; padding-block: 20px; }
  .masthead nav { order: 3; width: 100%; margin: 0; gap: 26px; font-size: .875rem; }
  .language-switch { margin-left: auto; }
  .intro { padding-block: 36px 40px; }
  .intro-heading { grid-template-columns: 1fr; gap: 23px; padding-bottom: 28px; }
  h1 { font-size: clamp(3.5rem,12vw,5rem); }
  h1 em { display: inline; }
  .title-stop { display: inline; }
  .byline { margin-bottom: 16px; }
  .subtitle { margin-top: 20px; }
  .intro-note { max-width: 560px; }
  .opening-frame figcaption { flex-direction: column; gap: 5px; font-size: .8rem; }
  .game-summary { font-size: 1rem; margin-top: 18px; }
  .film-section { padding-block: 38px; }
  .film-layout { grid-template-columns: 1fr; gap: 25px; }
  .film-copy .section-number { display: inline-block; margin-right: 16px; }
  .film-copy h2 { display: inline; }
  .film-copy p { margin-top: 16px; max-width: 550px; }
  .film-copy .inline-link { margin-top: 7px; }
  .chapter { padding-block: 42px; }
  .section-heading { margin-bottom: 22px; gap: 16px; }
  .places-layout { grid-template-columns: 1fr; gap: 20px; }
  .places-sidebar > p { max-width: 560px; margin-bottom: 16px; }
  .location-picker { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; }
  .location-choice { border-left: 0; border-bottom: 2px solid var(--line); padding: 8px 9px; font-size: .875rem; }
  .location-choice[aria-pressed=true] { border-bottom-color: var(--accent); }
  .three-up { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .personal-gallery { gap: 25px; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .gallery { gap: 25px 18px; margin-top: 26px; }
  .handover-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .footer { flex-direction: column; gap: 5px; }
}
@media(max-width:460px) {
  .wrap { width: calc(100% - 32px); }
  .masthead nav { gap: 22px; }
  h1 em { display: block; }
  .title-stop { display: none; }
  .three-up, .personal-gallery { grid-template-columns: 1fr; }
  .games-copy ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .byline { font-size: .8rem; }
  .play-circle { width: 56px; height: 56px; }
  .video-shade { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
