/* Whereabouts — developer site. Palette mirrors app/lib/theme/game_theme.dart
   (cozy): cream ground, warm ink, cork, and the pin orange from the icon. */
:root {
  --cream: #F5EDE4;
  --paper: #FAF4EC;
  --ink: #3B2F26;
  --muted: #77685A;
  --line: #E4D8CB;
  --cork: #D5934A;
  --cork-deep: #B8772F;
  --pin: #E8602C;
  --night: #2A211B;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { color-scheme: light; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cork-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--pin); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-head { padding: 22px 0 10px; }
.site-head .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-head .studio { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 800; padding-right: 12px; border-right: 1px solid var(--line); }
.site-head .studio:hover { color: var(--ink); }
.site-head .studio svg { width: 16px; height: 16px; }
.site-head img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 14px rgba(59, 47, 38, .18); }
.site-head .name { font-weight: 800; font-size: 20px; letter-spacing: .2px; text-decoration: none; color: var(--ink); }
.site-head nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-head nav a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }

/* Hero (index) */
.hero { padding: 48px 0 28px; text-align: center; }
.hero img { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 14px 40px rgba(59, 47, 38, .28); }
.hero h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.1; margin: 26px 0 8px; font-weight: 900; letter-spacing: -.3px; }
.hero .sub { font-size: 19px; color: var(--muted); margin: 0 0 22px; font-weight: 700; }
.hero p.lead { max-width: 560px; margin: 0 auto 26px; font-size: 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--night); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 12px 20px; font-weight: 800; font-size: 16px;
  box-shadow: 0 8px 22px rgba(42, 33, 27, .28);
}
.badge:hover { color: #fff; transform: translateY(-1px); }
.badge small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1.1; }
.badge svg { width: 22px; height: 22px; fill: #fff; }
.soon { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 36px 0; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: 0 6px 20px rgba(59, 47, 38, .07);
}
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .n {
  display: inline-block; width: 30px; height: 30px; border-radius: 50%; line-height: 30px;
  text-align: center; background: var(--pin); color: #fff; font-weight: 900; margin-bottom: 10px;
}

/* Cork strip */
.cork {
  background: var(--cork);
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.6px),
                    radial-gradient(rgba(90, 50, 10, .18) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px;
  background-position: 0 0, 4px 6px;
  color: #fff; padding: 34px 0; margin: 8px 0 0;
}
.cork h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.cork p { margin: 0; font-size: 16.5px; max-width: 600px; font-weight: 700; }

/* Documents */
.doc { padding: 34px 0 20px; }
.doc h1 { font-size: clamp(30px, 8vw, 36px); line-height: 1.15; margin: 0 0 6px; font-weight: 900; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; font-weight: 800; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; font-weight: 800; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: .4px; }
.doc .table-wrap { overflow-x: auto; }
.note {
  background: var(--paper); border-left: 4px solid var(--pin); border-radius: 0 12px 12px 0;
  padding: 12px 16px; margin: 18px 0; font-size: 15.5px;
}
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { font-size: 15px; margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 800; padding: 10px 0; font-size: 17px; }
details p { margin: 0 0 14px; color: var(--ink); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-foot .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-foot a:hover { color: var(--ink); }
.site-foot .copy { margin-left: auto; }

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-head { padding-top: 16px; }
  .site-head .wrap { gap: 10px 12px; }
  .site-head img { width: 38px; height: 38px; border-radius: 10px; }
  .site-head .name { font-size: 18px; }
  .site-head .studio span { display: none; }
  .site-head .studio { padding-right: 8px; }
  .site-head nav { width: 100%; margin-left: 0; gap: 16px; }
  .hero { padding: 34px 0 22px; }
  .hero img { width: 120px; height: 120px; border-radius: 28px; }
  .hero p.lead { font-size: 17px; }
  .cards { margin: 26px 0; }
  .cork { padding: 28px 0; }
  .cork h2 { font-size: 21px; }
  .doc { padding: 26px 0 16px; }
  .doc h2 { font-size: 20px; margin-top: 30px; }
  .doc p, .doc li { font-size: 16px; }
  .toc ol { columns: 1; }
  .toc { padding: 14px 18px; }
  /* tables stack into labelled rows instead of scrolling sideways */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc td { padding: 3px 0; border: 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
  .doc td:first-child { font-weight: 800; }
  .doc td:first-child::before { display: none; }
  details { padding: 2px 14px; }
  summary { font-size: 16px; }
  .site-foot .copy { margin-left: 0; width: 100%; }
}
