:root {
  color-scheme: light;
  --pine: #103e3b;
  --ink: #172f2d;
  --forest: #082f2d;
  --mint: #95d4bd;
  --gold: #ffce48;
  --canvas: #fafaf4;
  --line: #c9d4c8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: #115f52; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid #d9810a; outline-offset: 4px; border-radius: .15rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--gold); color: var(--ink); }
.skip:focus { top: .5rem; }
.site-head, .hero { background: var(--forest); color: #f6f9e9; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.08rem; border-bottom: 1px solid #45716a; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -.035em; text-decoration: none; color: #fbf9e9; }
.brand img { display: block; width: 2.2rem; height: 2.2rem; }
.site-head nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
.site-head nav a { color: #dbeade; font-size: .9375rem; font-weight: 650; text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }
.hero { border-bottom: .28rem solid var(--gold); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero-copy { min-width: 0; }
.category { display: inline-block; margin: 0 0 .85rem; padding-top: .65rem; border-top: .25rem solid var(--mint); color: #ace5c9; font-size: .87rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
h1, h2, h3 { text-wrap: balance; }
h1 { max-width: 17ch; margin: 0; color: #fff9e5; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(2.5rem, 4.7vw, 4.6rem); line-height: .99; letter-spacing: -.055em; font-weight: 800; }
.intro { margin: 1.18rem 0 1.6rem; max-width: 54ch; color: #d6e6dd; font-size: clamp(1.06rem, 1.55vw, 1.22rem); line-height: 1.56; }
.play { display: inline-flex; align-items: center; justify-content: center; color: #162e27; background: var(--gold); padding: .84rem 1.3rem; border-radius: .4rem; font-weight: 800; font-size: 1.02rem; text-decoration: none; box-shadow: 0 .16rem 0 #ad8c25; }
.play:hover { color: #142a22; background: #ffdf71; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; border-radius: .4rem; }
figcaption { padding-top: .67rem; color: #bad1c7; font-size: .875rem; line-height: 1.45; }
.content { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 41rem); gap: clamp(2rem, 8vw, 7rem); padding-block: clamp(2.2rem, 5vw, 4.6rem); }
.contents { align-self: start; position: sticky; top: 2rem; }
.contents h2 { margin: 0 0 .8rem; color: var(--pine); font-size: .92rem; text-transform: uppercase; letter-spacing: .075em; }
.contents ul { list-style: none; margin: 0; padding: .05rem 0 .05rem 1rem; border-left: .18rem solid #a9c9b9; }
.contents li + li { margin-top: .75rem; }
.contents a { font-size: 1rem; line-height: 1.4; display: inline-block; }
.story { font-size: 1.09rem; line-height: 1.65; min-width: 0; }
.story section { scroll-margin-top: 1.25rem; }
.story section + section { border-top: 1px solid var(--line); margin-top: 2.1rem; padding-top: 2rem; }
.story h2, .related h2 { font-size: clamp(1.55rem, 2.5vw, 2.03rem); letter-spacing: -.04em; line-height: 1.15; color: var(--pine); margin: 0 0 .8rem; }
.story p { margin: .7rem 0 0; }
.story ol { padding-left: 1.5rem; margin: .8rem 0; }
.story li { padding-left: .2rem; margin: .45rem 0; }
.story li::marker { color: #286757; font-weight: 750; }
kbd { border: 1px solid #a5b8a9; border-bottom-width: 2px; background: #f1f4eb; border-radius: .25em; padding: .04em .31em; font: 650 .85em/1.35 Consolas, monospace; white-space: nowrap; }
.keys { margin: 0; }
.keys div { display: grid; grid-template-columns: minmax(8rem, 34%) 1fr; gap: 1rem; align-items: baseline; padding: .72rem 0; border-bottom: 1px dotted var(--line); }
.keys dt { font-weight: 700; color: var(--pine); }
.keys dd { margin: 0; }
.related { background: #e7eee4; border-top: 1px solid #c5d5c4; padding-block: 2.2rem 2.7rem; }
.related ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.related li { border-top: 1px solid #b5c9b9; }
.related li a { display: block; padding: .75rem 0; color: var(--pine); font-weight: 650; }
footer { background: #0b3431; color: #d7e5db; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
footer p { font-size: .94rem; line-height: 1.45; margin: 0; max-width: 54ch; }
footer a { color: #ffdf7c; font-weight: 700; min-height: 2.75rem; display: inline-flex; align-items: center; }
@media(max-width: 800px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  h1 { max-width: 22ch; }
  .hero figure { max-width: 34rem; }
  .content { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .contents { position: static; }
  .story { max-width: 42rem; }
}
@media(max-width: 520px) {
  .wrap { width: min(100% - 2.1rem,72rem); }
  .site-head .wrap { gap: .5rem; }
  .site-head nav { gap: .75rem; }
  .site-head nav a { font-size: .875rem; }
  .site-head nav .game-home { display: none; }
  .hero-inner { padding-block: 2rem; }
  .hero-copy h1 { font-size: clamp(2.25rem, 12vw, 3rem); }
  .keys div { grid-template-columns: minmax(0,1fr); gap: .21rem; }
  .related ul { grid-template-columns: minmax(0,1fr); }
  footer .wrap { align-items: start; flex-direction: column; gap: .2rem; }
}
@media print {
  .site-head, .contents, .related, footer, .play, .skip, .hero figure { display: none; }
  .hero { background: white; border: 0; }
  .hero-inner, .content { display: block; padding-block: .5rem; }
  h1, .intro, .category { color: #172f2d; }
  h2, dt { break-after: avoid; }
}
