:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6f78;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --line: #d8d2c5;
  --red: #c7342e;
  --yellow: #f3b33f;
  --green: #3b8365;
  --river: #7fa7b5;
  --shadow: 0 18px 60px rgb(23 32 38 / 14%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(247 244 238 / 94%), rgb(230 238 237 / 98%)),
    linear-gradient(135deg, rgb(199 52 46 / 10%), transparent 28rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.hero {
  min-height: clamp(500px, 68vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe9e9;
  box-shadow: var(--shadow);
}

.visual {
  position: absolute;
  inset: 0;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 18 23 / 84%), rgb(10 18 23 / 48%) 44%, rgb(10 18 23 / 12%) 74%),
    linear-gradient(180deg, rgb(10 18 23 / 5%), rgb(10 18 23 / 34%));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 64px);
  color: #fffdf7;
}

.kicker,
.card-label,
.counter-heading p,
.target {
  margin: 0;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  color: #ffcf71;
  text-shadow: 0 1px 14px rgb(0 0 0 / 36%);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  margin-top: 12px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  max-width: 9ch;
}

.intro {
  max-width: 56ch;
  margin: 22px 0 0;
  color: rgb(255 253 247 / 88%);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.counter-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: stretch;
}

.counter-heading,
.metric,
.countdown-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgb(23 32 38 / 8%);
}

.counter-heading {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.counter-heading p,
.card-label,
.target {
  color: var(--muted);
}

.counter-heading strong {
  font-size: 1.9rem;
}

.elapsed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.metric span {
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.countdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer a,
.home-link,
.legal-content a {
  color: inherit;
  text-underline-offset: 4px;
}

.countdown-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  border-top: 6px solid var(--red);
}

.countdown-card.accent {
  border-top-color: var(--green);
}

.countdown-card h2 {
  margin-top: 5px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid span {
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-grid strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.legal-page {
  width: min(820px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.home-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 800;
}

.legal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 54px);
}

.legal-content h1 {
  max-width: none;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.legal-content h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.legal-content p {
  margin: 0 0 16px;
  color: #33424a;
  font-size: 1.02rem;
  line-height: 1.68;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 520px);
    padding: 10px 0 24px;
  }

  .hero {
    min-height: 540px;
  }

  .visual img {
    object-position: 45% 50%;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgb(10 18 23 / 16%), rgb(10 18 23 / 86%)),
      linear-gradient(90deg, rgb(10 18 23 / 62%), transparent 68%);
  }

  .hero-copy {
    padding: 28px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.9rem);
  }

  .counter-panel,
  .countdowns {
    grid-template-columns: 1fr;
  }

  .elapsed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
