﻿/* ============ The Legend of Meathead — pre-launch ============
   Palette from the concept art:
   ink #0e0e12 · panel #16161d · panel2 #1d1d26 · line #2b2b38
   gold #f2b13d · meat #c24a33 · cream #e9e2d2 · dim #9d97a8      */

:root {
  --ink: #0e0e12;
  --panel: #16161d;
  --panel2: #1d1d26;
  --line: #2b2b38;
  --gold: #f2b13d;
  --gold-dim: #b98526;
  --meat: #c24a33;
  --cream: #e9e2d2;
  --dim: #9d97a8;
  --common: #8bc34a;
  --rare: #3ecfcf;
  --epic: #b06ce8;
  --legendary: #f2b13d;
  --mythic: #ffd76a;
  /* Typography calmed down 2026-08-17: pixel fonts were overused and hard to
     read. Barlow everywhere; the true pixel font survives ONLY as --pxtrue for
     tiny game-HUD accents (the steps ticker). */
  --px: "Barlow", system-ui, sans-serif;
  --vt: "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --pxtrue: "Press Start 2P", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.pix { image-rendering: pixelated; }
.vt { font-family: var(--vt); font-weight: 500; letter-spacing: .02em; }

h2 {
  font-family: var(--px);
  font-weight: 800;
  color: var(--gold);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 10px 0 22px;
}
h3 { color: var(--gold); font-weight: 700; font-size: 18px; letter-spacing: .1em; margin-bottom: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section { padding: 72px 0; }
.section-alt { background: #121218; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  color: var(--meat);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}

.lead { font-size: 19px; max-width: 62ch; margin-bottom: 14px; }
.fine { color: var(--dim); font-size: 14.5px; margin-top: 14px; max-width: 70ch; }
.fine a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.fine a:hover { color: var(--cream); }
.fine.center { margin-left: auto; margin-right: auto; }

/* chunky 16-bit panel: chamfered pixel corners */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
                     100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
                     8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
}
.panel.pad { padding: 22px; }

/* ============ HERO ============ */
.hero {
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(1200px 480px at 50% -80px, #191926 0%, transparent 60%),
    var(--ink);
  text-align: center;
  padding-top: 56px;
}
.hero-logo { width: min(520px, 86vw); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.hero-line {
  font-family: var(--px);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--cream);
  margin-top: 30px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.hero-sub { color: var(--dim); max-width: 52ch; margin: 14px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-note { color: var(--dim); font-size: 15px; margin-top: 16px; }

.btn {
  font-family: var(--px);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  padding: 15px 22px 13px;
  cursor: pointer;
  border: 0;
  line-height: 1.4;
}
.btn-primary {
  background: var(--gold);
  color: #241a05;
  box-shadow: 0 4px 0 var(--gold-dim), 0 8px 18px rgba(0,0,0,.45);
}
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-dim); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold-dim);
}
.btn-ghost:hover { background: rgba(242,177,61,.08); }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--rare);
  outline-offset: 2px;
}

/* signature: the march */
.march { margin-top: 44px; position: relative; }
.march-ticker {
  font-family: var(--pxtrue);
  color: var(--common);
  font-size: clamp(11px, 1.5vw, 15px);
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.march-track {
  height: 148px;
  overflow: hidden;
  position: relative;
  background: #17171e;
  border-top: 2px solid var(--line);
  border-bottom: 4px solid #3a5c2c;
}
.march-walker { position: absolute; bottom: 8px; left: -80px; will-change: transform; }
/* sprite-sheet walker: 49x64 cells at 2x integer scale (crisp pixels) */
#walkframe {
  width: 98px; height: 128px;
  background-image: url('/assets/characters/meathead/walk-8way.png');
  background-repeat: no-repeat;
  background-size: 588px 1024px;              /* 294x512 sheet at 2x */
  background-position: 0 -768px;              /* row E (marching right) */
}

/* ============ layout helpers ============ */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
.what-art img { width: 100%; height: auto; display: block; }
figcaption.vt, .what-art figcaption, .world-art figcaption, .boss-art figcaption {
  font-family: var(--vt); color: var(--dim); font-size: 15px; padding: 10px 14px;
}
.motto { color: var(--gold); font-size: 21px; margin: 16px 0; border-left: 4px solid var(--meat); padding-left: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-family: var(--vt); font-size: 14px; font-weight: 600; color: var(--cream);
  background: var(--panel2); border: 1px solid var(--line); padding: 4px 12px;
}

