/*
 * Beerocrat public page. Tokens are the game's own (src/app/styles.css): warm wood, cream and honey,
 * the art's dark-brown outline, chunky rounded shapes with a hard ledge under raised things.
 * No inline styles anywhere (the content-security-policy allows only this file).
 */
:root {
  --wood-950: #1a100a;
  --wood-900: #24170f;
  --wood-850: #2b1c12;
  --wood-800: #352316;
  --wood-700: #442d1c;
  --wood-600: #5a3a22;
  --cream-50: #fffaf0;
  --cream-100: #fbf3e2;
  --cream-200: #f6ecd6;
  --cream-300: #ecdcb8;
  --brown-900: #2e1b0e;
  --brown-800: #4a2c17;
  --brown-600: #6e4a30;
  --honey-200: #ffe7a8;
  --honey-300: #ffd77a;
  --honey-400: #f8c04f;
  --honey-500: #f2b33d;
  --honey-600: #d9922a;
  --hop-300: #a9cf7c;
  --hop-500: #6f9e3f;

  --bg: var(--wood-900);
  --ink-on-wood: var(--cream-200);
  --ink-on-wood-muted: #d2b893;
  --ink: var(--brown-900);
  --outline: var(--brown-800);
  --ledge: #120a05;
  --focus: var(--honey-300);

  --font-ui: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Varela Round', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: dark;
  font-family: var(--font-ui);
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink-on-wood);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-weight: 500;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream-100);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--honey-300);
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--cream-50);
  color: var(--ink);
  font-weight: 800;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ Buttons (the game's kit) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--cream-50);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.45),
    0 4px 0 var(--outline);
  transition:
    transform 80ms var(--ease),
    box-shadow 80ms var(--ease),
    background-color 140ms var(--ease);
}

.btn:hover {
  background: var(--cream-200);
}

.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.45),
    0 1px 0 var(--outline);
}

.btn-primary {
  min-height: 56px;
  padding: 0 28px;
  background: var(--honey-500);
  font-size: 1.125rem;
}

.btn-primary:hover {
  background: var(--honey-400);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
}

.btn-icon {
  flex: none;
  fill: currentColor;
}

/* ------------------------------------------------------------------ Header */

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-100);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--outline);
}

/* ------------------------------------------------------------------ Hero */

.hero {
  padding-block: 8px 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(2rem, 1.35rem + 3.2vw, 3.4rem);
  line-height: 1.06;
}

.lede {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-on-wood);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.cta-note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-on-wood-muted);
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  background: var(--wood-800);
  box-shadow:
    0 0 0 3px var(--outline),
    0 8px 0 3px var(--ledge),
    0 24px 48px rgb(0 0 0 / 0.45);
}

@media (max-width: 479px) {
  .hero .cta .btn-primary {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-block: 32px 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 64px;
  }
}

/* ------------------------------------------------------------------ Sections */

.how,
.learn,
.facts {
  padding-block: 56px;
}

.how {
  padding-bottom: 28px;
  background: var(--wood-850);
  border-block: 2px solid var(--wood-700);
}

@media (min-width: 720px) {
  .how {
    padding-bottom: 56px;
  }
}

.how h2,
.learn h2,
.facts h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.375rem);
}

.section-lede {
  margin-top: 10px;
  max-width: 36em;
  font-size: 1.0625rem;
  color: var(--ink-on-wood-muted);
}

/* Only phones get the swipe hint: from tablet width up, the screenshots sit in a grid. */
.swipe-hint {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--honey-300);
}

.swipe-hint span {
  display: inline-block;
  margin-left: 4px;
}

/* Screenshots: a swipeable row on phones (the next card peeks in), a grid from tablet width up. */
.shots-scroller {
  margin-top: 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--wood-600) transparent;
}

.shots-scroller:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}

.shots {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 4px var(--gutter) 28px;
  list-style: none;
}

.shots > li {
  width: min(76vw, 300px);
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--wood-850);
  box-shadow:
    0 0 0 3px var(--outline),
    0 7px 0 3px var(--ledge);
}

.shot figcaption {
  margin-top: 22px;
}

.shot h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
}

.step {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--honey-500);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 0 var(--outline);
}

.shot p {
  margin-top: 8px;
  color: var(--ink-on-wood-muted);
}

@media (min-width: 720px) {
  .swipe-hint {
    display: none;
  }

  .shots-scroller {
    overflow: visible;
  }

  .shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    gap: 48px 36px;
    width: auto;
    max-width: 1120px;
    margin-inline: auto;
  }

  .shots > li {
    width: auto;
  }
}

/* What you'll learn */
.learn-grid {
  display: grid;
  gap: 40px;
}

.learn-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.learn-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 2px solid var(--wood-700);
  font-size: 1.0625rem;
}

.learn-list li:last-child {
  border-bottom: 0;
}

.learn-list img {
  width: 48px;
  height: 48px;
}

