@font-face {
  font-family: MLDisplay;
  src: url("../media/display.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #301833;
  --paper: #fff5e8;
  --card: #fffaf3;
  --accent: #ff7448;
  --line: #ddcbbf;
  --green: #185e47;
  font:
    100%/1.55 Arial,
    Helvetica,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body,
figure,
p,
h1,
h2,
h3 {
  margin: 0;
}
body {
  min-width: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #9a3c20;
  outline-offset: 4px;
}
header {
  border-bottom: 1px solid var(--line);
}
.top,
main {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4.5rem);
}
.top {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top > a:first-child {
  align-self: flex-start;
}
.top img {
  display: block;
  width: 165px;
  height: auto;
}
.top > a:last-child {
  font-weight: bold;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  z-index: 1;
}
main {
  padding-top: clamp(1.75rem, 4vw, 3.75rem);
  padding-bottom: 4rem;
}
h1,
h2,
h3 {
  line-height: 1.07;
  text-wrap: balance;
}
h1,
h2,
.stage-no b,
.counter strong {
  font-family: MLDisplay, Rockwell, Georgia, serif;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}
h3 {
  font-size: 1.25rem;
}
section,
details,
article {
  margin-top: 1.6rem;
}
p,
dl,
ul {
  margin-block: 0.6rem;
}
.eyebrow {
  font-weight: 700;
  margin: 0 0 0.55rem;
}
.welcome,
.hero,
.family {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}
.welcome .choice {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.choice h2 {
  font-size: 1.65rem;
}
.choice p {
  margin: 0.4rem 0 0.9rem;
}
.campaign {
  min-width: 0;
}
.campaign img {
  width: 100%;
  display: block;
}
.campaign.friends {
  align-self: stretch;
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px;
}
.campaign.friends img {
  height: 100%;
  object-fit: cover;
  object-position: 64% 48%;
}
.campaign.style {
  background: #f5e2cd;
  border-radius: 12px;
  padding: 0.55rem;
  color: var(--ink);
  text-align: center;
}
.campaign.style img {
  height: clamp(170px, 22vw, 250px);
  object-fit: contain;
}
.campaign figcaption {
  font-size: 0.85rem;
  font-weight: bold;
}
.action {
  min-height: 44px;
  padding: 0.64rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}
.action.primary {
  background: var(--ink);
  color: var(--paper);
}
.action.soft {
  background: var(--card);
  border-color: var(--ink);
  color: var(--ink);
}
.action.text {
  background: transparent;
  text-decoration: underline;
  color: var(--ink);
}
.action:hover {
  filter: brightness(0.94);
}
form {
  margin: 0;
}
.heading,
.runs {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.runs {
  justify-content: flex-start;
}
.crumb {
  margin-bottom: 1rem;
}
.hero {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 2.3rem);
  margin-block: 1.4rem;
  outline: 1px dashed #bd9294;
  outline-offset: -8px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.72fr);
}
.hero .action {
  background: var(--accent);
  color: var(--ink);
  margin-top: 0.55rem;
}
.hero .campaign {
  margin: 0.35rem;
}
.stages,
.projects,
.register,
.wearers {
  list-style: none;
  padding: 0;
}
.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}
.stages a,
.projects a {
  display: flex;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  text-decoration: none;
  background: var(--card);
  align-items: center;
  min-height: 65px;
}
.stages strong,
.stages small {
  display: block;
}
.stages small,
.register small,
.unmatched small,
.wearers span {
  font-size: 0.9rem;
}
.stage-no {
  position: relative;
  color: var(--ink);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.hood {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex-shrink: 0;
}
.stage-no .hood {
  width: 40px;
  height: 40px;
  --thread: transparent;
}
.stage-no b {
  position: absolute;
  top: 36%;
  line-height: 1;
  color: var(--paper);
  font-size: 0.8rem;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}
.counter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
}
.counter strong {
  font-size: 1.8rem;
  line-height: 1;
}
.counter:nth-child(1) .hood,
.done {
  color: var(--green);
}
.counter:nth-child(2) .hood,
.waiting {
  color: #9b4129;
}
.counter span {
  font-weight: 700;
}
.neutral {
  color: #51414f;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}
.status .hood {
  width: 23px;
  height: 23px;
}
.filter {
  display: flex;
  gap: 0.9rem;
  align-items: end;
  flex-wrap: wrap;
  margin: 1.3rem 0;
}
.filter label {
  flex: 1;
  min-width: 0;
}
label {
  display: grid;
  gap: 0.3rem;
  font-weight: bold;
}
input,
select {
  background: var(--card);
  border: 1px solid #987f91;
  border-radius: 5px;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  width: 100%;
}
.register li,
.unmatched,
.wearers li,
dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.register small,
.unmatched small {
  grid-column: 1/-1;
}
.unmatched form {
  grid-column: 1/-1;
  display: flex;
  gap: 0.6rem;
  align-items: end;
}
.family {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.family dt,
.wearers span {
  font-weight: normal;
}
.family dd {
  margin: 0;
  font-weight: bold;
}
.projects {
  display: grid;
  gap: 0.6rem;
}
.projects a span:last-child {
  margin-left: auto;
  text-decoration: underline;
}
.projects a span:first-of-type {
  font-weight: bold;
}
.register strong,
dd,
code,
.wearers strong {
  overflow-wrap: anywhere;
}
details summary {
  cursor: pointer;
  font-weight: bold;
  min-height: 44px;
}
section > form,
label + .action {
  margin-top: 0.7rem;
}
@media (max-width: 680px) {
  .welcome,
  .family {
    grid-template-columns: 1fr;
  }
  .welcome .friends {
    min-height: 0;
    order: -1;
  }
  .campaign.friends img {
    height: auto;
    aspect-ratio: 2/1;
    object-position: 78% 52%;
  }
  .top {
    height: 58px;
  }
  .top img {
    width: 143px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(74px, 0.65fr);
    gap: 0.3rem;
  }
  .hero .campaign img {
    height: 115px;
  }
  .hero figcaption {
    font-size: 0.75rem;
  }
  .stages {
    grid-template-columns: 1fr;
  }
  .counts {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .counter {
    padding: 0.45rem 0.75rem;
  }
  .family .campaign {
    grid-row: 1;
  }
  .family .campaign img {
    height: 145px;
  }
  .filter {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filter .action {
    justify-self: start;
  }
  h1 {
    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }
  .heading > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