/* ============ core loop ============ */
.loop {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 30px 0 40px;
  text-align: center;
}
.loop li { display: grid; justify-items: center; gap: 6px; position: relative; padding-top: 6px; }
.loop li:not(:last-child)::after {
  content: "→";
  position: absolute; right: -13px; top: 24px;
  color: var(--common); font-size: 22px;
}
.loop img { height: 44px; width: auto; }
.loop b { font-family: var(--px); font-weight: 800; font-size: 16px; color: var(--gold); margin-top: 6px; }
.loop span { color: var(--dim); font-size: 13.5px; line-height: 1.3; }

.resources { padding: 24px; }
.resources table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.resources th {
  text-align: left; font-family: var(--vt); font-weight: 600; font-size: 15px;
  color: var(--dim); letter-spacing: .08em; padding: 8px 12px; border-bottom: 2px solid var(--line);
}
.resources td { padding: 9px 12px; border-bottom: 1px solid #20202b; }
.resources td:nth-child(2) { color: var(--gold); font-weight: 600; white-space: nowrap; }
.resources td:last-child { color: var(--dim); }
.ri { height: 20px; width: auto; vertical-align: -4px; margin-right: 8px; }

/* ============ progression ============ */
.prog {
  display: flex; justify-content: space-around; align-items: flex-end; gap: 8px;
  padding: 34px 20px 20px; margin-top: 26px;
  background: #15151b;
}
.prog figure { text-align: center; }
.prog img { display: block; margin: 0 auto; }
.prog figure:nth-child(1) img { height: 74px; }
.prog figure:nth-child(2) img { height: 104px; }
.prog figure:nth-child(3) img { height: 122px; }
.prog figure:nth-child(4) img { height: 145px; }
.prog figure:nth-child(5) img { height: 155px; }
.prog figcaption { font-family: var(--vt); color: var(--gold); font-size: 15px; font-weight: 600; margin-top: 10px; }

/* ============ world ============ */
.world-art { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin: 28px 0 20px; }
.world-art img { width: 100%; height: auto; display: block; }
.locations { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.loc img { width: 100%; height: auto; display: block; }
.loc figcaption { padding: 10px 12px 12px; }
.loc b { display: block; font-size: 14.5px; }
.loc span { color: var(--dim); font-size: 17px; }
.loc-mystery .mystery {
  aspect-ratio: 1; display: grid; place-items: center;
  color: var(--dim); font-size: 34px; background: #101016;
}

/* ============ meat hats ============ */
.counter {
  float: right; color: var(--common); font-size: 20px;
  border: 1px solid var(--line); background: var(--panel); padding: 4px 12px;
  margin-top: -2px;
}
.hats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.hat { text-align: center; padding: 18px 10px 12px; border-bottom-width: 4px; }
.hat img { height: 64px; width: auto; }
.hat img.dim { opacity: .8; height: 46px; margin-top: 9px; }
.hat figcaption b { display: block; font-size: 14px; margin-top: 6px; }
.rarity { font-family: var(--vt); font-size: 13px; font-weight: 700; letter-spacing: .14em; display: block; margin-top: 8px; }
.r-common   { border-bottom-color: var(--common); }   .r-common .rarity   { color: var(--common); }
.r-rare     { border-bottom-color: var(--rare); }     .r-rare .rarity     { color: var(--rare); }
.r-epic     { border-bottom-color: var(--epic); }     .r-epic .rarity     { color: var(--epic); }
.r-legendary{ border-bottom-color: var(--legendary); }.r-legendary .rarity{ color: var(--legendary); }
.r-mythic   { border-bottom-color: var(--mythic); }   .r-mythic .rarity   { color: var(--mythic); }
.r-mystery  { border-bottom-color: var(--line); }     .r-mystery .rarity  { color: var(--dim); }
.quote { text-align: center; color: var(--dim); font-size: 22px; margin-top: 30px; }

/* ============ companions ============ */
.crew { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; }
.mate { text-align: center; padding: 22px 12px 16px; }
.mate img { height: 86px; width: auto; }
.mate b { display: block; font-family: var(--px); font-weight: 800; font-size: 16px; color: var(--gold); margin-top: 14px; }
.mate span { color: var(--meat); font-size: 17px; letter-spacing: .12em; display: block; margin: 6px 0; }
.mate p { color: var(--dim); font-size: 14px; line-height: 1.45; }

/* ============ couch king ============ */
.section-boss {
  background:
    radial-gradient(900px 420px at 78% 40%, rgba(90,42,20,.28) 0%, transparent 70%),
    var(--ink);
}
.boss-split { grid-template-columns: 1fr 1.15fr; align-items: center; }
.boss-art img { width: 100%; height: auto; display: block; }
.moves { list-style: none; margin: 18px 0; }
.moves li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.move-name { color: var(--meat); font-size: 21px; white-space: nowrap; }
.moves li > span:last-child { color: var(--dim); font-size: 15px; }
.battle-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--panel2); border: 2px solid var(--line);
  padding: 12px; margin: 20px 0 6px; max-width: 340px;
}
.battle-menu span { color: var(--cream); font-size: 21px; padding: 2px 8px; }
.battle-menu span::before { content: "▶ "; color: var(--gold); }