.learn-list img.tall {
  justify-self: center;
  width: 23px;
}

.flavours {
  align-self: start;
  padding: 24px;
  border: 2px solid var(--wood-600);
  border-radius: var(--radius-lg);
  background: var(--wood-800);
}

.flavours h3 {
  font-size: 1.25rem;
}

.flavours > p {
  margin-top: 8px;
  color: var(--ink-on-wood-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px 4px 7px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--cream-50);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--outline);
}

.chips img {
  width: 24px;
  height: 24px;
}

.flavours .na {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--hop-500);
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  background: var(--wood-700);
  color: var(--ink-on-wood);
}

.na strong {
  color: var(--hop-300);
}

@media (min-width: 900px) {
  .learn {
    padding-block: 80px;
  }

  .learn-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* Good to know: a cream card, like the game's sheets. */
.facts {
  padding-top: 8px;
}

.card {
  --focus: var(--brown-900);
  padding: clamp(22px, 4vw, 40px);
  border: 3px solid var(--outline);
  border-radius: var(--radius-xl);
  background: var(--cream-200);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--ledge);
}

.card h2 {
  color: var(--ink);
}

.facts-list {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.facts-list dt {
  font-size: 1.125rem;
  font-weight: 800;
}

.facts-list dd {
  margin-top: 4px;
}

@media (min-width: 900px) {
  .facts {
    padding-bottom: 88px;
  }

  .facts-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }
}

/* ------------------------------------------------------------------ Footer */

.foot {
  padding-block: 40px 56px;
  background: var(--wood-950);
  border-top: 2px solid var(--wood-700);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.foot-lead {
  font-weight: 700;
  color: var(--ink-on-wood);
}

.foot-small {
  margin-top: 6px;
  max-width: 44em;
  font-size: 0.9375rem;
  color: var(--ink-on-wood-muted);
}

/* ------------------------------------------------------------------ 404 */

.missing {
  padding-block: 48px 96px;
}

.missing h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
}

/* ------------------------------------------------------------------ Motion */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .btn:active {
    transform: none;
  }
}

/* Game-first landing */
.hero-demo {
  min-width: 0;
  max-width: 440px;
  justify-self: center;
}

.hero-demo figcaption {
  margin-top: 18px;
  color: var(--ink-on-wood-muted);
  font-size: 0.9375rem;
  text-align: center;
}

.hero-game h1 {
  text-wrap: initial;
}

@media (max-width: 479px) {
  .hero-game .hero-grid { gap: 20px; }
  .hero-game h1 { font-size: clamp(1.75rem, 7.5vw, 2rem); }
  .hero-game .lede { margin-top: 12px; font-size: 1rem; }
  .hero-game .cta { margin-top: 16px; }
}

.cast {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: 36px 64px;
}

.cast h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.375rem);
}

@media (min-width: 720px) {
  .cast {
    grid-template-columns: 1fr minmax(0, 440px);
  }
}

/* Privacy and press pages */
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  font-size: 0.9375rem;
}

.card a {
  color: var(--brown-800);
}

.document {
  padding-block: 24px 64px;
}

.document h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.2rem);
}

.document h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
}

.policy {
  max-width: 760px;
}

.document-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 2px solid var(--wood-700);
}

.document-section p,
.document-section ul {
  margin-top: 10px;
}

.document-section ul {
  padding-left: 1.25em;
}

.document-section li + li {
  margin-top: 8px;
}

.press-intro,
.press-details {
  display: grid;
  gap: 24px;
  align-items: start;
}

.press-details {
  gap: 0 48px;
}

.press-share {
  width: 100%;
  height: auto;
  border: 2px solid var(--wood-600);
  border-radius: var(--radius-lg);
}

.press-files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}

.document-section .press-shots,
.document-section .palette {
  display: grid;
  gap: 14px;
  padding: 0;
  margin-top: 24px;
  list-style: none;
}

.press-shots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.press-shots li + li,
.palette li + li {
  margin: 0;
}

.press-shots a {
  display: block;
  overflow: hidden;
  border: 2px solid var(--wood-600);
  border-radius: var(--radius-md);
  background: var(--wood-800);
}

.press-shots img {
  width: 100%;
  height: auto;
}

.press-shot-name {
  display: block;
  padding: 8px 10px;
}

.file-format {
  display: inline-block;
  margin-inline-start: 4px;
  color: var(--ink-on-wood-muted);
  font-size: 0.8125rem;
}

.palette li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatch {
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink-on-wood-muted);
  border-radius: 8px;
}

.swatch-wood { background: var(--wood-900); }
.swatch-cream { background: var(--cream-200); }
.swatch-honey { background: var(--honey-500); }
.swatch-hop { background: var(--hop-500); }

@media (min-width: 720px) {
  .press-intro,
  .press-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .press-intro {
    align-items: center;
  }

  .press-shots {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
