:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --border: #e2e2e2;
  --accent: #0057a8;
  --notice-bg: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ececec;
    --muted: #a8a8a8;
    --border: #2a2a2a;
    --accent: #7ab8e6;
    --notice-bg: #1a1a1a;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

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

.site-header,
.site-footer,
main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding-inline: 20px;
}

.site-header {
  padding: 24px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.brand-mark {
  display: none;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

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

.metadata {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin: 20px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--notice-bg);
}

.hero {
  margin-bottom: 32px;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
}

.cards {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}

.card {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.card:last-child {
  border-bottom: 1px solid var(--border);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.button {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.site-footer {
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
