/* War of the Wilds — the website: home, how to play and the plain pages. Paper like the logo, with moss bands.
   The palette and the cards are in cards.css. */

:root {
  --page: #ebdcbd; --page-2: #e1cfa9; --page-line: #cdb98f;
  --pine: #20352a; --pine-soft: #4a5a45;
  --display: Almendra, Georgia, serif;
  --body: Newsreader, Georgia, serif;
  --ui: "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; color: var(--pine); font: 400 19px/1.5 var(--body); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acorn); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: var(--page); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---- header and footer ---- */
.site-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px clamp(14px, 4vw, 48px);
  background: rgba(235, 220, 189, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--page-line); }
.site-bar .brand { display: block; line-height: 0; }
.site-bar .brand img { height: 38px; width: auto; }
.site-bar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.navlink { font: 600 16px var(--ui); text-decoration: none; padding: 10px 2px; }
.navlink:hover { text-decoration: underline; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px clamp(16px, 5vw, 64px); border-top: 1px solid var(--page-line); }
.foot img { height: 30px; width: auto; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { font: 600 15px var(--ui); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---- buttons ---- */
.btn { display: inline-flex; background: transparent; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px var(--ui); text-decoration: none; cursor: pointer; transition: background .15s, transform .08s; }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--pine); color: var(--page); }
.btn.go:hover { background: #2d4a3a; }
.btn.ghost { border-color: var(--pine); color: var(--pine); }
.btn.ghost:hover { background: rgba(32, 53, 42, .07); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 19px; }
.moss .btn.go { background: var(--acorn); color: var(--ink); }
.moss .btn.go:hover { background: #e6aa3c; }

/* ---- sections ---- */
section { padding: clamp(44px, 7vw, 88px) clamp(16px, 5vw, 64px); }
h2 { font: 700 clamp(34px, 5vw, 54px)/1.05 var(--display); margin: 0 0 18px; }
h3 { font: 700 25px/1.15 var(--display); margin: 0 0 6px; }
p { margin: 0 0 14px; }
.kicker { font: 700 14px var(--ui); text-transform: uppercase; letter-spacing: .12em; color: var(--acorn-cap); margin: 0 0 10px; }
.moss { background: var(--moss); color: var(--leaf); }
.moss .kicker { color: var(--acorn); }
.paper-2 { background: var(--page-2); }
.inner { max-width: 1180px; margin: 0 auto; }
.lede { font-size: clamp(20px, 2.4vw, 24px); max-width: 680px; }

/* the hero: the logo, then a hand of cards */
.hero { text-align: center; padding-top: clamp(22px, 4vw, 48px); overflow-x: clip; }
.hero h1 { margin: 0; line-height: 0; }
.hero-logo { width: min(520px, 84vw); height: auto; }
.hero .lede { margin: 14px auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.facts { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; font: 600 16px var(--ui); color: var(--pine-soft); margin: 22px 0 0; }
.facts span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acorn); margin-right: 9px; vertical-align: 2px; }
.hand { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(6px, 1.6vw, 18px); margin: 44px auto -90px; }
.hand .card { width: clamp(118px, 17vw, 200px); }
.hand .card:nth-child(1) { transform: rotate(-9deg) translateY(22px); }
.hand .card:nth-child(2) { transform: rotate(-3deg); }
.hand .card:nth-child(3) { transform: rotate(3deg); }
.hand .card:nth-child(4) { transform: rotate(9deg) translateY(22px); }
.hand-room { min-height: calc(clamp(118px, 17vw, 200px) * 1.4); }   /* the cards' height before the script deals them, so nothing below jumps */
@media (max-width: 560px) { .hand .card:nth-child(4) { display: none; } }
.hero + .moss { padding-top: calc(clamp(44px, 7vw, 88px) + 90px); }

/* the short version: heading left, the four steps right */
.how { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 5vw, 64px); align-items: start; max-width: 1180px; margin: 0 auto; }
.how-head { position: sticky; top: 100px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--moss-line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .pic { flex: none; width: clamp(92px, 11vw, 124px); }
.steps .pic .card, .steps .pic .rescard { width: 100%; }
.steps .num { font: 700 15px var(--ui); letter-spacing: .08em; color: var(--acorn); }
.steps p { margin: 0; color: var(--leaf); }
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } .how-head { position: static; } }

/* the six homes */
.homes-head { max-width: 760px; }
.homes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 26px; }
.homes .homecard { width: 100%; }

