/* Bier op een rij website. Colours: the app's "classic" theme (src/constants/skins.ts), and its dark "stout" theme in
   dark mode; the text and link shades are darkened/lightened where needed for WCAG AA contrast. No web fonts: the
   same system fonts as the app. */
:root {
  --bg: #FFF8E7;
  --surface: #FFFFFF;
  --soft: #FFF1D6;
  --text: #3B2410;
  --heading: #5E3714;
  --muted: #6F5139;
  --link: #9A4F08;
  --border: #EAD9B8;
  --amber: #F7992F;
  --on-amber: #3B2410;
  --beer: #FECB4A;
  --on-beer: #3B2410;
  --foam: #F2F2F2;
  --hidden: #8A7A5E;
  --frame: #3B2410;
  --frame-edge: #3B2410;
  --shadow: 0 10px 30px rgba(94, 55, 20, .16);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17100B;
    --surface: #251A12;
    --soft: #2E2117;
    --text: #EFE1CC;
    --heading: #F5E6D0;
    --muted: #C9B49C;
    --link: #F2A65A;
    --border: #45331F;
    --amber: #E08A2C;
    --on-amber: #17100B;
    --beer: #D9A441;
    --on-beer: #17100B;
    --foam: #33251A;
    --hidden: #9C8468;
    --frame: #050302;
    --frame-edge: #45331F;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .5em; }
h3, .h3 { font-size: 1.2rem; margin: 0 0 .35em; }
p, ul, ol, dl { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

.skip { position: absolute; left: 8px; top: -100px; z-index: 10; background: var(--surface); color: var(--link); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 800; font-size: 1.2rem; min-height: 48px; }
.brand img { width: 39px; height: 48px; }
.nav ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-wrap: wrap; gap: 0 20px; }
.nav a { display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--link); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .35em; }

/* Buttons and the Play label */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 26px; border-radius: 14px; background: var(--amber); color: var(--on-amber); font-weight: 800; font-size: 1.1rem; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.btn:hover { filter: brightness(1.06); text-decoration: underline; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-secondary { background: transparent; color: var(--link); border: 2px solid currentColor; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 1.4em 0 1em; }
.store { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--border); color: var(--text); font-weight: 700; font-size: .95rem; text-decoration: none; }
.store-soon { color: var(--muted); border-style: dashed; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--heading); font-weight: 700; font-size: .9rem; }

/* Sections */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--border); }
.hero { padding-top: 28px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 840px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.hero .mug { width: 78px; height: 96px; display: block; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.callout { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; border-left: 6px solid var(--amber); }
.callout > :last-child { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Screenshots in a phone frame */
.phone { display: block; width: min(280px, 100%); margin: 0 auto; }
.phone img { display: block; width: 100%; border-radius: 28px; border: 8px solid var(--frame); outline: 1px solid var(--frame-edge); box-shadow: var(--shadow); background: var(--bg); }
figure { margin: 0; }
figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* Steps: text with a screenshot, alternating on wide screens */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 40px; }
.step { display: grid; gap: 20px; align-items: center; counter-increment: step; }
@media (min-width: 760px) {
  .step { grid-template-columns: 1fr 300px; gap: 40px; }
  .step:nth-child(even) { grid-template-columns: 300px 1fr; }
  .step:nth-child(even) .step-text { order: 2; }
}
.step h3::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; background: var(--beer); color: var(--on-beer); font-size: 1.05rem; }
.mini-steps { padding-left: 1.3em; }
.mini-steps li { margin-bottom: .5em; }

/* FAQ with <details>: works without JavaScript */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--heading); list-style-position: outside; margin-left: 1.1em; }
.faq summary:hover { color: var(--link); }
.faq details > div { padding: 0 0 14px 1.1em; }
.faq details > div > :last-child { margin-bottom: 0; }

