/* Bingoku site. The app's own palette and hard-edged boxes, system fonts only,
   so the pages make no third-party requests. */
:root {
  --paper: #f4e8d0;
  --card: #f9f0dc;
  --sunken: #eadfc6;
  --ink: #2e2118;
  --muted: #6b5b4a;
  --mustard: #e6a72c;
  --avocado: #6b7b3a;
  --orange: #c9522b;
  --label: #a8411f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1812;
    --card: #2a2118;
    --sunken: #352a1e;
    --ink: #f4e8d0;
    --muted: #c9b79c;
    --label: #e8825a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--label); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.lid {
  background: #2e2118;
  border-bottom: 6px solid var(--mustard);
}

.lid .bar {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lid .brand {
  color: #f4e8d0;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-size: 18px;
}

.lid nav a {
  color: #c9a98a;
  text-decoration: none;
  margin-left: 16px;
  font-size: 15px;
  font-weight: 600;
}

.lid nav a:hover { color: #f4e8d0; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

h1 {
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.1;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 40px 0 8px;
  font-weight: 800;
}

p, li { max-width: 68ch; }
li { margin: 4px 0; }

.updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

.box {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 20px;
  margin: 24px 0;
}

.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }

.button {
  display: inline-block;
  background: var(--mustard);
  color: #2e2118;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover { color: #2e2118; transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; }
.tiles a {
  display: block;
  background: var(--sunken);
  border: 3px solid var(--ink);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.tiles a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 2px; }
.tiles a:hover { background: var(--card); }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15.5px; }
th, td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--sunken); }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--muted);
  font-size: 15px;
}

footer a { color: var(--muted); }

.bunting {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 28px, var(--avocado) 28px 56px, var(--mustard) 56px 84px);
}
