/* Beaverlodge Game: site styles
   Built on the Beaverlodge Design System: Copperplate CC + Open Sans,
   paper ground, rooftop accents, warm brown-tinted shadows. */

@font-face { font-family: "Copperplate CC"; src: url("../fonts/copperplate-cc-bold.otf") format("opentype"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Copperplate CC"; src: url("../fonts/copperplate-cc-heavy.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --blue: #2568E5; --terracotta: #D96A45; --amber: #F4A927; --lime: #C2EA1F;
  --sky: #92B3F2; --brown: #603813; --paper: #F9F3DC; --navy: #0D2F6E; --blue-mid: #3A65B0;
  --ink: #2A2118; --soil-900: #3D2C18; --soil-500: #8A6A45; --soil-300: #C4AC8C;
  --sand-200: #E7DCC2; --sand-100: #F2EAD3; --white: #FFFFFF; --lime-deep: #8FB012;
  --display: "Copperplate CC", "Copperplate", "Copperplate Gothic", serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow-sm: 0 1px 2px rgba(96,56,19,.10);
  --shadow-md: 0 4px 12px rgba(96,56,19,.12);
  --shadow-lg: 0 12px 28px rgba(96,56,19,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--soil-900); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: .06em; line-height: 1.1; color: var(--ink); text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--brown); text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 20px; line-height: 1.55; max-width: 680px; }
.h-xl { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: .04em; color: var(--navy); }
.h-lg { font-size: clamp(30px, 4vw, 40px); }
.h-md { font-size: 24px; letter-spacing: .08em; }
.h-sm { font-size: 18px; letter-spacing: .08em; }
.small { font-size: 14px; color: var(--brown); }
.muted { color: var(--brown); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.center { text-align: center; align-items: center; justify-content: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--sand-200); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .08em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-family: var(--display); font-size: 13px; letter-spacing: .12em; }
.site-nav a { color: var(--brown); text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 3px solid var(--terracotta); }
.site-nav a:hover { color: var(--ink); }
.site-header.dark { background: var(--brown); border-bottom-color: var(--soil-900); }
.site-header.dark .brand { color: var(--paper); }
.site-header.dark .brand img { background: var(--paper); border-radius: 10px; padding: 3px; }
.site-header.dark .site-nav a { color: var(--paper); }
.site-header.dark .site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(.93); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { color: var(--white); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-lime:hover, .btn-amber:hover { color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--soil-300); }
.btn-outline-light { background: transparent; color: var(--paper); border: 1px solid var(--soil-300); }
.btn-outline-light:hover { color: var(--paper); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.site-nav .btn { color: var(--white); padding: 12px 18px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--sand-200); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.card.raised { box-shadow: var(--shadow-md); }
.card.lifted { box-shadow: var(--shadow-lg); }
.roof { height: 6px; }
.roof-blue { background: var(--blue); } .roof-amber { background: var(--amber); } .roof-lime { background: var(--lime); } .roof-terra { background: var(--terracotta); } .roof-sky { background: var(--sky); }
.card-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.tile { width: 40px; height: 40px; border-radius: 12px 12px 12px 3px; }
.tile-blue { background: var(--blue); } .tile-amber { background: var(--amber); border-radius: 12px 3px 12px 12px; } .tile-lime { background: var(--lime); border-radius: 3px 12px 12px 12px; }
.pill { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--ink); padding: 3px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.pill-lime { background: rgba(194,234,31,.35); } .pill-amber { background: rgba(244,169,39,.32); } .pill-sky { background: rgba(146,179,242,.42); } .pill-terra { background: rgba(217,106,69,.25); } .pill-solid-amber { background: var(--amber); font-family: var(--display); letter-spacing: .12em; font-size: 13px; padding: 4px 12px; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: baseline; }
.bullets li::before { content: ""; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 4px 4px 4px 1px; background: var(--blue); transform: translateY(1px); }
.bullets.lime li::before { background: var(--lime-deep); }
.stone { display: inline-flex; width: 42px; height: 36px; align-items: center; justify-content: center; background: var(--sky); border-radius: 50% 50% 46% 54% / 60% 55% 45% 40%; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--navy); }

