@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f3ed;
  --ink: #1a1917;
  --muted: #5e5a54;
  --rule: #d6d0c4;
  --accent: #c4153a;
  --accent-ink: #9e1230;
  --max: 41rem;
  --side: 1.5rem;
  --font-serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: var(--side);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.5rem 0.8rem;
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--paper);
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--side)));
  margin-inline: auto;
}

.site-header {
  padding: 1.75rem 0 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  width: fit-content;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.header-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.15rem 0 0;
}

.lang {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: auto;
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

main {
  padding: 2.25rem 0 3.5rem;
}

h1 {
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin: 0 0 1.35rem;
  text-wrap: balance;
}

.intro p {
  margin: 0 0 1.1rem;
  font-size: 1.16rem;
  line-height: 1.65;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-nav {
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
}

.page-nav .page-nav-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.page-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.page-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

article section {
  margin: 2.4rem 0 0;
  padding-top: 2.15rem;
  border-top: 1px solid var(--rule);
}

article section h2 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

article section p,
.intro p,
.closing p {
  text-wrap: pretty;
}

article section p {
  margin: 0 0 1rem;
}

article section p:last-child {
  margin-bottom: 0;
}

.closing {
  margin: 2.6rem 0 0;
  padding-top: 2.15rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}

.closing p {
  margin: 0;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.15rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  :root {
    --side: 1.2rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .site-header {
    padding-top: 1.25rem;
  }

  .brand img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  main {
    padding: 1.6rem 0 2.6rem;
  }

  h1 {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
  }

  .intro p {
    font-size: 1.05rem;
  }

  article section {
    margin-top: 1.9rem;
    padding-top: 1.7rem;
  }

  article section h2 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .page-nav,
  .skip-link,
  .lang {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
