:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --link: #0645ad;
  --link-visited: #0b0080;
  --accent: #111111;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #eaeaea;
    --muted: #a8a8a8;
    --link: #7aa7ff;
    --link-visited: #b095ff;
    --accent: #eaeaea;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding-right: 120px;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--maxw);
  margin: 40px auto 80px;
  padding: 0 18px;
}

header {
  margin-bottom: 28px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 14px;
}

.advice-list {
  margin: 0;
  padding-left: 1.25em;
}

.advice-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.news-list {
  margin: 0;
  padding-left: 1.25em;
}

.news-list li {
  margin-bottom: 14px;
  padding-left: 4px;
}

.news-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

.site-nav {
  position: fixed;
  z-index: 10;
  top: 40px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 15px;
  line-height: 1.5;
}

.site-nav a,
.site-nav a:visited {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.hr {
  height: 1px;
  background: rgba(127, 127, 127, 0.25);
  border: 0;
  margin: 24px 0;
}

.cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta a {
  border: 1px solid currentColor;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--accent);
}

.cta a:hover {
  background: rgba(0, 0, 0, 0.04);
}

footer {
  margin-top: 40px;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .cta a:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 640px) {
  body {
    padding-right: 0;
  }

  .site-nav {
    top: 18px;
    right: 18px;
  }

  main {
    margin-top: 140px;
  }
}
