@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-italic.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --ink: #151512;
  --muted: #4f564d;
  --quiet: #757b70;
  --line: #d9d4c8;
  --link: #235f73;
  --link-visited: #235f73;
  --link-hover: #963f2c;
  --link-underline: #9ab5bd;
  --highlight: #fff0a6;
  --tagline: #292d29;
  --control-bg: rgba(255, 255, 255, 0.34);
  --control-bg-hover: rgba(255, 255, 255, 0.58);
  --font-body: "Source Serif 4", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-ui: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141512;
    --ink: #f0eee5;
    --muted: #bbb8aa;
    --quiet: #91978c;
    --line: #37392f;
    --link: #8dc9d8;
    --link-visited: #8dc9d8;
    --link-hover: #f2a58f;
    --link-underline: #4f808b;
    --highlight: #5b4a1f;
    --tagline: #e0dccf;
    --control-bg: rgba(255, 255, 255, 0.06);
    --control-bg-hover: rgba(255, 255, 255, 0.12);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141512;
  --ink: #f0eee5;
  --muted: #bbb8aa;
  --quiet: #91978c;
  --line: #37392f;
  --link: #8dc9d8;
  --link-visited: #8dc9d8;
  --link-hover: #f2a58f;
  --link-underline: #4f808b;
  --highlight: #5b4a1f;
  --tagline: #e0dccf;
  --control-bg: rgba(255, 255, 255, 0.06);
  --control-bg-hover: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  font-kerning: normal;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: color 180ms ease, background-color 180ms ease;
}

a {
  color: var(--link);
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.16em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

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

.site-shell {
  width: min(100% - 36px, 780px);
  margin: 0 auto;
  padding: 36px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  line-height: 1.35;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: auto;
  padding: 0;
  color: var(--link);
  background: var(--control-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--link-hover);
  background: var(--control-bg-hover);
  border-color: var(--link-underline);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle__moon {
  opacity: 0;
  transform: rotate(28deg) scale(0.72);
}

:root[data-theme-current="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-28deg) scale(0.72);
}

:root[data-theme-current="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.top-nav a {
  white-space: nowrap;
  text-decoration-thickness: 0.07em;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--link);
  background: var(--control-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.social-link:visited {
  color: var(--link);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--link-hover);
  background: var(--control-bg-hover);
  border-color: var(--link-underline);
}

.social-link svg {
  display: block;
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.intro-block {
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

h1,
h2,
h3 {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.94;
  font-weight: 800;
}

.tagline {
  max-width: 39rem;
  margin: 20px 0 0;
  color: var(--tagline);
  font-size: 1.3rem;
  line-height: 1.48;
  font-style: italic;
  font-weight: 500;
}

.intro-copy {
  max-width: 42rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.intro-copy p {
  margin: 0 0 13px;
}

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

.link-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 800;
}

.year-list {
  display: grid;
  gap: 30px;
}

.year-group {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 22px;
}

h3 {
  margin: 0.16rem 0 0;
  color: var(--quiet);
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.link-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standalone-list {
  padding-left: calc(4.8rem + 22px);
}

.link-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 3px 18px;
}

.link-list a {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 680;
}

.link-list span {
  justify-self: end;
  padding-top: 0.08rem;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 620;
}

.link-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 32px;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.45;
}

.footer-social {
  margin-left: auto;
}

::selection {
  color: var(--ink);
  background: var(--highlight);
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 30px, 780px);
    padding-top: 24px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-bottom: 24px;
  }

  .top-nav {
    min-width: 0;
  }

  h1 {
    font-size: 3.05rem;
    line-height: 0.96;
  }

  .tagline {
    font-size: 1.18rem;
    line-height: 1.48;
  }

  .intro-copy {
    font-size: 1rem;
  }

  .link-list li {
    grid-template-columns: 1fr;
  }

  .standalone-list {
    padding-left: 0;
  }

  .link-list span {
    justify-self: start;
    padding-top: 0;
  }

  .year-group {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  h3 {
    margin-top: 0;
  }
}

@media (min-width: 621px) and (max-width: 780px) {
  h1 {
    font-size: 3.85rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.72rem;
  }
}
