:root {
  --void: #04051a;
  --sky-high: #090b2a;
  --sky-low: #1e1748;
  --horizon: #33204f;
  --text: #f5f1fb;
  --text-2: #bcb8d6;
  --muted: #8785ab;
  --hairline: rgba(255, 255, 255, 0.1);
  --surface: rgba(255, 255, 255, 0.05);
  --dusk: #ffb56b;
  --sleep: #a9b6ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--void); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% 100%, var(--horizon) 0%, transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--sky-high) 40%, var(--sky-low) 100%);
  background-attachment: fixed;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dusk); text-underline-offset: 3px; }
a:hover { color: #ffd2a3; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--text-2); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(34px, 7vw, 52px); margin: 56px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 26px; margin: 44px 0 10px; }
h3 { font-size: 19px; margin: 26px 0 6px; font-family: inherit; font-weight: 600; }
p, li { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
.lede { font-size: 19px; color: var(--text-2); max-width: 36em; }
.meta { color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 18px 22px; margin: 22px 0;
}
.card p:first-child, .card h3:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-2); }

.hero { padding: 40px 0 10px; text-align: center; }
.hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 40px rgba(255, 181, 107, 0.25); }
.hero h1 { margin-top: 24px; }
.hero .lede { margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 40px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dusk); margin-right: 8px; vertical-align: middle; }
.dot.sleep { background: var(--sleep); }

footer {
  margin-top: 72px; padding: 26px 0 40px; border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: 14px;
}
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 480px) {
  nav a { margin-left: 12px; font-size: 14px; }
  .brand span { display: none; }
}
