/* Pack Lingo site. Tokens taken from src/ui/theme.ts so the site and the app
   are the same object. Bebas Neue and DM Sans are the app's own two faces. */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #eef1f5;
  --ink: #1a1d24;
  --ink-soft: #3a4050;
  --muted: #8b93a7;
  --rule: #e2e6ed;
  --accent: #ff6b1a;        /* palette.restaurantGlow */
  --accent-ink: #c4571b;    /* palette.accentInk, the one that passes on white */
  --accent-wash: #fff4ec;
  --good: #239a67;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(26, 29, 36, .06), 0 8px 24px rgba(26, 29, 36, .05);
  --display: "Bebas Neue", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161c;
    --bg-soft: #1a1d24;
    --bg-muted: #22262f;
    --ink: #eef0f4;
    --ink-soft: #c3c9d6;
    --muted: #8b93a7;
    --rule: #2d3340;
    --accent: #ff8a3d;
    --accent-ink: #ffa86b;
    --accent-wash: #2a1d14;
    --good: #4ec49a;
    --card: #1c2029;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- shell ---------------------------------------------------------- */
.band { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.inner { max-width: 760px; margin: 0 auto }
.inner.wide { max-width: 1040px }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
header.site .inner {
  display: flex; align-items: center; gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block }
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap }
header.site nav a {
  font-size: .9rem; color: var(--ink-soft); text-decoration: none;
  padding-block: 4px;
}
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent-ink) }

footer.site {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  margin-top: 64px;
}
footer.site .inner { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline }
footer.site a { color: var(--ink-soft); text-decoration: none; font-size: .9rem }
footer.site a:hover { color: var(--accent-ink); text-decoration: underline }
footer.site .copy { color: var(--muted); font-size: .85rem; margin-left: auto }

/* ---- type ----------------------------------------------------------- */
h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1.02;
  letter-spacing: .01em; margin: 0 0 14px; text-wrap: balance;
}
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 1.95rem); line-height: 1.1;
  letter-spacing: .02em; margin: 44px 0 12px; text-wrap: balance;
}
h3 {
  font-size: 1.02rem; font-weight: 700; margin: 26px 0 6px;
  letter-spacing: -.005em;
}
p, ul, ol, dl { margin: 0 0 14px }
ul, ol { padding-left: 22px }
li { margin-bottom: 7px }
a { color: var(--accent-ink) }
strong { font-weight: 700 }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch }
.eyebrow {
  font-family: var(--body); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 10px;
}
.updated {
  font-size: .85rem; color: var(--muted); margin: 0 0 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.doc { padding-block: 44px 8px }
.doc .inner > h2:first-of-type { margin-top: 24px }

/* a placeholder nobody can ship by accident */
.todo {
  background: #ffe24a; color: #1a1d24; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; outline: 2px dotted #b38600;
  outline-offset: 1px; font-family: var(--body); font-size: .92em;
}

/* ---- pieces --------------------------------------------------------- */
.note {
  background: var(--bg-soft); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent); border-radius: 4px;
  padding: 14px 16px; margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0 }
.note strong { color: var(--accent-ink) }

table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 0 0 18px }
.scroll { overflow-x: auto; margin: 0 0 18px }
.scroll table { margin: 0 }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top }
th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700 }
td:first-child { font-weight: 500 }

.faq { border-top: 1px solid var(--rule) }
.faq details { border-bottom: 1px solid var(--rule) }
.faq summary {
  cursor: pointer; padding: 15px 2px; font-weight: 500; list-style: none;
  display: flex; align-items: baseline; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; line-height: 1 }
.faq details[open] summary::after { content: "\2013" }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px }
.faq .answer { padding: 0 2px 16px }
.faq .answer > :last-child { margin-bottom: 0 }

.mail {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 500;
  background: var(--accent-wash); border: 1px solid var(--accent);
  color: var(--accent-ink); border-radius: 5px; padding: 9px 14px;
  text-decoration: none;
}
.mail:hover { background: var(--accent); color: #fff }

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