@font-face {
  font-family: Geologica;
  src: url('./fonts/geologica-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

@font-face {
  font-family: Roboto;
  src: url('./fonts/roboto-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

:root {
  color-scheme: light;
  font-family: Roboto, 'Segoe UI', system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.7;
  color: #242721;
  background: #f6f4ef;
  --muted: #5b6058;
  --accent: #40563a;
  --rule: #dcded3;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: #fff;
  z-index: 2;
}
.skip-link:focus {
  top: 1rem;
}
.site-header,
.site-footer,
main {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #072b67;
  font-family: Geologica, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.55;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.languages,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}
.languages {
  font-size: 0.875rem;
}
.languages a {
  padding-block: 0.35rem;
}
.languages [aria-current],
.site-footer [aria-current] {
  color: #242721;
  font-weight: 700;
  text-decoration-thickness: 2px;
}
.document-heading {
  max-width: 49rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) 2.5rem;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}
.intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 1.5rem;
}
.metadata {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
}
.metadata span {
  margin-inline: 0.4rem;
}
.document-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: 1rem 5rem;
}
.contents {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.8125rem;
}
.contents h2 {
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}
.contents ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.contents li {
  margin-block: 0.65rem;
  line-height: 1.5;
}
.contents a {
  color: var(--muted);
  text-decoration: none;
}
.contents a:hover {
  color: var(--accent);
  text-decoration: underline;
}
article {
  max-width: 72ch;
  min-width: 0;
}
article section {
  margin-bottom: 2.5rem;
}
article h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  scroll-margin-top: 2rem;
}
article p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.site-footer p {
  margin: 0 0 0.75rem;
}

@media (min-width: 60rem) {
  .contents {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}
@media (max-width: 45rem) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-block: 1.25rem;
  }
  .document-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .contents ol {
    columns: 2 12rem;
    column-gap: 1.5rem;
  }
  .contents li {
    break-inside: avoid;
  }
}
@media print {
  :root {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .site-header,
  .contents,
  .skip-link,
  .site-footer nav {
    display: none;
  }
  main,
  .site-footer {
    max-width: none;
    padding: 0;
  }
  .document-heading {
    padding-block: 0 1.5rem;
  }
  .document-layout {
    display: block;
    padding: 0;
  }
  article {
    max-width: none;
  }
  article section {
    margin-bottom: 1.5rem;
  }
  h1 {
    font-size: 24pt;
  }
  h2 {
    break-after: avoid;
  }
  p {
    orphans: 3;
    widows: 3;
  }
  a {
    color: #000;
  }
  .site-footer {
    margin-top: 2rem;
  }
}
