/* ==========================================================================
   Birb — The Drinking Game | Shared stylesheet
   No external/CDN dependencies. No trackers. System font stack only.
   Tavern-ish but clean: dark, warm, readable.
   ========================================================================== */

:root {
  --bg:            #1a140f;   /* deep aged-oak brown */
  --bg-alt:        #221a13;   /* slightly lighter panel */
  --panel:         #2a2018;   /* card surface */
  --border:        #3d3026;   /* warm border */
  --text:          #f1e7d6;   /* parchment text */
  --text-muted:    #c2b29a;   /* muted parchment */
  --accent:        #e0a82e;   /* warm tavern gold/amber */
  --accent-2:      #c8772f;   /* burnt orange */
  --link:          #f0c14b;   /* lantern yellow */
  --link-hover:    #ffe08a;
  --danger-bg:     #4a1f1f;   /* warning red panel */
  --danger-border: #8a3b3b;
  --danger-text:   #ffd9d2;
  --note-bg:       #2f2410;
  --note-border:   #8a6a1f;
  --radius:        10px;
  --maxw:          860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* ---- Skip link for keyboard / screen-reader users ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #1a140f;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Layout containers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.brand .logo-mark {
  font-size: 1.5rem;
  line-height: 1;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--link-hover);
  border-bottom-color: var(--accent);
}

/* ---- Links ---- */
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }

/* ---- Main content ---- */
main { padding: 32px 0 48px; }

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; margin: 0 0 0.4em; }
h2 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.12rem; margin: 1.4em 0 0.4em; color: var(--accent); }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ---- Reusable panels / callouts ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 24px;
}

.banner-template {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--text);
}
.banner-template strong { color: var(--accent); }

.notice-18 {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-left: 6px solid var(--danger-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
  color: var(--danger-text);
}
.notice-18 .badge-18 {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--danger-border);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  margin-right: 8px;
}

.callout {
  background: var(--bg-alt);
  border: 1px dashed var(--note-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 20px;
}

.placeholder {
  background: #3a2c12;
  color: var(--link);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  white-space: nowrap;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 24px;
}

/* ---- Tables (data inventory) ---- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--bg-alt); color: var(--accent); }
tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ---- Landing page hero ---- */
.hero {
  text-align: center;
  padding: 56px 0 32px;
  background:
    radial-gradient(ellipse at top, rgba(224,168,46,0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero .logo-mark { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.2em; }
.tagline {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 1.2em;
  font-weight: 600;
}
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 1.5em; }

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.feature h3 { margin-top: 0; }

/* ---- App store badges (placeholders) ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  min-width: 200px;
}
.store-badge:hover { border-color: var(--accent); color: #fff; }
.store-badge .sb-icon { font-size: 1.8rem; }
.store-badge .sb-small { font-size: 0.7rem; opacity: 0.8; display: block; }
.store-badge .sb-big { font-size: 1.1rem; font-weight: 700; line-height: 1.1; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a140f;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
}
.btn:hover, .btn:focus { background: var(--link-hover); color: #1a140f; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
  padding: 28px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-nav a { color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--link-hover); }
.footer-legal { font-size: 0.85rem; line-height: 1.5; }
.footer-18 {
  font-weight: 700;
  color: var(--accent-2);
}

/* ---- Table of contents ---- */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
}
.toc h2 { margin: 0 0 8px; border: none; font-size: 1.1rem; }
.toc ul { columns: 2; column-gap: 28px; margin: 0; }
@media (max-width: 560px) { .toc ul { columns: 1; } }

/* ---- Focus visibility for accessibility ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 2px;
}

/* ---- Responsive type ---- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 36px 0 24px; }
  h1 { font-size: 1.6rem; }
}

/* ---- Misc ---- */
.bilingual-de { color: var(--text); }
.bilingual-en { color: var(--text-muted); font-size: 0.95rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.small { font-size: 0.88rem; color: var(--text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
