/* The Taverns: the landing page's one stylesheet. Day in light mode, night in dark. */

@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #fff8ec;
  --paper-2: #f6ead3;
  --card: #fffdf8;
  --ink: #3b2414;
  --ink-soft: #6e5038;
  --line: #e6d4b5;
  --accent: #b3402a;
  --accent-ink: #fff8ec;
  --accent-hover: #9a3522;
  --leaf: #4f7d34;
  --glow: #e8a93a;
  --shadow: 0 1px 0 rgb(59 36 20 / 0.06), 0 8px 24px -12px rgb(59 36 20 / 0.25);
  --hero-fade: linear-gradient(to bottom, rgb(255 248 236 / 0) 55%, var(--paper) 100%);
  --radius: 14px;
  --gutter: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131729;
    --paper-2: #1a1f35;
    --card: #1e2440;
    --ink: #f4e8d2;
    --ink-soft: #c2b296;
    --line: #2f3658;
    --accent: #e8a93a;
    --accent-ink: #1b1408;
    --accent-hover: #f3bf5e;
    --leaf: #9cc87a;
    --glow: #f3bf5e;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.2), 0 10px 28px -14px rgb(0 0 0 / 0.7);
    --hero-fade: linear-gradient(to bottom, rgb(19 23 41 / 0) 50%, var(--paper) 100%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.pixel { image-rendering: pixelated; }

h1, h2, h3, .label {
  font-family: "Pixelify Sans", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin: 0 0 0.5em; }
h3 { font-size: 1.3rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Top bar: over the hero on the home page, plain on the others. */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
}
.topbar--plain { position: static; max-width: var(--max); margin: 0 auto; }
.topbar .brand img { width: 160px; height: 76px; }
.topbar nav { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1.05rem/1 "Pixelify Sans", sans-serif; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--play { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn--play:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--big { min-height: 54px; padding: 14px 30px; font-size: 1.3rem; }
.btn--ghost { background: rgb(255 253 248 / 0.85); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); background: var(--card); }
@media (prefers-color-scheme: dark) {
  .btn--ghost { background: rgb(30 36 64 / 0.85); }
}
.lang {
  font: 600 0.95rem/1 "Pixelify Sans", sans-serif;
  color: var(--ink); text-decoration: none;
  padding: 12px 12px; border-radius: 999px;
  background: rgb(255 253 248 / 0.8); border: 2px solid var(--line);
}
.lang:hover { color: var(--accent); }
@media (prefers-color-scheme: dark) { .lang { background: rgb(30 36 64 / 0.8); } }

/* Hero: the village, with the logo and the pitch over it. */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 820px); display: grid; align-items: end; }
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-fade); z-index: -1; }
.hero__inner {
  padding: 120px var(--gutter) 40px; width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; justify-items: center; text-align: center;
}
.hero__logo { width: 320px; height: 152px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35)); }
@media (min-width: 720px) { .hero__logo { width: 480px; height: 228px; } }
.hero__card {
  margin-top: 18px; max-width: 640px;
  background: rgb(255 248 236 / 0.92); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
@media (prefers-color-scheme: dark) { .hero__card { background: rgb(19 23 41 / 0.88); } }
.hero h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.35rem); margin: 0 0 10px; }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__note { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: 680px; margin-bottom: 32px; }
.eyebrow { display: block; color: var(--accent); font-size: 0.95rem; margin-bottom: 6px; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

.steps { display: grid; gap: 16px; }
@media (min-width: 860px) { .day { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; } }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.step__num {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.2rem/1 "Pixelify Sans", sans-serif;
}
.step h3 { margin: 4px 0 2px; }
.step p { margin: 0; color: var(--ink-soft); }
.paper-shot-fig { margin: 0; }
.paper-shot {
  margin: 24px auto 0; max-width: 300px;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
@media (min-width: 860px) { .paper-shot { margin: 0; } }
.caption { font-size: 0.9rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }

.peoples { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.people {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow);
}
.people img { width: 96px; height: 96px; margin: 0 auto 8px; }
.people h3 { font-size: 1.2rem; margin-bottom: 2px; }
.people .label { display: inline-block; font-size: 0.85rem; color: var(--leaf); margin-bottom: 8px; }
.people p { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split--flip > :first-child { order: 2; } }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.list { margin: 0 0 1em; padding: 0; list-style: none; display: grid; gap: 12px; }
.list li { padding-left: 30px; position: relative; }
.list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 12px;
  background: var(--glow); transform: rotate(45deg); border-radius: 2px;
}
.list strong { font-weight: 800; }

.wide-shot { margin-top: 28px; border-radius: var(--radius); overflow: hidden; background: #6fa556; box-shadow: var(--shadow); }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 800; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font: 600 1.4rem/1 "Pixelify Sans", sans-serif; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); }

.cta { text-align: center; padding: 80px 0; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--ink-soft); margin-bottom: 24px; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.95rem; color: var(--ink-soft); }
.footer .wrap { display: grid; gap: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--accent); }
.footer p { margin: 0; }

/* Policy pages */
.doc { padding: 24px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 16px 0 6px; }
.doc .updated { color: var(--ink-soft); margin-bottom: 32px; }
.doc h2 { font-size: 1.45rem; margin: 2em 0 0.5em; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3.2rem); margin: 18px 0 8px; }
.notfound p { color: var(--ink-soft); margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
