:root {
  --paper: #efe8dc;
  --ink: #1a1612;
  --muted: #5c5348;
  --rule: #cfc4b2;
  --stamp: #9c2b22;
  --day: #f7f3ea;
  --night: #232833;
  --night-text: #f3ecdf;
  --focus: #9c2b22;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:hover {
  color: var(--stamp);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  padding-top: 1.25rem;
  border-bottom: 1px solid var(--ink);
}

.mast-top,
.nav .wrap,
.facts {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.independent,
.kicker,
.section-index,
.panel-kicker,
.facts dt,
caption {
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand,
.independent {
  margin: 0;
  font-size: 0.78rem;
}

.independent {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem 0 1.5rem;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--stamp);
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.dek {
  max-width: 42rem;
  font-size: 1.25rem;
}

.stamp {
  width: 7.25rem;
  height: 7.25rem;
  margin: 0;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.facts {
  margin: 0 auto;
  padding: 0 0 1.25rem;
  border-top: 1px solid var(--ink);
}

.facts {
  flex-wrap: wrap;
}

.facts div {
  flex: 1 1 12.5rem;
  min-width: 11rem;
  padding: 0.9rem 1rem 0 0;
}

.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
}

.countdown {
  margin: 0 auto;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #efe8dc;
  border-bottom: 1px solid var(--ink);
}

.nav .wrap {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  white-space: nowrap;
}

.section {
  padding: 3.25rem 0 0.5rem;
  scroll-margin-top: 6.5rem;
}

.section-index {
  margin: 0 0 0.35rem;
  color: var(--stamp);
  font-size: 0.75rem;
}

h2 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-top: 2px solid var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

caption {
  caption-side: bottom;
  padding-top: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
}

th,
td {
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout,
.checker {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: #e7dfd0;
}

.callout h3,
.checker label {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout p,
.faq dd {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.panel {
  padding: 1.25rem 1.25rem 0.5rem;
}

.panel ul {
  padding-left: 1.1rem;
}

.day {
  background: var(--day);
  border: 1px solid var(--ink);
}

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

.panel-kicker {
  margin: 0;
  font-size: 0.75rem;
}

.night .panel-kicker {
  color: #e1b15a;
}

.day .panel-kicker {
  color: var(--stamp);
}

.checker-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

input,
button {
  font: inherit;
}

input {
  width: min(16rem, 100%);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

button {
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

button:hover {
  background: var(--stamp);
  border-color: var(--stamp);
}

.result {
  min-height: 3.2rem;
  margin: 1rem 0 0;
}

.steps,
.reasons {
  padding-left: 1.2rem;
}

.steps li,
.reasons li {
  margin: 0.7rem 0;
}

.faq dt {
  margin-top: 1.1rem;
  font-size: 1.25rem;
}

.footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.98rem;
}

.footer h2 {
  margin-top: 1.5rem;
  max-width: none;
  color: var(--ink);
  font-size: 1.4rem;
}

@media (max-width: 800px) {
  .hero,
  .split,
  .mast-top,
  .facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stamp {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 1rem;
  }

  h1 {
    max-width: none;
  }

  .checker-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
