:root {
  color-scheme: light;
  --ink: #271e26;
  --muted: #5d515a;
  --paper: #faf5ec;
  --white: #fffdf8;
  --stroke: #d9cbbd;
  --plum: #321d36;
  --wine: #732e57;
  --gold: #eac89e;
  font: 16px/1.65 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--wine); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid #ac7536; outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0; max-width: 21ch; font-size: clamp(2.35rem, 7vw, 4.9rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.48rem, 4vw, 2rem); line-height: 1.15; }
h3 { margin: 1.45rem 0 .4rem; font-size: 1.28rem; line-height: 1.2; }
p, ul { margin: .5rem 0 1.15rem; }
p:last-child, ul:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; background: white; padding: .55rem .8rem; transform: translateY(-150%); }
.skip:focus { transform: none; }

.masthead { background: linear-gradient(130deg, #28182c, #4c2b42); color: #fff7ed; border-bottom: 1px solid #9f7769; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding-block: 1rem; border-bottom: 1px solid #ffffff26; }
.brand { color: var(--gold); font-size: 1.18rem; text-decoration: none; }
.topbar a:not(.brand) { color: #fff3e3; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; }
nav a { padding: .2rem 0; }
nav [aria-current="page"] { font-weight: 700; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 4vw, 3rem); padding-block: clamp(2.2rem, 8vw, 4.75rem); }
.hero p { color: #efdcd9; max-width: 48ch; margin: .9rem 0 0; }
.hero p a { color: var(--gold); }
.hero time { display: block; margin-top: .9rem; font-size: .875rem; color: var(--gold); }
.hero-icon { width: clamp(4.5rem, 20vw, 10rem); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 26%; border-radius: 18%; border: 1px solid #e5c29695; box-shadow: 0 12px 28px #1a0d20b5; }

.content { padding-block: clamp(2rem, 7vw, 4rem); }
.reading { width: min(100%, 48rem); }
.reading section + section { margin-top: 1.7rem; padding-top: 1.65rem; border-top: 1px solid var(--stroke); }
.reading a { overflow-wrap: anywhere; }
.reading li + li { margin-top: .4rem; }
.linked-pages { margin-top: 1.65rem; padding-top: 1.15rem; border-top: 1px solid var(--stroke); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.game-card { background: var(--white); border: 1px solid var(--stroke); border-radius: .85rem; padding: 1rem; display: grid; gap: .65rem; align-content: start; }
.game-card h2 { margin: 0; }
.game-card p { margin: 0; color: var(--muted); }
.game-card nav { font-size: .9rem; }
.game-icon { width: 5.25rem; height: 5.25rem; aspect-ratio: 1; border-radius: 17%; object-fit: cover; object-position: center 26%; }
.button { display: inline-block; min-height: 44px; padding: .55rem .85rem; background: var(--wine); border-radius: .45rem; color: white; font-weight: 650; }
.footer { border-top: 1px solid var(--stroke); color: var(--muted); padding-block: 1.2rem 2rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1rem; }

@media (max-width: 420px) {
  .hero { align-items: flex-start; }
  .hero-icon { width: 3.9rem; }
  .topbar { align-items: flex-start; }
}

@media print {
  .masthead { color: var(--ink); background: white; }
  .masthead p { color: var(--ink); }
  .topbar, .skip, .hero-icon, .linked-pages, .footer a { display: none; }
}