/* Drinking games list */
.game-list { list-style: none; padding: 0; counter-reset: game; display: grid; gap: 20px; }
.game { counter-increment: game; }
.game h2 { font-size: 1.45rem; }
.game h2::before { content: counter(game) ". "; color: var(--link); }
.game dl, .facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .97rem; }
.facts-list { margin: 0; }
.game dt, .facts-list dt { font-weight: 700; color: var(--heading); }
.game dd, .facts-list dd { margin: 0; }
.game.ours { border: 3px solid var(--amber); }
ul.plain { list-style: none; padding: 0; }
.toc { columns: 2 200px; padding-left: 1.3em; }

/* Theme showcase: a small board in each theme's own colours (from src/constants/skins.ts) */
.theme { --t-bg: #FFF8E7; --t-surface: #FFFFFF; --t-beer: #FECB4A; --t-on-beer: #5E3714; --t-foam: #F2F2F2; --t-hidden: #6F5139; --t-accent: #F7992F; --t-text: #3B2410; --t-border: #EAD9B8; }
.theme-stout { --t-bg: #17100B; --t-surface: #251A12; --t-beer: #D9A441; --t-on-beer: #17100B; --t-foam: #33251A; --t-hidden: #A08870; --t-accent: #E08A2C; --t-text: #EFE1CC; --t-border: #45331F; }
.theme-kriek { --t-bg: #FFF0F3; --t-surface: #FFFFFF; --t-beer: #F6A9B9; --t-on-beer: #4A0B22; --t-foam: #FBE4E9; --t-hidden: #8A4A5E; --t-accent: #C2185B; --t-text: #4A0B22; --t-border: #F2CAD4; }
.theme-oktoberfest { --t-bg: #EEF4FB; --t-surface: #FFFFFF; --t-beer: #FFD66B; --t-on-beer: #102A43; --t-foam: #E2EBF6; --t-hidden: #4D6582; --t-accent: #1F6FB8; --t-text: #102A43; --t-border: #C9D9EC; }
.theme-neon { --t-bg: #0E0B1F; --t-surface: #18142F; --t-beer: #FFE45C; --t-on-beer: #0E0B1F; --t-foam: #231E42; --t-hidden: #A09BCC; --t-accent: #FF2E93; --t-text: #EDEBFF; --t-border: #332D5E; }
.theme-tripel { --t-bg: #0A0907; --t-surface: #14110B; --t-beer: #D4AF37; --t-on-beer: #0A0907; --t-foam: #1E1910; --t-hidden: #A9997A; --t-accent: #D4AF37; --t-text: #F4EAD2; --t-border: #4A3D1E; }
.theme-custom { --t-bg: #12241B; --t-surface: #1B3427; --t-beer: #E8B730; --t-on-beer: #12241B; --t-foam: #24412F; --t-hidden: #9FBFAA; --t-accent: #E8B730; --t-text: #F1F5EE; --t-border: #2F5240; }
.theme-card { background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-border); border-radius: var(--radius); padding: 18px; }
.theme-card h2, .theme-card h3 { color: var(--t-text); }
.theme-card p { margin-bottom: .4em; }
.theme-card .tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--t-beer); color: var(--t-on-beer); font-weight: 700; font-size: .85rem; }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--t-surface); border: 1px solid var(--t-border); border-radius: 14px; padding: 10px; margin: 12px 0; max-width: 220px; }
.mini-board span { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; background: var(--t-foam); color: var(--t-hidden); border: 1px dashed var(--t-border); }
.mini-board .on { background: var(--t-beer); color: var(--t-on-beer); border: 0; }

/* Footer */
.site-footer { margin-top: 40px; padding: 32px 0 40px; border-top: 1px solid var(--border); background: var(--soft); font-size: .97rem; }
.site-footer .adults { font-size: 1.1rem; color: var(--heading); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer nav a { display: inline-block; padding: 8px 0; min-height: 44px; }

/* 404 */
.notfound { text-align: center; padding: 56px 0; }
.notfound img { width: 120px; height: auto; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.actions.center { justify-content: center; }
