@charset "utf-8";

:root {
  color-scheme: dark;
  --canvas: #080d1a;
  --surface: #101829;
  --raised: #172136;
  --ink: #f5f6f9;
  --soft: #aab4c8;
  --line: #2a3650;
  --gold: #e7b252;
  --gold-dark: #bd7d18;
  --on-gold: #1a1102;
  --max: 72rem;
  --reading: 48rem;
  --serif:
    'Iowan Old Style', 'Palatino Linotype', Palatino, Baskerville, Georgia,
    serif;
  --sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f4f2ed;
    --surface: #fffdf9;
    --raised: #ffffff;
    --ink: #16191f;
    --soft: #515966;
    --line: #d9d5cb;
    --gold: #a96908;
    --gold-dark: #875204;
    --on-gold: #ffffff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 84% -8%,
      rgb(231 178 82 / 12%),
      transparent 34rem
    ),
    var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.72 var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--gold) 75%, transparent);
  text-underline-offset: 0.22em;
}

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

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

.skip {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  transform: translateY(-120%);
}

.skip:focus {
  transform: translateY(0);
}

body > header,
body > main,
body > footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.brand svg {
  filter: drop-shadow(0 0 8px rgb(231 178 82 / 35%));
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.35rem;
  color: var(--soft);
  font-size: 0.88rem;
}

body > main {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(12rem, 1fr);
  gap: 2rem 5rem;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.intro,
.content {
  grid-column: 1;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin: 3.5rem 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1rem;
}

p,
li {
  color: var(--soft);
}

.lead {
  max-width: 42rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.summary strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary li {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.notice,
.card {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.notice {
  border-left: 3px solid var(--gold);
}

.notice strong,
.card strong {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 2.5rem;
  padding-left: 3.4rem;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font: 700 0.72rem/1 var(--sans);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--gold-dark);
  color: var(--on-gold);
}

body > footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.6rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

body > footer p {
  margin: 0;
}

@media (max-width: 800px) {
  body > main {
    grid-template-columns: 1fr;
  }

  .summary {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 620px) {
  body > header,
  body > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body > header nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }
}

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