/* Beaver Tantrum — site styles
   Palette and type match the approved "Campsite" mockup in /design. */

:root {
  --pine: #152a21;
  --pine-dark: #0f1f18;
  --pine-mid: #1f3d2f;
  --night: #18263a;
  --night-2: #223449;
  --cream: #f4ecd9;
  --cream-2: #fbf6ea;
  --cream-3: #e6dcc3;
  --ink: #1b1a17;
  --orange: #f07124;
  --yellow: #ffc447;
  --sage: #9db89a;
  --muted: #5a5446;
  --body: #3d3a33;
  --log-1: #8a5a2b;
  --log-2: #5f3b18;

  --display: 'Titan One', 'Arial Black', Impact, sans-serif;
  --text: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --tilt: 0deg;
}

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

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

body {
  margin: 0;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1; }
p, ul { margin: 0; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--yellow); }
svg { display: block; }

.container { width: min(100% - 2 * var(--gutter), 1248px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 10px; padding: 10px 14px; font-weight: 800;
}
.skip:focus { top: 16px; }

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

.site-header { position: sticky; top: 0; z-index: 50; background: var(--pine); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px; position: relative;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--orange);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--orange); }

.nav-menu { display: flex; align-items: center; gap: 36px; font-weight: 800; font-size: 17px; }
.nav-menu a { color: var(--cream); }
.nav-menu a:hover { color: var(--yellow); }
.nav-menu a.btn { color: var(--ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--cream);
  border: 3px solid var(--cream); border-radius: 12px; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--pine); padding: 12px var(--gutter) 22px;
    border-bottom: 4px solid var(--ink);
  }
  .nav-menu.is-open { display: flex; }
}

/* The dam: a scroll progress bar made of logs */
.dam { position: relative; height: 14px; margin-inline: var(--gutter); }
.dam::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px;
  background: var(--pine-mid); border-radius: 2px;
}
.dam__fill {
  position: absolute; left: 0; top: 2px; height: 10px; width: 0%; min-width: 30px;
  border: 2px solid var(--ink); border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--log-1) 0 22px, var(--log-2) 22px 26px);
}

/* ---------- Buttons, chips, pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 14px; border: 3px solid var(--ink);
  font-family: var(--text); font-weight: 800; font-size: 18px; line-height: 1;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.btn--sage { background: var(--sage); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--cream); }
.btn--small { padding: 10px 18px; font-size: 16px; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }

.btn--primary:hover, .btn--sage:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--small:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active, .btn--sage:active, .btn--small:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost:hover { color: var(--cream); background: rgba(244, 236, 217, 0.08); }
.btn--ink:hover { color: var(--cream); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cream); }
.btn--soon { cursor: default; }
.btn--soon:hover { transform: none; box-shadow: 6px 6px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.chip {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border: 3px solid var(--ink); border-radius: 999px; color: var(--ink);
  font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.chip--yellow { background: var(--yellow); }
.chip--sage { background: var(--sage); }

.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill {
  padding: 5px 12px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--cream-2); color: var(--muted); font-weight: 800; font-size: 13px;
}
.pill--on { background: var(--orange); color: var(--ink); }
.pill--on-sage { background: var(--sage); color: var(--ink); }
.pill--dashed { border-style: dashed; background: transparent; }

.pills--legs { gap: 0; }
.pills--legs li + li { position: relative; margin-left: 22px; }
.pills--legs li + li::before {
  content: ""; position: absolute; left: -22px; top: 50%; width: 14px; height: 3px;
  background: var(--ink); transform: translateY(-50%);
}

.tag {
  display: inline-flex; padding: 6px 10px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(var(--tilt));
}

/* ---------- Stickers ---------- */

.sticker {
  background: var(--cream); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(var(--tilt));
}
.tilt-l { --tilt: -1.2deg; }
.tilt-r { --tilt: 1.2deg; }
@media (max-width: 640px) {
  .tilt-l { --tilt: -0.6deg; }
  .tilt-r { --tilt: 0.6deg; }
}

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

.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 84px) 190px; }
.hero::before {
  content: ""; position: absolute; right: 8%; top: 40px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 113, 36, 0.22) 0%, rgba(240, 113, 36, 0) 68%);
  pointer-events: none;
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }

.eyebrow { font-weight: 800; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }
h1 { font-size: clamp(44px, 6vw, 82px); line-height: 0.98; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; color: rgba(244, 236, 217, 0.82); max-width: 560px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fine { font-size: 15px; font-weight: 600; color: rgba(244, 236, 217, 0.6); }

.trees { position: absolute; left: 0; bottom: -2px; width: 100%; height: 150px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 150px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 120px; }
  .hero::before { display: none; }
  .trees { height: 90px; }
  .hero .actions .btn { width: 100%; }
}

/* The board */
.board {
  width: 100%; max-width: 480px; justify-self: center;
  padding: 26px 30px 24px; display: flex; flex-direction: column; gap: 18px;
}
.board__title { font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.board__row { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ink); padding-top: 16px; }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board__head h3 { font-size: 24px; }
.board p { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .board { padding: 20px 20px 18px; } .board__head h3 { font-size: 20px; } }

