/* Plumwit studio site. Plain CSS: no web fonts, no imports, no external URLs.
   Palette from the Plumwit brand book v1.3. */
:root {
  --paper: #F7F2EC;
  --mist: #E8E2DA;
  --plum: #5C3A56;
  --ink-plum: #3A2438;
  --charcoal: #2C2A28;
  --fine: #66605A;          /* darkened Stone (#9A948C) so small text passes WCAG AA on Paper */
  --clay: #C4A484;
  --placeholder: #F1E1C6;   /* clay tint for visible placeholders */
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: 400 1.0625rem/1.55 var(--body);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-plum); text-decoration-thickness: 2px; }
a:focus-visible, .skip:focus { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--plum); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 0.5rem; text-decoration: none; z-index: 10;
}
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { padding: 2rem 0 1rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-block; border-radius: 0.5rem; }
.brand img { height: 40px; width: auto; }
.site-nav a { font-size: 0.95rem; color: var(--charcoal); text-decoration: none; }
.site-nav a:hover { color: var(--plum); text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink-plum); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: 0 0 1.25rem; max-width: 18ch; }
h2 { font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin: 0 0 0.75rem; }
h3 { font-weight: 600; font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol, address, .tbl { max-width: var(--measure); }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum); margin: 0 0 0.75rem; }
.eyebrow.lc { text-transform: none; letter-spacing: 0.02em; font-size: 0.95rem; }

/* Sections */
main { display: block; }
.hero { padding: 4rem 0 4.5rem; }
.section { padding: 3.5rem 0; border-top: 1px solid var(--mist); }

/* Game card: a framed piece on the wall */
.game { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
.game-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 1px 2px rgba(44,42,40,0.08), 0 8px 24px rgba(58,36,56,0.10); }
.game h2 { margin-top: 0.25rem; }
.badge {
  display: inline-block; margin: 0.25rem 0 1.25rem;
  padding: 0.4rem 0.9rem; border: 1.5px solid var(--plum); border-radius: 999px;
  color: var(--plum); font-family: var(--display); font-weight: 600; font-size: 0.9rem;
}
.quiet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: none; }
.quiet-list h3 { margin-top: 0; }
.quiet-list p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--mist); padding: 2.5rem 0 3rem; margin-top: 2rem; font-size: 0.9rem; color: var(--fine); }
.site-footer p { margin: 0 0 0.5rem; max-width: none; }
.site-footer address.postal { max-width: none; line-height: 1.55; }
.site-footer a { color: var(--plum); }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; max-width: none; }

/* Placeholders that must be filled before publishing */
mark.ph {
  background: var(--placeholder); color: var(--charcoal);
  outline: 1.5px dashed var(--clay); outline-offset: 1px;
  padding: 0 0.25em; border-radius: 0.2em; font-weight: 600;
}

/* Policy page */
.doc { padding: 2.5rem 0 3rem; }
.doc h1 { max-width: 24ch; }
.doc h2 { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); }
.doc li { margin: 0.35rem 0; }
.doc ul { padding-left: 1.3rem; }
.meta { color: var(--fine); }
.toc { background: #FBF8F4; border: 1px solid var(--mist); border-radius: 0.75rem; padding: 1.25rem 1.5rem; max-width: var(--measure); margin: 2rem 0; }
.toc h2 { margin: 0 0 0.5rem; padding: 0; border: 0; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { margin: 0 0 0.4rem; break-inside: avoid; }
.kid { background: #FBF8F4; border-left: 4px solid var(--plum); padding: 1rem 1.25rem; border-radius: 0 0.5rem 0.5rem 0; }
.tbl { overflow-x: auto; margin: 0 0 1.25rem; max-width: 52rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--mist); padding: 0.65rem 0.75rem 0.65rem 0; }
th { font-family: var(--display); font-weight: 600; color: var(--ink-plum); border-bottom: 2px solid var(--mist); }
address { font-style: normal; line-height: 1.7; }

/* 404 */
.notfound { padding: 5rem 0 6rem; }

@media (max-width: 34rem) {
  .game { grid-template-columns: 1fr; gap: 1.25rem; }
  .game-icon { width: 104px; height: 104px; border-radius: 23px; }
  .hero { padding: 2.5rem 0 3rem; }
}

/* Narrow screens (under ~480px): stack each table row as a card; the column name comes from data-label. */
@media (max-width: 30rem) {
  .tbl { overflow-x: visible; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  .tbl tr { background: #FBF8F4; border: 1px solid var(--mist); border-radius: 0.75rem; padding: 0.35rem 1rem; margin: 0 0 0.85rem; }
  .tbl td { border-bottom: 1px solid var(--mist); padding: 0.6rem 0; overflow-wrap: anywhere; }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink-plum); margin-bottom: 0.15rem; }
}

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

@media print {
  .skip, .site-nav, .toc { display: none; }
  body { background: #fff; }
}