/* ============ plan ============ */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 18px; margin-top: 26px; }
.trio { height: 44px; width: auto; display: block; margin: 4px 0 12px; }
.plan-grid p { color: var(--dim); font-size: 15px; }
.ticks { list-style: none; }
.ticks li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--common); }

/* ============ founding ============ */
.section-founding { padding-bottom: 90px; }
.section-founding h2, .section-founding .eyebrow { text-align: center; }
.tiers { padding: 24px; margin: 30px 0 36px; }
.tiers table { width: 100%; border-collapse: collapse; }
.tiers td { padding: 8px 10px; border-bottom: 1px solid #20202b; font-size: 15.5px; }
/* Tier names are words now, not short amounts, so give the column real room. */
.tiers td:first-child { color: var(--gold); font-size: 19px; width: 34%; white-space: nowrap; }
/* Two columns will not fit on a phone — stack name over description instead. */
@media (max-width: 560px) {
  .tiers td, .tiers td:first-child { display: block; width: auto; white-space: normal; }
  .tiers td:first-child { border-bottom: 0; padding-bottom: 0; font-size: 17px; }
  .tiers td:last-child { padding-top: 2px; }
}
.signup label { display: block; color: var(--common); font-size: 14px; font-weight: 700; letter-spacing: .14em; margin-bottom: 10px; text-align: center; }
.signup-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signup input {
  font-family: var(--vt); font-size: 17px;
  background: var(--panel2); color: var(--cream);
  border: 2px solid var(--line); padding: 12px 16px; min-width: min(340px, 80vw);
}
.signup input::placeholder { color: #5b5566; }
.form-msg { text-align: center; margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 24px; color: var(--common); }
.form-msg.err { color: var(--meat); }

/* ============ footer ============ */
.footer {
  border-top: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 40px 20px; text-align: center; background: #101016;
}
.footer img { height: 44px; width: auto; }
.foot-title { font-family: var(--px); font-weight: 800; font-size: 17px; color: var(--gold); }
.foot-sub { color: var(--dim); font-size: 14px; margin-top: 8px; letter-spacing: .1em; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .split, .boss-split, .world-art { grid-template-columns: 1fr; }
  .loop { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .loop li:nth-child(3)::after { display: none; }
  .locations, .hats { grid-template-columns: repeat(3, 1fr); }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .crew .mate:last-child { grid-column: 1 / -1; }
  .plan-grid { grid-template-columns: 1fr; }
  .counter { float: none; display: inline-block; margin: 10px 0 0; }
  .prog { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .locations, .hats { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop li:nth-child(even)::after { display: none; }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .march-walker { left: 50% !important; transform: translateX(-50%) !important; }
  .btn-primary:hover { transform: none; }
}

/* â”€â”€ Kickstarter + community trio (home page) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€─ */
.ks-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 18px; }
.ks-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: inherit; transition: transform .12s ease, border-color .12s ease; }
.ks-card:hover { transform: translateY(-3px); border-color: #f2b13d; }
.ks-emoji { font-size: 30px; line-height: 1; }
.ks-card b { font-family: var(--px); font-weight: 800; font-size: 18px; color: #f2b13d; line-height: 1.4; }
.ks-card p { font-size: 14.5px; color: #b9b9c6; margin: 0; flex: 1; }
.ks-card .btn { align-self: flex-start; pointer-events: none; }
@media (max-width: 860px) { .ks-trio { grid-template-columns: 1fr; } }

/* -- marketing opt-in (never pre-checked; consent must be a deliberate act) --
   Selectors are element-qualified to outrank `.signup label`, which sets centred,
   letter-spaced, bold display type for the field caption — none of which suits a
   sentence of consent wording, and whose display:block would break the flex row. */
label.optin-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
             max-width: 560px; margin-left: auto; margin-right: auto; text-align: left;
             cursor: pointer; }
/* `.signup input` styles the email field — 340px min-width, thick padding and
   border. All of it has to come off the checkbox or it reserves a huge box. */
label.optin-row input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 0; padding: 0; border: 0; margin: 2px 0 0;
  flex: none; accent-color: var(--gold); background: none;
}
label.optin-row span { color: var(--dim); font-size: 13.5px; line-height: 1.5;
                  font-family: var(--body); font-weight: 400; letter-spacing: normal;
                  text-align: left; }
