:root {
  color-scheme: dark;
  --canvas: #071a18;
  --surface: #0e2d29;
  --surface-soft: #153a35;
  --text: #f5fbf9;
  --muted: #b8cbc7;
  --teal: #4fd1b5;
  --amber: #f4b860;
  --rule: #28524b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

body {
  margin: 0;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  left: 1rem;
  position: absolute;
  top: -5rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  margin: 0 auto;
  max-width: 54rem;
  padding: 2rem 1.25rem 5rem;
}

header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
}

.mark {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  gap: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-mark {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

h1 {
  font-family: ui-rounded, "SF Pro Rounded", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 1.25rem 0 1rem;
}

.summary {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  max-width: 44rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.5rem;
}

nav a[aria-current="page"] {
  color: var(--amber);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.meta {
  background: var(--surface);
  border-left: 4px solid var(--teal);
  margin: 0 0 2.5rem;
  padding: 1rem 1.2rem;
}

section {
  border-top: 1px solid var(--rule);
  padding: 1.7rem 0 0.7rem 1.1rem;
  position: relative;
}

section::before {
  background: var(--amber);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 2.3rem;
  width: 0.45rem;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
}

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

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

.redirect-card {
  background: var(--surface);
  border-top: 4px solid var(--teal);
  margin-top: clamp(1.5rem, 8vh, 5rem);
  padding: 2rem;
}

footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

@media (max-width: 36rem) {
  .shell {
    padding-top: 1.25rem;
  }

  section {
    padding-left: 0.85rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 140ms ease;
  }
}