/* Bands */
.band-navy { background: var(--navy); color: var(--paper); }
.band-brown { background: var(--brown); color: var(--paper); }
.band-sand { background: var(--sand-100); border-top: 1px solid var(--sand-200); border-bottom: 1px solid var(--sand-200); }
.band-navy h1, .band-navy h2, .band-navy h3, .band-brown h1, .band-brown h2, .band-brown h3 { color: var(--paper); }
.band-navy .eyebrow { color: var(--lime); }
.band-brown .eyebrow { color: var(--amber); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.label, legend.label { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .12em; color: var(--ink); text-transform: uppercase; padding: 0; }
.input, .textarea, .select { font-family: var(--body); font-size: 17px; padding: 12px 14px; border: 1px solid var(--soil-300); border-radius: 8px; background: var(--sand-100); color: var(--ink); min-height: 48px; width: 100%; }
.textarea { resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,104,229,.18); }
.hint { font-size: 14px; color: var(--brown); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 20px; accent-color: var(--blue); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--sand-200); background: var(--white); border-radius: 8px; cursor: pointer; min-height: 52px; font-weight: 600; color: var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--blue); }
.choice:has(input:checked) { background: rgba(194,234,31,.18); border-color: var(--lime-deep); }
.pills-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.pills-radio label { position: relative; }
.pills-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills-radio span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--soil-300); background: var(--white); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: var(--ink); }
.pills-radio input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.pills-radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.honeypot { display: none !important; }
.form-status { font-weight: 600; border-radius: 8px; padding: 12px 14px; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(194,234,31,.25); color: var(--ink); }
.form-status.err { background: rgba(192,67,42,.12); color: #8C2E1C; }
.chip { font-family: var(--body); font-size: 14px; color: var(--soil-900); background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.chip:hover { background: var(--sand-200); }

/* Home */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 280px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 340px; height: auto; }
.prompt-card { max-width: 640px; }
.river-band { padding-top: 56px; }
.river-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.counters { display: flex; flex-wrap: wrap; gap: 40px; }
.counter b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.counter span { display: block; margin-top: 6px; font-size: 14px; color: var(--sky); }
.river { position: relative; height: 260px; margin-top: 32px; overflow: hidden; }
.river > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.river-label { position: absolute; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; }
.log { position: absolute; background: var(--brown); color: var(--paper); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(42,33,24,.3); white-space: nowrap; }
.river-label-up { left: 3%; top: 110px; color: var(--navy); }
.river-label-down { right: 3%; top: 160px; color: var(--sky); }
.log-1 { left: 4%; top: 62px; transform: rotate(-3deg); }
.log-2 { left: 24%; top: 70px; transform: rotate(2deg); }
.log-3 { left: 42%; top: 58px; transform: rotate(-2deg); }
.dam { position: absolute; left: 63%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dam .tag { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--ink); background: var(--amber); padding: 2px 10px; border-radius: 4px; margin-bottom: 4px; }
.dam i { display: block; height: 22px; border-radius: 999px; background: var(--soil-500); box-shadow: inset 8px 0 0 var(--soil-300); }
.dam i:nth-child(odd) { background: var(--brown); box-shadow: inset 8px 0 0 var(--soil-500); }
.wood-badge { background: var(--brown) url("../img/wood.jpg") center/cover; border-radius: 50%; border: 6px solid var(--amber); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.wood-badge b { font-family: var(--display); font-weight: 800; letter-spacing: .1em; color: var(--paper); background: rgba(42,33,24,.72); padding: 2px 12px; border-radius: 8px; }
.wood-badge small { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .16em; color: var(--paper); background: rgba(42,33,24,.72); padding: 2px 10px; border-radius: 4px; }
.note-img { height: 180px; width: 100%; object-fit: cover; }

/* Quest */
.quest-head { background: var(--amber); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.quest-head h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; }
.quest-grid { padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.quest-grid h2 { font-size: 15px; font-weight: 600; letter-spacing: .14em; color: var(--brown); margin-bottom: 12px; }
.moves { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.moves li { background: var(--sand-100); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.invite { background: var(--sand-100); border: 1px solid var(--sand-200); border-radius: 8px; padding: 14px 16px; font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--ink); }
.quest-foot { border-top: 1px solid var(--sand-200); padding: 20px 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--paper); }
.layout-aside { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout-aside > .main-col { flex: 999 1 620px; min-width: 0; }
.layout-aside > aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }

/* Join stepper */
.steps { margin: 0 0 24px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; flex-direction: column; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--brown); }
.steps li::before { content: ""; height: 6px; border-radius: 999px; background: var(--sand-200); }
.steps li.now { color: var(--ink); } .steps li.now::before { background: var(--lime); }
.steps li.done { color: var(--ink); } .steps li.done::before { background: var(--blue); }
.js .step { display: none; }
.js .step.active { display: flex; }
.step { flex-direction: column; gap: 20px; }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sand-200); }

/* Footer */
.site-footer { background: var(--ink); color: var(--sand-100); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--sand-100); }

@media (max-width: 720px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .card-body, .quest-grid { padding: 22px; }
  .quest-head, .quest-foot { padding: 22px; }
  .counters { gap: 24px; }
  .hero { gap: 24px; }
  .hero-art img { max-width: 150px; }
  .river { height: 300px; }
  .log { font-size: 12px; padding: 6px 12px; }
  .log-1 { left: 16px; top: 8px; }
  .log-2 { left: 16px; top: 52px; }
  .log-3 { left: 16px; top: 96px; }
  .river-label-up { left: 16px; top: 150px; max-width: 45%; font-size: 11px; }
  .river-label-down { display: none; }
  .dam { left: auto; right: 12px; transform: scale(.8); transform-origin: bottom right; }
}
