:root {
  --brand: #0038ba;
  --ink: #fff;
  --ink-muted: #8cbfff;
  --ink-faint: #5a8cff;
  --line: rgba(0, 112, 255, 0.68);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.45' intercept='-.225'/%3E%3CfeFuncG type='linear' slope='1.45' intercept='-.225'/%3E%3CfeFuncB type='linear' slope='1.45' intercept='-.225'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  --gutter: clamp(20px, 4vw, 40px);
  --sheet-pad: clamp(20px, 3vw, 36px);
  --mark: 24px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--brand);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-inline: var(--gutter);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background-color: var(--brand);
  background-image:
    linear-gradient(to bottom, var(--brand) 0%, rgba(0, 56, 186, 0.9) 28%, rgba(0, 56, 186, 0.38) 62%, transparent 100%),
    linear-gradient(to top, var(--brand) 0%, rgba(0, 56, 186, 0.9) 28%, rgba(0, 56, 186, 0.38) 62%, transparent 100%),
    var(--texture);
  background-position: 0 0, 0 100%, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% clamp(160px, 16vw, 288px), 100% clamp(160px, 16vw, 288px), 180px 180px;
  background-blend-mode: normal, normal, soft-light;
  background-attachment: scroll, scroll, fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.prose {
  color: var(--ink-muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:hover {
  text-decoration-color: var(--ink);
}

.prose a.pill {
  color: var(--brand);
  text-decoration: none;
}

.pill {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 15px;
  font-weight: 530;
  line-height: 1;
  white-space: nowrap;
  transition: filter 150ms ease-out, transform 150ms ease-out;
}

.pill:hover {
  filter: brightness(0.94);
}

.pill:active {
  transform: scale(0.98);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
}

.topbar .brand {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.topbar .sub {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 15px;
}

.topbar .sub:hover {
  color: var(--ink);
}

.marked {
  position: relative;
}

.marked::before,
.marked::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.marked::before {
  inset: calc(-1 * var(--mark)) 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.marked::after {
  inset: 0 calc(-1 * var(--mark));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sheet {
  max-width: 1200px;
  margin: 40px auto 96px;
  isolation: isolate;
}

.sheet > :last-child {
  border-bottom: 0;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) var(--sheet-pad);
  border-bottom: 1px solid var(--line);
}

.sheet-head h1,
.sheet-count {
  margin: 0;
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sheet-head h1 {
  text-wrap: balance;
}

.sheet-count {
  flex-shrink: 0;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.sheet-brief,
.sheet-section {
  padding: 28px var(--sheet-pad) 32px;
  border-bottom: 1px solid var(--line);
}

.sheet-brief h2,
.sheet-section h2,
.sheet-label h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sheet-brief p,
.sheet-section ul {
  max-width: 62ch;
  color: var(--ink-muted);
}

.sheet-section ul {
  margin: 0;
  padding-left: 1.2em;
}

.sheet-section li {
  margin-bottom: 8px;
}

.sheet-section li::marker {
  color: var(--ink-faint);
}

.sheet-section ul + p {
  margin-top: 24px;
}

.done {
  color: var(--ink-faint);
}

.done s {
  text-decoration-color: var(--ink-muted);
}

.sheet-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--sheet-pad);
  border-bottom: 1px solid var(--line);
}

.sheet-label h2 {
  margin: 0;
}

.sheet-label span {
  color: var(--ink-muted);
  font-size: 15px;
}

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--sheet-pad);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 150ms ease;
}

.rows li:last-child .row {
  border-bottom: 0;
}

.row:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-rank,
.row-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.row-rank {
  flex-shrink: 0;
  width: 2.4em;
  letter-spacing: -0.02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.row.winner .row-rank {
  color: var(--ink);
}

.row-title {
  display: block;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.row-meta {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 15px;
}

.row-aside {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.row-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--ink-muted);
  transition: background-color 150ms ease, color 150ms ease;
}

.row:hover .row-go {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.row-go svg {
  display: block;
  width: 20px;
  height: 20px;
}

.article {
  max-width: 620px;
  margin: 0 auto;
}

.article h1 {
  margin: 96px 0 8px;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.article .dateline {
  margin-bottom: 40px;
  color: var(--ink-faint);
  font-size: 15px;
}

.article h2 {
  margin: 48px 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.article p {
  margin-bottom: 1.15em;
}

.article .sign-off {
  margin-top: 48px;
  color: var(--ink-faint);
}

.callout {
  --mark: 12px;
  margin: 40px 0 48px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
}

.callout::before {
  inset: calc(-1 * var(--mark)) -1px;
}

.callout::after {
  inset: -1px calc(-1 * var(--mark));
}

.callout .kicker {
  margin: 0 0 6px;
  color: var(--ink-faint);
  font-size: 14px;
}

.callout .line {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 530;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-wrap: pretty;
}

.callout .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.callout .more {
  color: var(--ink-muted);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 0.18em;
}

.callout .more:hover {
  color: var(--ink);
}

.form {
  margin-top: 32px;
}

.form label {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.form .hint {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 400;
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--ink-faint);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form .turnstile {
  margin-top: 28px;
}

.form .pill {
  margin-top: 28px;
}

.flash {
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 150, 150, 0.6);
  border-radius: 6px;
  color: #ffd0d0;
  font-size: 15px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  text-align: center;
}

.countdown .cell,
.stat {
  padding: 18px 8px;
  border: 1px solid var(--line);
}

.countdown .num,
.stat .num {
  color: var(--ink);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown .label,
.stat .label {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 14px;
}

.stat {
  margin-top: 24px;
  padding: 20px 24px;
}

.article .after {
  margin-top: 32px;
}

@media (max-width: 720px) {
  .sheet {
    --mark: 0px;
    margin-top: 16px;
  }

  .sheet-head {
    flex-direction: column;
    gap: 8px;
  }

  .sheet-count {
    order: -1;
    font-size: 28px;
  }

  .row {
    gap: 14px;
    padding-block: 20px;
  }

  .row-rank {
    width: 1.5em;
  }

  .row-go {
    width: 28px;
    height: 28px;
  }

  .row-go svg {
    width: 18px;
    height: 18px;
  }

  .topbar {
    padding: 18px 0;
  }

  .topbar .brand {
    font-size: 20px;
  }
}