/* hold the line */
.try-lede { max-width: 760px; }
.fight-board { display: grid; gap: 22px; margin-top: 26px; }
.side-label { font: 700 14px var(--ui); text-transform: uppercase; letter-spacing: .1em; color: var(--pine-soft); margin: 0 0 10px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.fighter { display: grid; gap: 8px; justify-items: center; width: clamp(140px, 17vw, 196px); }
.fighter .card { width: 100%; }
.fighter.band { width: auto; }
.fighter.band .pair { display: flex; gap: 6px; }
.fighter.band .card { width: 100%; }
.fighter.band .member { width: clamp(100px, 12vw, 128px); }
.fighter .tag { font: 600 14px var(--ui); color: var(--pine-soft); text-align: center; }
.blocks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.blocks button { font: 600 14px var(--ui); padding: 5px 9px; border-radius: 999px; border: 1.5px solid var(--pine); background: transparent; color: var(--pine); cursor: pointer; }
.blocks button[aria-pressed="true"] { background: var(--pine); color: var(--page); }
.blocks button:disabled { opacity: .35; cursor: not-allowed; }
.fighter.dead .card, .member.dead .card { filter: grayscale(1) brightness(.75); opacity: .7; }
.store-line { font: 600 17px var(--ui); }
.store-line b { color: var(--acorn-cap); font-size: 20px; }
.try-result { font-size: 21px; min-height: 64px; margin: 0; }
.try-result b { color: var(--acorn-cap); }

/* the day cards */
.days { display: flex; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; margin-top: 26px; }
.days .card { width: clamp(140px, 18vw, 200px); }

/* last call */
.last { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; }
.last h2 { margin-bottom: 8px; }
.last p { margin: 0; color: var(--pine-soft); }

/* ---- how to play: the video and its chapters, then the rules ---- */
.watch h1 { font: 700 clamp(42px, 7vw, 66px)/1 var(--display); margin: 0 0 22px; color: var(--paper); }
.player { width: 100%; max-width: 1100px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.player video { width: 100%; height: 100%; display: block; }
.chapters { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 1100px; }
.chapters button { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--moss-line); background: var(--moss-band); color: var(--leaf); font: 600 16px var(--ui); cursor: pointer; }
.chapters button:hover { border-color: var(--leaf-dim); }
.chapters button span { color: var(--leaf-dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.after { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.moss .btn.ghost { border-color: var(--leaf-dim); color: var(--leaf); }
.moss .btn.ghost:hover { background: rgba(223, 230, 198, .08); }
.transcript { margin-top: 26px; max-width: 760px; }
.transcript summary { cursor: pointer; font: 700 18px var(--ui); min-height: 44px; display: flex; align-items: center; }
.transcript h3 { font-size: 21px; margin: 16px 0 4px; }
.transcript p { margin: 0; color: var(--leaf); }
.rules { max-width: 760px; margin: 0 auto; }
.rules .rules-title { font-size: clamp(42px, 7vw, 66px); margin: 0 0 18px; padding: 0; border: 0; }
.rules h2 { font-size: clamp(30px, 4vw, 40px); margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--page-line); }
.rules h3 { margin: 26px 0 8px; }
.rules li { margin: 0 0 8px; }
.rules ul, .rules ol { padding-left: 1.3em; }
.rules .play { margin: 40px 0 0; }
.rules-cards { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin: 18px 0 8px; }
.rules-cards .card { width: 168px; }
.rules-cards .homecard { width: 238px; }
.rules-cards .rescard { width: 120px; }

/* the video on the home page */
.watch-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto 18px; }
.watch-head h2 { margin: 0; }
.home-player { max-width: 1100px; margin: 0 auto; }
.moss .navlink { color: var(--leaf); }

/* ---- the plain pages: about, contact, privacy, terms, 404 ---- */
.info-page { max-width: 720px; margin: 0 auto; padding: clamp(36px, 7vw, 72px) clamp(18px, 5vw, 24px) 80px; }
.info-page h1 { font: 700 clamp(40px, 8vw, 62px)/1 var(--display); margin: 0 0 26px; }
.info-page h2 { font-size: 30px; margin: 34px 0 10px; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .site-bar .navlink { display: none; }
  .steps li { align-items: flex-start; gap: 16px; }
  .steps .pic { width: 80px; }
}
@media print {
  .site-bar, .foot, .watch, .rules .play { display: none; }
  html, body { background: #fff; }
}
