:root {
  color-scheme: light;
  --forest: #263b37;
  --forest-deep: #192d29;
  --paper: #f6f0e2;
  --ink: #302c26;
  --muted: #665f50;
  --rule: #cbbf9f;
  --gold: #f4ce87;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.75 var(--sans);
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: .26em; }
a:focus-visible { outline: 3px solid #a04717; outline-offset: 4px; }
.masthead a:focus-visible, .hero a:focus-visible, .footer a:focus-visible { outline-color: #fff0be; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand, .footer strong { font-family: var(--serif); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.4; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.masthead, .footer { background: var(--forest-deep); color: #f8e8bf; }
.masthead { border-bottom: 1px solid #6c7059; }
.masthead-inner, .foot-inner, .masthead nav, .foot-links, .actions, .eyebrow {
  display: flex;
  align-items: center;
}
.masthead-inner { min-height: 66px; justify-content: space-between; gap: 20px; }
.masthead nav, .foot-links { flex-wrap: wrap; gap: clamp(14px, 3vw, 36px); }
.masthead a, .foot-links a, .contents a { display: inline-flex; align-items: center; min-height: 44px; }
.masthead a, .foot-links a { font-size: .91rem; text-decoration: none; }
.masthead a:hover, .foot-links a:hover, .contents a:hover { text-decoration: underline; }
.masthead .brand { gap: 14px; font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; }
.lamp { position: relative; display: inline-block; width: 22px; height: 23px; color: var(--gold); }
.lamp::before, .lamp::after { content: ""; position: absolute; background: currentColor; }
.lamp::before { top: 1px; left: 4px; width: 14px; height: 5px; box-shadow: -2px 4px, 2px 4px, -4px 8px, 4px 8px; }
.lamp::after { top: 15px; left: 10px; width: 2px; height: 5px; border-bottom: 2px solid; box-shadow: -3px 4px 0 -1px, 3px 4px 0 -1px; }
.hero {
  color: #fff1ce;
  background-color: var(--forest);
  background-image: repeating-linear-gradient(90deg, transparent 0 47px, rgb(244 206 135 / 3%) 47px 48px);
  border-bottom: 5px solid #b79a60;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(36px, 8vw, 100px); padding-block: clamp(46px, 6vw, 82px); }
.hero-copy { min-width: 0; }
.eyebrow { gap: 13px; color: var(--gold); font-size: .83rem; letter-spacing: .13em; font-weight: 600; }
.stitch { width: 27px; height: 2px; background: currentColor; position: relative; flex: none; }
.stitch::before { content: ""; position: absolute; width: 6px; height: 6px; right: 0; top: -2px; background: currentColor; }
.hero h1 {
  margin-block: .22em .3em;
  color: #ffedc7;
  font-size: clamp(3.2rem, 6.2vw, 5.25rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: .055em;
}
.subtitle { display: block; margin: .4em 0 .8em .12em; color: var(--gold); font-size: .38em; letter-spacing: .47em; font-weight: 500; }
.intro { max-width: 31em; color: #e5e2cd; line-height: 1.95; }
.actions { flex-wrap: wrap; gap: 20px; margin: 25px 0 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 8px 27px;
  color: #34290f;
  background: var(--gold);
  border: 2px solid #2a291e;
  box-shadow: inset 0 0 0 2px #ffe4a5, 3px 3px #101f1d;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #ffdfa1; }
.button:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 2px #ffe4a5, 1px 1px #101f1d; }
.play-icon { width: 12px; height: 14px; background: currentColor; clip-path: polygon(0 0, 35% 0, 35% 17%, 64% 17%, 64% 33%, 100% 33%, 100% 67%, 64% 67%, 64% 83%, 35% 83%, 35% 100%, 0 100%); }
.light-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; font-size: .96rem; }
.game-facts { font-size: .85rem; color: #cfceba; }
.game-facts span { padding: 0 .35em; }
.cover { padding: 5px; border: 1px solid #8f8a63; background: #26352c; box-shadow: 7px 7px 0 #192d29; }
.cover img { width: 100%; }
.scenes { padding-block: clamp(40px, 5vw, 66px) clamp(48px, 6vw, 78px); }
.section-lead { margin-bottom: 25px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 26px; }
.section-lead p, .scene figcaption p { color: var(--muted); }
.scene-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: start; gap: clamp(22px, 4vw, 44px); }
.shot { display: flex; align-items: center; justify-content: center; background: #30413b; border: 3px solid #443e31; }
.dining-shot { aspect-ratio: 2.25; }
.elder-shot { aspect-ratio: 1.67; }
.shot img { width: 100%; max-height: 100%; object-fit: contain; }
.scene figcaption { padding: 15px 0 0; }
.location { display: block; color: #6e532c; font-size: .83rem; font-weight: 700; letter-spacing: .12em; }
.scene h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.5; margin: 2px 0 7px; }
.scene figcaption a, .text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: #344f40; font-weight: 650; }
.footer { border-top: 3px solid #aa9265; }
.foot-inner { flex-wrap: wrap; justify-content: space-between; gap: 12px 34px; padding-block: 25px max(25px, env(safe-area-inset-bottom)); }
.footer strong { font-size: 1.1rem; letter-spacing: .04em; }
.footer p { color: #d1d2bd; font-size: .85rem; }
.handbook { max-width: 900px; padding-block: 40px 65px; }
.book-title { max-width: 43em; }
.book-title .eyebrow { color: #79612e; }
.book-title h1 { margin: 6px 0 10px; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.3; }
.contents { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: 23px 3px; border-block: 1px solid var(--rule); }
.contents a { color: #3c5547; font-size: .95rem; font-weight: 650; }
.chapter { padding-block: 24px; border-bottom: 1px solid var(--rule); }
.chapter h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
.chapter p + p { margin-top: 8px; }
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.controls-grid h3 { color: #695027; font-size: 1.15rem; }
.controls-grid ul, .steps { padding-left: 1.35em; margin: 6px 0 0; }
.controls-grid li, .steps li { margin: 5px 0; padding-left: .18em; }
.steps li { margin-block: 12px; }
kbd { display: inline-block; padding: 0 .3em; border: 1px solid #b9ab8e; border-bottom-width: 2px; background: #fffcf5; font-size: .86em; font-family: ui-monospace, monospace; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 33px 0 40px; }
  .hero-copy, .cover { width: 100%; max-width: 540px; margin-inline: auto; }
  .intro { max-width: 100%; }
  .scene-grid { grid-template-columns: 1fr; gap: 28px; }
  .dining-shot, .elder-shot { aspect-ratio: auto; }
  .section-lead { display: block; }
  .section-lead p { margin-top: 4px; }
  .controls-grid { grid-template-columns: 1fr; }
  .handbook { padding-block: 31px 38px; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 30px); }
  .masthead-inner { gap: 10px; }
  .masthead nav { gap: 12px; }
  .masthead .brand { gap: 7px; font-size: 1.05rem; }
  .masthead a { font-size: .84rem; }
  .contents { gap: 0 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
