:root {
  --bg: #0c1424;
  --bg-raise: #141d31;
  --card: #1a2740;
  --ink: #f4f0e6;
  --muted: #d2cbbd;
  --gold: #e3b15a;
  --gold-ink: #241806;
  --line: #31405f;
  --focus: #f0c36a;
  --max: 72rem;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  border-radius: 0.4rem;
  font-weight: 700;
}

.skip:focus { top: 1rem; }

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

a:hover { color: #f3d7a0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.brand img,
.brand svg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
}

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

.nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0.4rem;
  min-height: 2.75rem;
}

.nav a[aria-current="page"] {
  color: var(--gold-ink);
  background: var(--gold);
  font-weight: 700;
}

.nav a:hover {
  background: var(--bg-raise);
  color: var(--ink);
}

.nav a[aria-current="page"]:hover { color: var(--gold-ink); }

main { padding: 2.5rem 0 4rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 0.75rem; }

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4rem 0 0.7rem; }

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

.lede, .prose p, .prose li { color: var(--muted); }

.lede { font-size: 1.2rem; max-width: 42rem; }

.gold-rule {
  width: 4.5rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 1.25rem 0 1.5rem;
}

.hero-grid, .card-grid, .split {
  display: grid;
  gap: 1rem;
}

.hero-grid { grid-template-columns: 1.4fr 0.8fr; align-items: center; }

.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }

.card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
}

.card h2, .panel h2 { margin-top: 0; }

.app-card img {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}

.button, button.button {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 0.55rem;
  min-height: 2.75rem;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.prose { max-width: 46rem; }

.prose ul, .prose ol { padding-left: 1.2rem; }

.prose li + li { margin-top: 0.35rem; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 0.9rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

dl.data { margin: 0; }

dl.data div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

dl.data dt { font-weight: 700; color: var(--ink); }

dl.data dd { margin: 0.25rem 0 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer a { color: var(--ink); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

address { font-style: normal; }

@media (max-width: 800px) {
  .hero-grid, .card-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}

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

@media print {
  .site-header, .skip, .site-footer .navish, .actions { display: none; }
  body { background: #fff; color: #111; }
  a { color: #111; }
  .card, .panel { border-color: #ccc; background: #fff; }
}
