:root {
  color-scheme: light;
  --background: #fffdf9;
  --surface: #f5f1ea;
  --text: #1c1b1a;
  --muted: #5b5854;
  --primary: #7a4b32;
  --border: #e4ddd1;
  --danger: #8a2d25;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--primary); }

header, main, footer {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

main { padding: 72px 0 56px; }

h1, h2 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 { max-width: 650px; margin: 0 0 24px; font-size: clamp(42px, 8vw, 68px); }
h2 { margin-top: 48px; font-size: 30px; }
h3 { margin-top: 32px; font-size: 22px; }
p, li { max-width: 68ch; }

.lede { color: var(--muted); font-size: 22px; }
.eyebrow { color: var(--primary); font-size: 15px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.card {
  margin-top: 42px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.button {
  display: inline-block;
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.code {
  overflow-wrap: anywhere;
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: .14em;
}

.draft {
  padding: 16px 18px;
  border: 2px solid var(--danger);
  border-radius: 12px;
  color: var(--danger);
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 520px) {
  header { min-height: 72px; }
  main { padding-top: 48px; }
  .card { padding: 22px; }
}
