/* Brooms & Bounties site. The frame (header, nav, type, layout) is edition-neutral; edition colors live in the tokens below.
   One deliberate look: parchment pages, dark "card" panels. */
:root {
  /* edition: Fantasy */
  --parch: #f3e7cc; --parch-hi: #fbf4e3; --parch-edge: #d8c094;
  --ink: #241d17; --ink-soft: #6a5a48; --rule: #d7c4a0; --broom: #c98b3a;
  --night: #15121d; --night-2: #221d2e; --on-night: #f4efe6; --on-night-soft: #cfc7dc;
  --gold: #f3c450; --gold-deep: #b97f1c; --coin-ink: #3b2504;
  --accent: #1f8a78; --team: #1f8a78; --boss: #d9468c; --allhands: #7f95ad; --rune: #b97f1c;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wide: 1120px; --narrow: 600px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.55;
  background-color: var(--parch);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255,250,235,.6), rgba(255,250,235,0) 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--night); color: var(--on-night); padding: 8px 12px; z-index: 20; }
.bar { max-width: var(--wide); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: var(--narrow); margin: 0 auto; padding-block: 18px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.top { background: var(--night); color: var(--on-night); border-bottom: 3px solid var(--gold); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; }
.brand:hover { color: var(--on-night); }
.brand .mark { width: 40px; height: 40px; --ink: var(--on-night); }
.brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
.brand small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.top nav a { color: var(--on-night-soft); text-decoration: none; font-weight: 800; font-size: 15px; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--on-night-soft); font-style: italic; }
.small { font-size: 15px; }
.btn { display: inline-block; background: var(--gold); color: var(--coin-ink); text-decoration: none; font-weight: 900;
  padding: 11px 18px; border-radius: 12px; box-shadow: 0 3px 0 var(--gold-deep); }
.btn:hover { color: var(--coin-ink); background: #ffd56b; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* home */
.hero { background: radial-gradient(ellipse at 75% 40%, #2f2645, var(--night) 65%); color: var(--on-night); overflow: hidden; }
.heroin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 48px 56px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 14px; }
.hero .lead { color: var(--on-night-soft); }
.hero .eyebrow { color: var(--gold); }
.fan { position: relative; height: clamp(300px, 40vw, 440px); }
.fan img { position: absolute; width: 48%; border-radius: 16px; border: 4px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.45); top: 6%; }
.fan .f0 { left: 0; transform: rotate(-9deg); }
.fan .f1 { left: 26%; top: 0; transform: rotate(-1deg); z-index: 2; }
.fan .f2 { left: 52%; transform: rotate(8deg); }
.sec { padding-block: 44px; }
.big { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; }
.beats { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; counter-reset: b; }
.beats li { counter-increment: b; background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 16px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.beats li::before { content: counter(b); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: var(--coin-ink);
  background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--gold) 50%, var(--gold-deep) 100%); box-shadow: 0 2px 0 var(--gold-deep); margin-bottom: 6px; }
.beats b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.beats span { color: var(--ink-soft); font-size: 15.5px; }
.band { background: rgba(255,250,235,.55); border-block: 1.5px solid var(--rule); }
.band.dark { background: var(--night); color: var(--on-night); border-color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 32px; align-items: center; }
.tilerow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.board { border-radius: 16px; border: 3px solid var(--gold-deep); }
.hrow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.hchip { display: grid; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 14.5px; text-align: center; }
.hchip img { border-radius: 14px; border: 2px solid var(--rule); background: var(--night); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.hchip:hover img { border-color: var(--gold-deep); }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 12px; transform: rotate(45deg); background: var(--gold); border-radius: 2px; box-shadow: 0 0 0 2px var(--gold-deep); }

