:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #222421;
  background: #f8f6f0;
  --paper: #f8f6f0;
  --ink: #222421;
  --purple: #e7d6fb;
  --green: #dceba8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #63408f; outline-offset: 5px; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 1; padding: .7rem; background: white; }
.skip-link:focus { transform: none; }

.site-bar, .shell { width: min(68rem, calc(100% - 3.5rem)); margin-inline: auto; }
.site-bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid #d8d3c9; }
.site-bar nav a { font-weight: 650; padding-block: .65rem; }
.wordmark { font-size: 2rem; font-weight: 900; letter-spacing: -.085em; text-decoration: none; }
.wordmark span { color: #6c428e; margin-left: .18em; font-size: .66em; }
.shell { padding-bottom: 3rem; }
.welcome { display: grid; gap: .9rem; margin-block: clamp(2rem, 5vw, 4.25rem) clamp(1.8rem, 4vw, 3rem); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.85rem); line-height: .98; letter-spacing: -.052em; font-weight: 850; }
.welcome p { max-width: 39rem; line-height: 1.55; font-size: clamp(1.02rem, 2.2vw, 1.26rem); color: #4d514a; }

.game-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.game-card { border: 1px solid var(--ink); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.game-art { min-height: 9rem; display: grid; place-content: center; border-bottom: 1px solid var(--ink); }
.ladder-art { background: var(--purple); }
.ladder-art div { display: flex; gap: .32rem; }
.ladder-art div + div { margin-top: .32rem; }
.ladder-art span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: #f9f4ff; border: 1px solid var(--ink); border-radius: .23rem; font-weight: 850; }
.ladder-art div:first-child span:nth-child(3) { background: #c0a1ef; }
.ladder-art div:last-child span:nth-child(3) { color: #fff; background: #69488e; }
.crossword-art { background: var(--green); }
.grid-preview { display: grid; grid-template-columns: repeat(5, 1.2rem); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.grid-preview span { aspect-ratio: 1; background: #fbfcf4; }
.grid-preview span.block { background: var(--ink); }
.game-copy { display: grid; align-content: start; grid-template-rows: auto 1fr auto; flex: 1; gap: .75rem; padding: clamp(1.1rem, 3vw, 1.8rem); }
.game-copy h2, .book-callout h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); letter-spacing: -.038em; line-height: 1.05; }
.game-copy p, .book-callout p, .book-page p { line-height: 1.55; }
.action { justify-self: start; display: inline-flex; align-items: center; gap: 1.2rem; padding: .65rem .95rem; min-height: 44px; border-radius: 7px; background: var(--ink); color: white; font-weight: 750; text-decoration: none; }
.action:hover { background: #4b3e58; }

.book-callout { display: flex; gap: 1.15rem; align-items: center; padding: .9rem 1.15rem; margin-top: 1.35rem; background: #ece8de; border-radius: 14px; }
.book-callout img { width: 67px; height: auto; align-self: center; border-radius: 3px; }
.book-callout h2 { font-size: 1.35rem; }
.book-callout p { margin-block: .28rem; }
.book-callout a { display: inline-block; font-weight: 700; padding-block: .18rem; }
.book-page { display: grid; grid-template-columns: minmax(11rem, 24rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; padding-top: clamp(2rem, 6vw, 4.25rem); }
.book-page h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.book-cover { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 16px 36px #2520152b; }
.book-subtitle { font-weight: 750; margin-block: .8rem 1rem; }
.book-details { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; margin-block: 1.35rem; }
.book-details strong { margin-right: .2em; }
.availability { border-top: 1px solid #d8d3c9; padding-top: 1rem; }

@media (max-width: 650px) {
  .site-bar, .shell { width: calc(100% - 2rem); }
  .site-bar { min-height: 61px; }
  .game-picker, .book-page { grid-template-columns: minmax(0, 1fr); }
  .game-art { min-height: 7.5rem; }
  .book-cover { width: min(62vw, 18rem); }
}
