:root {
  color-scheme: light dark;
  --background: #eef7f6;
  --surface: #ffffff;
  --text: #173438;
  --muted: #526d71;
  --accent: #0d7377;
  --border: #c9dcda;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101718;
    --surface: #172224;
    --text: #e4eeee;
    --muted: #a6bcbc;
    --accent: #73d0cc;
    --border: #34494a;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 45%),
    var(--background);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

header,
main,
footer {
  width: min(100% - 40px, 760px);
  margin-inline: auto;
}

header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
}

main {
  padding: 24px 0 48px;
}

footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

h1,
h2,
nav,
.updated {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.05;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -8px 0 20px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.back-link span {
  font-size: 24px;
  line-height: 1;
}

h2 {
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

p,
ul {
  margin: 0 0 16px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 15px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

@media (max-width: 520px) {
  header,
  main,
  footer {
    width: min(100% - 28px, 760px);
  }

  header {
    padding-top: 32px;
  }
}
