/*
  muckworks.finalbuild2.com: the game site.
  Layout and values follow the Claude Design handoff
  (design_handoff_finalbuild2_sites). Own stylesheet, nothing shared with
  finalbuild2.com at runtime. No inline styles: the CSP only allows this file.
*/

@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 {
  --mud: #2a2018;
  --mud-text: #efe6d6;
  --mud-soft: #b9a98f;
  --mud-rule: #4b3c2e;
  --paper: #f1ece2;
  --ink: #1c1915;
  --ink-soft: #5c554b;
  --rule: #d6ccba;
  --hazard: #f4a81d;
  --hazard-hover: #ffbd40;

  /* Hard hat accents: feature tags only. */
  --hat-yellow: #f2c02e;
  --hat-red: #e04b3a;
  --hat-blue: #3f6fc4;
  --hat-pink: #ef6fae;

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

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

  color-scheme: dark;
}

*,
*::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(--mud);
  color: var(--mud-text);
  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;
}

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

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;
}

.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(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 0.5rem;
}

/* ---------- Splash ---------- */

/* The art carries the title. The nav bar below peeks into the first viewport. */
.splash img {
  width: 100%;
  height: min(calc(100vh - 64px), 56.25vw);
  object-fit: cover;
  object-position: center top;
  background: var(--mud-rule);
}

/* ---------- Nav bar ---------- */

.site-header {
  position: relative;
  z-index: 3;
  background: var(--mud);
  border-bottom: 1px solid var(--mud-rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 64px;
  padding-block: 10px;
}

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

.mark img {
  width: auto;
  height: 40px;
}

.mark span {
  font-weight: 850;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

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

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

.byline {
  color: var(--mud-soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.byline strong {
  color: var(--mud-text);
  font-weight: 850;
  font-stretch: 92%;
  letter-spacing: -0.02em;
}

.byline:hover strong {
  text-decoration: underline;
}

.rev {
  display: inline-block;
  margin-left: 0.06em;
  padding: 0 0.1em;
  background: var(--hazard);
  color: var(--mud);
}

/* Phones: compact two-row bar (mark + byline, then links), not sticky, so it
   never covers a third of the screen. */
@media (max-width: 759px) {
  .site-header nav {
    order: 3;
    width: 100%;
    gap: 1.25rem;
  }
}

@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  /* Anchor jumps land below the sticky bar. */
  html {
    scroll-padding-top: 80px;
  }
}

/* ---------- Game intro ---------- */

.game .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 128px);
  text-align: center;
}

.game-pitch {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 900;
  font-stretch: 95%;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.game-desc {
  max-width: 52ch;
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  color: var(--mud-soft);
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.game .cta {
  margin: clamp(28px, 3.5vw, 44px) 0 0;
}

.facts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  width: min(640px, 100%);
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mud-rule);
}

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

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

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

.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);
}

.game .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

/* Hazard tape slogan above the pitch. */
.slogan {
  display: inline-block;
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  padding: 0.35em 0.8em;
  background: var(--hazard);
  color: var(--mud);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

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

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

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

.shots {
  display: grid;
  gap: clamp(10px, 1.6vw, 20px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

@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);
}

/* ---------- Shared display type ---------- */

.display {
  margin: 0;
  font-size: var(--display-size);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ---------- Features ---------- */

.features .wrap {
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

.feature {
  display: grid;
  gap: var(--grid-gap);
  align-items: center;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--mud-rule);
}

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

.tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--mud-soft);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.tag::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  background: var(--tag-color, var(--hazard));
}

.tag--yellow {
  --tag-color: var(--hat-yellow);
}

.tag--red {
  --tag-color: var(--hat-red);
}

.tag--blue {
  --tag-color: var(--hat-blue);
}

.tag--pink {
  --tag-color: var(--hat-pink);
}

.feature h2 {
  max-width: 12ch;
}

.feature .text {
  max-width: 40ch;
  margin: 1.25rem 0 0;
  color: var(--mud-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

.feature img {
  justify-self: center;
  width: min(100%, 440px);
}

.feature img.wide {
  width: min(100%, 520px);
}

/* Phones: title and text first in every block. The HTML puts the image
   first in blocks 2 and 4 so it alternates left/right on desktop. */
.feature > img {
  order: 2;
}

@media (min-width: 800px) {
  .feature > img {
    order: 0;
  }
}

/* ---------- Story sections: the job, crew talk, conditions, job done, origin, fans, MuckList, FAQ ---------- */

.story-grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px) var(--grid-gap);
  padding-block: clamp(32px, 4vw, 56px) clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--mud-rule);
}

