:root {
  color-scheme: dark;
  --ink: #f5f0df;
  --muted: #b8b09a;
  --gold: #d8b76a;
  --void: #090a0e;
  --panel: #12141b;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -20%, #2b2b34 0, var(--void) 42rem);
  color: var(--ink);
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

header,
main,
footer {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  min-height: 70vh;
  padding-block: clamp(3rem, 10vw, 8rem);
}

.wordmark,
h1,
h2 {
  font-family: ui-serif, Georgia, serif;
  letter-spacing: 0.02em;
}

.wordmark {
  color: var(--ink);
  font-size: 1.2rem;
  text-decoration: none;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1.02;
}

h2 {
  margin-top: 2.5rem;
}

p,
li {
  max-width: 68ch;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
}

.card {
  max-width: 44rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #15120b;
  font-weight: 700;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

code {
  overflow-wrap: anywhere;
  color: var(--gold);
}

footer {
  padding-block: 2rem;
  border-top: 1px solid #2a2b31;
  color: var(--muted);
}

@media (max-width: 42rem) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
