/*
  finalbuild2.com: developer site.
  Layout and values follow the Claude Design handoff
  (design_handoff_finalbuild2_sites). No inline styles anywhere: the CSP
  only allows this stylesheet.
*/

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  /* FinalBuild2 frame (paper) */
  --paper: #f1ece2;
  --ink: #1c1915;
  --ink-soft: #5c554b;
  --rule: #d6ccba;
  --hazard: #f4a81d;
  --hazard-hover: #ffbd40;

  /* Muckworks band (mud) */
  --mud: #2a2018;
  --mud-text: #efe6d6;
  --mud-soft: #b9a98f;
  --mud-rule: #4b3c2e;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-pad: clamp(20px, 3.2vw, 40px);
  --section-pad: clamp(56px, 9vw, 112px);
  --band-pad-bottom: clamp(56px, 9vw, 120px);
  --grid-gap: clamp(24px, 4vw, 64px);
  --edge-h: 20px;
  --radius-btn: 2px;

  --h2-size: clamp(1.75rem, 3.4vw, 2.5rem);
  --label-size: 0.75rem;
  --label-tracking: 0.12em;
  --fact-size: clamp(0.9rem, 3.4vw, 1.05rem);

  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--hazard);
  outline-offset: 3px;
}

::selection {
  background: var(--hazard);
  color: var(--mud);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 0.5rem;
}

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--header-pad);
}

.id {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

/* The .exe file icon: the only round thing on the site. */
.exe {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.wordmark {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 850;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* The "2": a revision tag, not a punchline. */
.rev {
  display: inline-block;
  margin-left: 0.06em;
  padding: 0 0.1em;
  background: var(--hazard);
  color: var(--ink);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-header nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Statement ---------- */

.statement .wrap {
  padding-block: clamp(48px, 8vw, 120px) clamp(56px, 9vw, 128px);
}

.statement h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.statement p {
  max-width: 44ch;
  margin: clamp(20px, 3vw, 36px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.45;
}

/* ---------- Sandbag edges ---------- */

.edge-mud,
.edge-paper {
  position: relative;
}

.edge-mud::before,
.edge-paper::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: var(--edge-h);
}

.edge-mud::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='20'%3E%3Cpath fill='%232a2018' d='M0 20C2 6 68 7 70 20C73 3 162 4 165 20C167 8 223 9 225 20C228 4 307 2 310 20C312 7 383 5 385 20C387 9 448 8 450 20C452 5 518 6 520 20Z'/%3E%3C/svg%3E") repeat-x left bottom / 520px 20px;
}

.edge-paper::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='20'%3E%3Cpath fill='%23f1ece2' d='M0 20C2 6 68 7 70 20C73 3 162 4 165 20C167 8 223 9 225 20C228 4 307 2 310 20C312 7 383 5 385 20C387 9 448 8 450 20C452 5 518 6 520 20Z'/%3E%3C/svg%3E") repeat-x left bottom / 520px 20px;
}

/* ---------- Muckworks band ---------- */

.band {
  background: var(--mud);
  color: var(--mud-text);
}

.band-intro {
  padding-top: clamp(48px, 7vw, 96px);
}

.now {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  color: var(--mud-soft);
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-weight: 850;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.now .square {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--hazard);
}

.game-logo {
  margin: clamp(24px, 3vw, 40px) 0 0;
}

.game-logo a {
  display: inline-block;
}

.game-logo img {
  width: min(720px, 100%);
}

.band-grid {
  display: grid;
  gap: var(--grid-gap);
  align-items: center;
  padding-top: clamp(28px, 4vw, 56px);
}

@media (min-width: 900px) {
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.band-copy {
  position: relative;
  padding-bottom: var(--band-pad-bottom);
}

.pitch {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  font-stretch: 95%;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.desc {
  max-width: 44ch;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Flex instead of equal columns so "In development" never breaks mid-value. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin: 1.75rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--mud-rule);
}

.facts dt {
  color: var(--mud-soft);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.facts dd {
  margin: 0.2rem 0 0;
  font-size: var(--fact-size);
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  background: var(--hazard);
  vertical-align: 0.06em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

.steam {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

a.steam {
  background: var(--hazard);
  color: var(--mud);
}

a.steam:hover {
  background: var(--hazard-hover);
}

a.steam:focus-visible {
  outline-color: var(--mud-text);
}

.steam--pending {
  border: 2px dashed var(--mud-rule);
  color: var(--mud-soft);
}

.visit {
  color: var(--mud-text);
  font-weight: 600;
}

/* Mirrored raccoon standing beside the pitch. Hidden in the one-column layout,
   where it would be clipped or cover the text. */
.cutout {
  display: none;
}

@media (min-width: 900px) {
  .cutout {
    display: block;
    position: absolute;
    top: -43px;
    left: 61%;
    width: min(46%, 260px);
    transform: scaleX(-1);
    pointer-events: none;
  }
}

.band-art {
  padding: 0 clamp(24px, 4vw, 56px) var(--band-pad-bottom) 0;
}

.band-art a {
  display: block;
  border: 3px solid var(--mud-text);
  background: var(--mud-rule);
}

.band-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shots {
  display: grid;
  gap: clamp(10px, 1.6vw, 20px);
  padding-bottom: var(--band-pad-bottom);
}

@media (min-width: 700px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }

  .shot--wide {
    grid-column: 1 / -1;
  }
}

.shot {
  margin: 0;
}

.shot img,
.shot video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--mud-rule);
}

/* ---------- About + Contact (paper) ---------- */

.paper {
  background: var(--paper);
}

.two-col {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 760px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.paper h2 {
  margin: 0;
  font-size: var(--h2-size);
  font-weight: 850;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about {
  align-items: start;
  padding-block: var(--section-pad);
}

.avatar {
  width: clamp(120px, 16vw, 200px);
}

.about h2 {
  margin-top: 1.5rem;
}

.about-text {
  display: grid;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.about-text p {
  max-width: 46ch;
  margin: 0;
}

.contact-row {
  row-gap: 1rem;
  padding-block: 0 var(--section-pad);
}

.contact-row > * {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.contact-row p {
  max-width: 42ch;
  margin: 0;
  font-size: 1.125rem;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 1.25rem 0 0;
}

.contact dt {
  color: var(--ink-soft);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.contact dd {
  margin: 0;
}

.contact a {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

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

.lost {
  padding-block: clamp(48px, 12vw, 160px);
}

.lost h1 {
  margin: 0;
  font-size: clamp(4rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.85;
}

.lost p {
  max-width: 30ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.lost .back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
}
