/* The shop's pages: warm paper, the game's two typefaces, readable on a small phone first. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-600.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-700.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --paper: #fbf4ec;
  --card: #fffaf4;
  --ink: #3b2430;
  --soft: #6e5560;
  --line: #ead9cb;
  --rose: #b4485e;
  --gold: #c98a2b;
  --title: 'Fraunces', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f1519; --card: #2a1d23; --ink: #f6e9df; --soft: #c9b2b9; --line: #45323a; --rose: #f08ba0; --gold: #e7b35a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
a { color: var(--rose); text-underline-offset: 3px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto; padding: 18px 16px;
}
.brand { font-family: var(--title); font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 18px; font-family: 'Nunito', var(--body); font-weight: 700; font-size: 15px; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--rose); }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(30px, 7vw, 44px); margin: 18px 0 10px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }
.lede { font-size: 19px; color: var(--soft); margin-top: 0; }
.updated { color: var(--soft); font-size: 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 14px 0; }
.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0; }
.products .card { margin: 0; }
.price { font-family: var(--title); font-size: 28px; color: var(--rose); margin: 2px 0; }
.price small { font-family: var(--body); font-size: 14px; color: var(--soft); }
.tag { display: inline-block; font-family: 'Nunito', var(--body); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }

.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-family: 'Nunito', var(--body); font-weight: 700; color: var(--soft); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: var(--paper); font-family: 'Nunito', var(--body); font-weight: 700; display: grid; place-items: center; }

footer { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; padding: 22px 16px 40px; color: var(--soft); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-family: 'Nunito', var(--body); font-weight: 700; }
.foot-links a { color: var(--soft); }
footer p { margin: 4px 0; }
