:root {
  color-scheme: light dark;
  --bg: #F5E8D6;
  --surface: #F7F0E3;
  --ledge: #E4D3BA;
  --ink: #0D2B6B;
  --text: #242121;
  --muted: #4E4740;
  --link: #0D3687;
  --line: rgba(13, 43, 107, .16);
  --shadow: 0 1px 2px rgba(36, 33, 33, .08), 0 18px 40px -18px rgba(13, 43, 107, .35);
  --serif: "New York", ui-serif, "Iowan Old Style", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1526;
    --surface: #16203A;
    --ledge: #24304F;
    --ink: #F5E8D6;
    --text: #E9DFD0;
    --muted: #BDB3A5;
    --link: #A9C0F5;
    --line: rgba(245, 232, 214, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 36em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 2; }

/* Header */
.top { padding: 1.1rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mark { white-space: nowrap; font: 600 1.35rem/1 var(--serif); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.mark img { width: 34px; height: 34px; border-radius: 8px; }
.top nav a { color: var(--text); text-decoration: none; font-size: .95rem; margin-left: 1.1rem; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 34rem) { .top nav a:not(:last-child) { display: none; } }

/* Hero */
.hero { padding: 1.5rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.lede { font-size: 1.2rem; color: var(--text); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1.6rem; }
.badge img { height: 54px; width: auto; }
.get small { color: var(--muted); font-size: .95rem; }
.screen { position: relative; justify-self: center; width: min(100%, 22rem); }
.screen video {
  width: 100%;
  aspect-ratio: 600 / 856;
  object-fit: cover;
  border-radius: 2rem;
  background: var(--surface) url("media/gameplay.jpg") center / cover;
  box-shadow: var(--shadow);
}
.toggle {
  position: absolute; right: .75rem; bottom: .75rem;
  font: 600 .85rem/1 var(--sans);
  color: #F7F0E3; background: rgba(13, 43, 107, .82);
  border: 0; border-radius: 99px; padding: .55rem .9rem; cursor: pointer;
}
.toggle:hover { background: #0D3687; }
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero { padding-top: 3rem; }
}

/* Promises: the three things the game keeps */
.promises { padding: 3rem 0; border-top: 1px solid var(--line); }
.promises ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
.promises li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: start; }
.promises li img { width: 3.25rem; height: auto; margin-top: .2rem; filter: drop-shadow(0 4px 6px rgba(36, 33, 33, .25)); }
.promises h2 { font-size: 1.3rem; margin-bottom: .3em; }
.promises p { margin: 0; color: var(--muted); }
@media (min-width: 52rem) { .promises ul { grid-template-columns: repeat(3, 1fr); } }

section { scroll-margin-top: 1rem; }
.band { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.intro { margin-bottom: 2rem; }
.intro p { color: var(--muted); }

/* Stone styles: photos on a shelf, sideways scroll on phones */
.kits {
  list-style: none; margin: 0; padding: 0 0 1.25rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 72%);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.kits li { scroll-snap-align: start; }
.kits figure { margin: 0; }
.kits img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow); }
.kits figcaption { padding: .8rem .15rem 0; }
.kits figcaption strong { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); }
.kits figcaption span { display: block; color: var(--muted); font-size: .95rem; }
.kits .tag { font-style: normal; display: inline-block; margin-top: .4rem; font-size: .85rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: .15rem .6rem; border-radius: 99px; }
@media (min-width: 52rem) {
  .kits { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
}
.note { font-size: .95rem; color: var(--muted); margin-top: 1rem; }

/* The shelf: all 11 glazes, smallest to largest, on a stone ledge */
.glazes {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(.15rem, .8vw, .7rem);
  padding: 2rem .5rem 0; margin: 0 0 2rem;
  border-bottom: 14px solid var(--ledge);
  border-radius: 0 0 6px 6px;
}
.glazes img { width: calc(var(--s) * 1%); min-width: 0; height: auto; filter: drop-shadow(0 6px 5px rgba(36, 33, 33, .28)); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; max-width: 46rem; }
.faq summary { cursor: pointer; font: 600 1.15rem/1.4 var(--serif); color: var(--ink); list-style-position: outside; }
.faq details p { margin: .6rem 0 0; color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .95rem; color: var(--muted); }
footer nav a { margin-right: 1.2rem; }
footer p { margin: .8rem 0 0; }

/* Text pages */
.page { padding: 1rem 0 3rem; }
.page .wrap { max-width: 44rem; }
.page h2 { font-size: 1.45rem; margin-top: 2rem; }
.page li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
