:root {
  color-scheme: light dark;
  --ink: #12202b;
  --muted: #526574;
  --paper: #f5f8fa;
  --card: #ffffff;
  --line: #dce5ea;
  --blue: #0057b8;
  --teal: #00796b;
  --night: #0c1720;
  --night-card: #132530;
  --night-line: #29404c;
  --night-muted: #b8c6cf;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--card);
  padding: .65rem .9rem;
  border-radius: .6rem;
}

header {
  background: linear-gradient(135deg, #071a28 0%, #0c3750 66%, #00584e 100%);
  color: white;
  border-bottom: 4px solid #2bd3bd;
}

.nav, main, footer { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: white;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -.01em;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #75f3e2;
  border-radius: .7rem .7rem .7rem .2rem;
  font-size: .95rem;
}

nav ul { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
nav a { color: #eafaff; padding: .5rem .7rem; border-radius: .55rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { background: rgba(255,255,255,.13); }

main { padding-block: clamp(2.2rem, 6vw, 5.5rem); }

.hero { max-width: 55rem; }
.eyebrow { color: #007060; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.17; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.8rem); margin: .35rem 0 1rem; max-width: 15ch; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); margin-top: 2.8rem; }
h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 52rem; }
.updated { color: var(--muted); font-size: .9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.card, .notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(21, 45, 61, .06);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card a { font-weight: 700; }
.notice { border-left: 5px solid var(--teal); margin: 1.6rem 0; }
.notice strong { display: block; margin-bottom: .3rem; }

.legal { max-width: 51rem; }
.legal p, .legal li { color: #263946; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.legal th, .legal td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: #edf3f6; }
.legal code { font-size: .9em; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border-radius: .7rem;
  background: var(--blue);
  color: white;
  font-weight: 720;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--blue); border: 1px solid var(--line); }

footer { padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 48rem) {
  .nav { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  nav a { display: inline-block; padding-left: 0; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { position: absolute; left: -9999px; }
  .legal td { border-top: 0; }
}

@media (prefers-color-scheme: dark) {
  body { background: var(--night); color: #f2f7fa; }
  .card, .notice { background: var(--night-card); border-color: var(--night-line); box-shadow: none; }
  .lede, .updated, .card p, footer { color: var(--night-muted); }
  .legal p, .legal li { color: #dce7ed; }
  .legal th, .legal td { border-color: var(--night-line); }
  .legal th { background: #1b3442; }
  .eyebrow, a { color: #59d7c4; }
  .button { color: white; background: #0877d7; }
  .button.secondary { color: #79dfee; border-color: var(--night-line); }
  footer { border-color: var(--night-line); }
}

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