:root {
  color-scheme: light dark;
  --bg: #f4f6fa;
  --surface: #fbfcfe;
  --text: #151a24;
  --muted: #667085;
  --line: #dce2ec;
  --accent: #2f64d6;
  --on-accent: #f8faff;
  --accent-soft: #eaf0ff;
  --shadow: 0 20px 60px rgba(37, 62, 109, .1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151d;
    --surface: #171c25;
    --text: #edf1f8;
    --muted: #9ba6b7;
    --line: #293140;
    --accent: #77a0ff;
    --on-accent: #101724;
    --accent-soft: #1c2945;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header p,
footer {
  color: var(--muted);
  font-size: 13px;
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.intro {
  padding: 88px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.lede {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.spaces {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.space {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 112px;
  padding: 22px 26px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms ease;
}

.space:last-child { border-bottom: 0; }
.space:hover { background: var(--accent-soft); }
.space:active { transform: translateY(1px); }
.space:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.code {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.copy { display: grid; gap: 7px; }
.copy strong { font-size: 17px; }
.copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }

.action {
  min-width: 92px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

footer {
  margin-top: 22px;
  padding: 0 4px;
}

@media (max-width: 640px) {
  main { width: min(100% - 24px, 980px); padding-top: 16px; }
  header p { display: none; }
  .intro { padding: 64px 4px 32px; }
  h1 { font-size: 46px; }
  .space { grid-template-columns: 54px minmax(0, 1fr); padding: 20px 18px; }
  .action { grid-column: 2; margin-top: 16px; justify-self: start; }
  footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .space { transition: none; }
}
