/* One stylesheet, shared by index.html and 404.html. No fonts, no frameworks,
   nothing loaded from a third party — a page whose only job is to be trusted
   should not ask the visitor's browser to trust anyone else. */

:root {
  color-scheme: light dark;

  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e6e2dc;
  --text: #1d1c1a;
  --muted: #6b6862;
  --link: #1d5fbf;
  --notice-bg: #fdf6e7;
  --notice-border: #e0bf6a;
  --notice-text: #4a3708;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1e1e23;
    --border: #33333b;
    --text: #ecebe8;
    --muted: #a09e98;
    --link: #83b3ff;
    --notice-bg: #2a2317;
    --notice-border: #7a6427;
    --notice-text: #f3e2b8;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 3rem 1.5rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.lede strong {
  color: var(--text);
}

/* The list of places the visitor might actually have wanted. */
.places {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.places li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.places a {
  font-weight: 600;
  font-size: 1.05rem;
}

.places span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.places .primary a {
  font-size: 1.25rem;
}

.notice {
  margin: 2.5rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  color: var(--notice-text);
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice a {
  color: inherit;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.5rem;
}

@media (prefers-contrast: more) {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #333333;
    --border: #000000;
    --link: #0033cc;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #000000;
      --text: #ffffff;
      --muted: #dddddd;
      --border: #ffffff;
      --link: #99c2ff;
    }
  }
}