/* ---------- Section headings ---------- */

.section-title { font-size: clamp(36px, 4vw, 58px); line-height: 1; text-transform: uppercase; }
.section-sub { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; margin-top: 12px; text-wrap: pretty; }

/* ---------- Games ---------- */

.games { background: var(--cream); color: var(--ink); padding-block: clamp(64px, 7vw, 96px) clamp(64px, 7vw, 104px); }
.games .section-sub { color: var(--muted); }

.card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px; border-radius: 24px; margin-top: 48px;
}
.card--awt { background: var(--cream-2); }
.card--zob { background: var(--night); color: var(--cream); grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 44px; }

.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.card__title { font-size: clamp(36px, 3.8vw, 54px); }
.card--zob .card__title { color: var(--sage); font-size: clamp(32px, 3.2vw, 46px); }
.card__tag { font-size: 22px; font-weight: 800; line-height: 1.3; }
.card--zob .card__tag { font-size: 20px; }
.card__text { color: var(--body); line-height: 1.6; text-wrap: pretty; }
.card--zob .card__text { color: rgba(244, 236, 217, 0.78); }

.features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 16px; }
.features li { display: flex; align-items: center; gap: 12px; }
.features svg { width: 22px; height: 22px; flex: none; color: var(--orange); }

.meta { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card--zob .meta { color: rgba(244, 236, 217, 0.6); }

.card__media { display: flex; justify-content: center; }
.slot {
  width: 100%; max-width: 520px; aspect-ratio: 16 / 10; padding: 20px;
  border: 4px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(var(--tilt));
}
.slot--light { background: repeating-linear-gradient(45deg, var(--cream-3) 0 14px, var(--cream) 14px 28px); }
.slot--dark { background: repeating-linear-gradient(45deg, var(--night-2) 0 14px, var(--night) 14px 28px); max-width: 400px; }
.slot__label {
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px;
  padding: 16px 20px; box-shadow: 5px 5px 0 var(--ink);
  display: flex; flex-direction: column; gap: 6px; max-width: 320px; text-align: center;
  transform: rotate(-3deg);
}
.slot__label strong { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.slot__label span { font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.4; }

@media (max-width: 960px) {
  .card, .card--zob { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .card--zob .card__media { order: -1; }
  .slot, .slot--dark { max-width: none; }
}
@media (max-width: 640px) {
  .card, .card--zob { padding: 22px; border-radius: 20px; margin-top: 36px; }
  .card__tag { font-size: 19px; }
  .slot__label { padding: 12px 14px; }
  .slot__label strong { font-size: 16px; }
  .slot__label span { font-size: 12px; }
}

/* ---------- What to expect ---------- */

.expect { padding-block: clamp(64px, 7vw, 104px); }
.expect .section-sub { color: rgba(244, 236, 217, 0.75); max-width: 820px; }
.expect__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 44px; }

.pillar { padding: 28px 26px; border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; gap: 12px; }
.pillar__num { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--orange); }
.pillar h3 { font-size: 24px; line-height: 1.1; }
.pillar p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--orange); color: var(--ink);
  border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  padding-block: clamp(56px, 6vw, 84px);
}
.newsletter__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.newsletter .section-sub { max-width: 560px; }

.signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.signup input {
  flex: 1 1 240px; max-width: 380px;
  font: inherit; font-weight: 600; font-size: 17px; padding: 14px 18px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--ink);
}
.signup input::placeholder { color: #8a8272; }
.signup input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.signup__note { flex-basis: 100%; font-size: 14px; font-weight: 700; min-height: 1.4em; }

.sends { justify-self: center; min-width: 260px; padding: 24px 28px; border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); }
.sends h3 { font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.sends ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 16px; }
.sends li { display: flex; align-items: center; gap: 10px; }
.sends li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); }

@media (max-width: 960px) {
  .newsletter__grid { grid-template-columns: 1fr; gap: 40px; }
  .sends { justify-self: start; }
}
@media (max-width: 640px) {
  .signup input { max-width: none; }
  .signup .btn { width: 100%; }
}

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

.site-footer { background: var(--ink); color: rgba(244, 236, 217, 0.75); padding-block: 40px; font-size: 15px; font-weight: 700; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.wordmark--small { font-size: 22px; -webkit-text-stroke: 0; text-shadow: none; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__links a { color: rgba(244, 236, 217, 0.75); }
.footer__links a:hover { color: var(--cream); }
.todo { color: var(--yellow); }
.footer__copy { color: rgba(244, 236, 217, 0.5); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px) rotate(var(--tilt)); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: rotate(var(--tilt)); }
.no-js .reveal { opacity: 1; transform: rotate(var(--tilt)); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: rotate(var(--tilt)); transition: none; }
  .btn { transition: none; }
}

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

.notfound { min-height: 60vh; display: flex; align-items: center; padding-block: 64px; }
.notfound__box { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 560px; }
.notfound h1 { font-size: clamp(40px, 5vw, 64px); }