@media (min-width: 800px) {
  .story-grid--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.story .text {
  max-width: 44ch;
  margin: 1rem 0 0;
  color: var(--mud-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

.origin-text p {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.origin-text p + p {
  margin-top: 1.25rem;
  color: var(--mud-soft);
}

.steps {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 620px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  padding-top: 1rem;
  border-top: 3px solid var(--mud-text);
  counter-increment: step;
}

/* "The reality" step */
.steps li:nth-child(3) {
  border-top-color: var(--hat-red);
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.steps h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  background: var(--hazard);
  color: var(--mud);
  font-size: 0.75em;
}

.steps p {
  margin: 0.75rem 0 0;
  color: var(--mud-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Unnumbered variant (conditions): same cards, no counter. */
.steps--plain li {
  counter-increment: none;
}

.steps--plain h3::before {
  content: none;
}

/* The job: a paper TrashWorks work order on the mud. */
.work-order {
  max-width: 460px;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem 1.1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 0 rgb(0 0 0 / 0.25);
  transform: rotate(-0.8deg);
}

.work-order-head {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-order-hazard {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-order-hazard + .work-order-hazard {
  margin-top: 0.2rem;
}

.work-order-hazard span {
  color: var(--ink-soft);
  font-weight: 600;
}

.work-order-goals {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.work-order-goals li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.75rem;
  font-weight: 600;
}

.work-order-goals li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

/* Your crew: things people shout, as tags. The last one is the loud one. */
.shouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.shouts li {
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--mud-text);
  border-radius: 2px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shouts li:last-child {
  border-color: var(--hazard);
  background: var(--hazard);
  color: var(--mud);
}

.gear {
  display: grid;
  gap: 1rem;
  max-width: 44ch;
  margin: 1.75rem 0 0;
}

.gear div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--mud-rule);
}

.gear dt {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gear dd {
  margin: 0.25rem 0 0;
  color: var(--mud-soft);
}

/* Conditions: disasters as resources, told as a four-line scene. */
.resource {
  max-width: 44ch;
}

.script {
  margin: 0.75rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--hazard);
  list-style: none;
}

.script li {
  color: var(--mud-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.script li.said {
  color: var(--mud-text);
  font-weight: 800;
}

/* Job complete: crossed-out before, bright after. */
.before-after {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.before-after li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.before-after .before {
  color: var(--mud-soft);
  text-decoration: line-through;
  text-decoration-color: var(--hat-red);
  text-decoration-thickness: 3px;
}

.before-after .after::before {
  content: "\2192";
  content: "\2192" / "";
  margin-right: 0.75rem;
  color: var(--hazard);
}

.chain {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.chain li {
  position: relative;
  padding: 0 0 1.1rem 2rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.chain li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--hazard);
}

/* Line joining each step to the next. */
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(0.4em + 0.8rem);
  bottom: 0.2rem;
  left: calc(0.6rem - 1px);
  width: 2px;
  background: var(--mud-rule);
}

.shout {
  margin: 0.25rem 0 0;
  color: var(--hazard);
  font-size: var(--display-size);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.story-art {
  justify-self: center;
  align-self: center;
  width: min(100%, 420px);
}

.fans-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fans-list li {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 900;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.fans-list li:not(:last-child)::after {
  content: "/";
  content: "/" / "";
  margin: 0 0.4em;
  color: var(--mud-rule);
}

.fans-more {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
}

.story .fans-more + .text {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 1.25rem var(--grid-gap);
  margin: 0;
}

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

.faq-list div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--mud-rule);
}

.faq-list dt {
  font-size: 1.125rem;
  font-weight: 800;
}

.faq-list dd {
  margin: 0.35rem 0 0;
  color: var(--mud-soft);
  font-size: 1.0625rem;
}

/* ---------- Crew ---------- */

.crew .wrap {
  padding-bottom: clamp(64px, 9vw, 128px);
}

.crew-head {
  display: grid;
  gap: 1rem var(--grid-gap);
  align-items: end;
}

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

.crew-head p {
  max-width: 44ch;
  margin: 0;
  color: var(--mud-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

/* Phones: 3 x 2, each row standing on its own ground line. */
.lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 4vw, 32px) 0;
  margin-top: clamp(32px, 5vw, 72px);
}

.lineup img {
  width: 100%;
  border-bottom: 2px solid var(--mud-text);
}

@media (min-width: 700px) {
  .lineup {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(4px, 1vw, 16px);
    border-bottom: 2px solid var(--mud-text);
  }

  .lineup img {
    border-bottom: 0;
  }
}

/* ---------- Coming to Steam ---------- */

/* Last mud section: room at the bottom for the paper sandbag edge. */
.story-grid.wishlist-grid {
  align-items: center;
  padding-bottom: calc(var(--section-pad) + var(--edge-h));
}

.wishlist h2 {
  max-width: 14ch;
}

.wishlist p {
  max-width: 42ch;
  margin: 1.25rem 0 0;
  color: var(--mud-soft);
  font-size: 1.125rem;
  line-height: 1.55;
}

.wishlist .cta {
  margin-top: 1.75rem;
}

.wishlist img {
  justify-self: center;
  width: min(100%, 460px);
}

/* ---------- Made by / Contact (paper) ---------- */

.made-by {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

/* Sandbag edge in paper. */
.made-by::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: var(--edge-h);
  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;
}

.made-by ::selection {
  background: var(--ink);
  color: var(--paper);
}

.made-by :focus-visible {
  outline-color: var(--ink);
}

.made-by .wrap {
  display: grid;
  gap: 1rem var(--grid-gap);
  padding-block: var(--section-pad);
}

@media (min-width: 760px) {
  .made-by .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

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

.made-by p {
  max-width: 42ch;
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

.made-by p a {
  font-weight: 600;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  gap: 1rem 2.5rem;
  margin: 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 {
  background: var(--paper);
  color: var(--ink-soft);
}

.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);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- MuckList leave flow ---------- */

/* Centered column: the art on top, the form under it. */
.leave .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leave-form {
  width: 100%;
  max-width: 660px;
  margin-top: clamp(16px, 2vw, 28px);
}

/* The incident report: a paper form on the mud. */
.incident {
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 0 rgb(0 0 0 / 0.25);
  transform: rotate(-0.6deg);
}

.incident legend {
  float: left;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* clear: the floated legend would otherwise squeeze the first row aside. */
.incident label {
  display: flex;
  clear: both;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
}

/* Paper checkboxes: empty box, ink tick when checked. */
.incident input[type="checkbox"] {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff8ee center / 80% no-repeat;
  appearance: none;
  cursor: pointer;
}

.incident input[type="checkbox"]:checked {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23f1ece2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.incident label.incident-note {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.4rem;
  cursor: auto;
}

.incident textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff8ee;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.incident :focus-visible {
  outline-color: var(--ink);
}

/* Reset the large 404-style paragraph for the form's own text. */
.lost .leave-form p {
  max-width: none;
  margin: 0.75rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.lost .leave-form .incident-fine {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-style: italic;
}

.lost .leave-form .leave-optional {
  margin-top: 1rem;
  color: var(--mud-soft);
  font-size: 0.9375rem;
}

.leave-actions {
  display: grid;
  gap: 1.25rem 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .leave-actions {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.leave-choice {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.leave-choice .join {
  justify-content: center;
  width: 100%;
}

.leave-big {
  min-height: 52px;
  width: 100%;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--mud-text);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--mud-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.leave-big:hover {
  background: rgb(239 230 214 / 0.08);
}

.lost .leave-form .leave-already,
[data-preference="big"] .leave-choice--big {
  display: none;
}

.lost.leave[data-preference="big"] .leave-form .leave-already {
  display: block;
  align-self: center;
  margin: 0;
  color: var(--mud-soft);
}

.leave-art {
  width: min(100%, 640px);
}

/* ---------- Privacy ---------- */

.legal .wrap {
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px);
}

.legal h1 {
  max-width: 16ch;
}

.legal-body {
  max-width: 68ch;
  margin-top: clamp(24px, 3vw, 40px);
}

.legal-body h2 {
  margin: 2.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mud-rule);
  font-size: 1.25rem;
  font-weight: 850;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: var(--mud-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.legal-body p {
  margin: 0.75rem 0 0;
}

.legal-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 0.35rem;
}

.legal-body strong,
.legal-body a {
  color: var(--mud-text);
}

.legal-updated {
  color: var(--mud-soft);
  font-size: 0.9375rem;
}

/* ---------- 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;
}

/* MuckList result pages share the 404 layout with a smaller headline. */
.lost--list h1 {
  max-width: 16ch;
  font-size: var(--display-size);
  line-height: 0.95;
  text-transform: uppercase;
}

.lost--list form {
  margin-top: 1.5rem;
}

/* Joined page: the success art is the headline. */
.lost--art .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lost-art {
  width: min(100%, 720px);
}

.lost--art .back {
  margin-top: 1rem;
}

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