/* tiles (card thumbnails) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { display: grid; text-decoration: none; color: var(--ink); background: var(--night); border-radius: 14px; overflow: hidden; border: 3px solid var(--edge, var(--gold)); }
.tile img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tile .tname { color: var(--on-night); font-family: var(--display); font-size: 17px; line-height: 1.15; padding: 8px 10px 0; }
.tile .tsub { color: var(--on-night-soft); font-size: 12.5px; font-weight: 800; padding: 2px 10px 10px; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60,35,10,.25); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 800; }
section h2 { font-size: 28px; margin: 34px 0 12px; }

/* heroes page */
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.hcard { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 18px; padding: 14px; scroll-margin-top: 16px; }
.hcard img { border-radius: 12px; background: var(--night); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hcard h2 { margin: 4px 0 2px; font-size: 26px; }
.hcard p { margin: 4px 0; }
.area { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* prose pages */
.prose h1 { font-size: clamp(34px, 7vw, 46px); margin: 0 0 10px; }
.prose h2 { font-size: 26px; margin: 30px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.rules li::marker { font-family: var(--display); color: var(--gold-deep); }
.lv { display: inline-block; padding: 1px 10px; border-radius: 99px; background: var(--night); color: var(--on-night); border: 2px solid var(--edge); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 14px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.faq p { margin: 10px 0 2px; color: var(--ink-soft); }

/* card page */
.crumb { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }
.card { position: relative; border-radius: 18px; overflow: hidden; background: var(--night); border: 3px solid var(--edge, var(--gold));
  box-shadow: 0 10px 28px rgba(60,35,10,.28); aspect-ratio: 3 / 4; max-width: 100%; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,16,.72) 0%, rgba(10,8,16,0) 26%, rgba(10,8,16,0) 70%, rgba(10,8,16,.82) 100%); }
.card .head { position: absolute; z-index: 1; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; gap: 10px; color: #fff; }
.card h1 { margin: 0; font-size: clamp(26px, 8vw, 36px); line-height: 1.05; text-shadow: 0 2px 0 rgba(0,0,0,.55); }
.card .type { margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.pts { text-align: right; flex: none; }
.pts strong { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 11vw, 48px); line-height: .9; text-shadow: 0 2px 0 rgba(0,0,0,.55); font-variant-numeric: tabular-nums; }
.pts small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.pill { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 99px; border: 1.5px solid #fff; background: rgba(10,8,16,.7); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.card .foot { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.card .foot p { margin: 0; }
.rule { font-weight: 800; font-size: 16px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.flavor { margin-top: 3px !important; font-style: italic; font-weight: 700; font-size: 14px; opacity: .85; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 16px 0 6px; }
.fact { background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 12px; padding: 8px 6px; text-align: center; min-width: 0; }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.narrow > h2 { font-size: 25px; margin: 26px 0 10px; display: flex; align-items: center; gap: 12px; }
.narrow > h2::after { content: ""; flex: 1; height: 2px; background: var(--rule); border-radius: 2px; }
.sub { margin: -4px 0 12px; color: var(--ink-soft); font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; font-weight: 800; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gear { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.gear li { background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 99px; padding: 4px 12px; font-size: 15px; font-weight: 800; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps label { display: grid; grid-template-columns: 40px minmax(0,1fr) 26px; gap: 12px; align-items: start;
  background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 14px; padding: 12px 12px 12px 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.steps label::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 19px; color: var(--coin-ink);
  background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--gold) 50%, var(--gold-deep) 100%); box-shadow: 0 2px 0 var(--gold-deep), inset 0 0 0 2px rgba(59,37,4,.18); }
.steps strong { display: block; font-weight: 900; font-size: 17px; line-height: 1.3; }
.steps .txt { min-width: 0; }
.steps .txt span { display: block; color: var(--ink-soft); font-size: 15.5px; margin-top: 2px; }
.steps input { appearance: none; -webkit-appearance: none; margin: 6px 0 0; width: 24px; height: 24px; border-radius: 7px;
  border: 2px solid var(--parch-edge); background: #fff; display: grid; place-items: center; cursor: pointer; }
.steps input:checked { background: var(--team); border-color: var(--team); }
.steps input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.steps label:has(input:checked) { background: #e6f1e8; border-color: #9cc8b0; }
.steps label:has(input:checked) strong { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(31,138,120,.6); }
.progress { margin-top: 12px; font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.progress.done { color: var(--team); }
.done-box { background: var(--night); color: var(--on-night); border-radius: 16px; border: 2px solid var(--gold); padding: 16px 16px 14px; }
.done-box h3 { margin: 0 0 8px; font-size: 21px; color: var(--gold); }
.done-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.done-box li { position: relative; padding-left: 26px; }
.done-box li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 12px; transform: rotate(45deg); background: linear-gradient(135deg, #ffe9a3, var(--gold)); border-radius: 2px; }
.done-box p { margin: 12px 0 0; font-size: 14.5px; color: var(--on-night-soft); }
.tips { display: grid; gap: 12px; }
.tip { display: grid; grid-template-columns: 6px minmax(0,1fr); gap: 12px; }
.tip::before { content: ""; border-radius: 3px; background: var(--tc, var(--broom)); }
.tip p { margin: 0; }
.tip b { font-weight: 900; }
.herobox { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; align-items: center; margin-top: 28px; padding: 12px; background: var(--parch-hi); border: 1.5px solid var(--rule); border-radius: 16px; }
.herobox img { border-radius: 10px; background: var(--night); width: 72px; aspect-ratio: 3/4; object-fit: cover; }
.herobox p { margin: 0; font-size: 15px; }
.deck-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.deck-note.top { margin-top: 14px; font-size: 15.5px; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.mini { display: grid; gap: 4px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 13.5px; line-height: 1.2; }
.mini img { border-radius: 10px; border: 2px solid var(--rule); aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* footer */
.site { background: var(--night); color: var(--on-night-soft); border-top: 3px solid var(--gold); margin-top: 20px; }
.site .bar { padding-block: 26px 34px; display: grid; gap: 8px; font-size: 14.5px; }
.site p { margin: 0; }
.site b { color: var(--on-night); }
.site .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site a { color: var(--gold); }
.fine { font-size: 12.5px; opacity: .8; }

@media (max-width: 820px) {
  .heroin, .split { grid-template-columns: minmax(0,1fr); }
  .heroin { padding-block: 30px 40px; }
  .fan { height: clamp(260px, 78vw, 400px); }
  .beats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hrow { grid-template-columns: repeat(5, minmax(96px,1fr)); overflow-x: auto; padding-bottom: 6px; }
  .hgrid, .checks { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .beats { grid-template-columns: minmax(0,1fr); }
  .hcard { grid-template-columns: 100px minmax(0,1fr); }
  .top nav { gap: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .tile:hover { transform: none; } }
