@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Miriam Libre";
  src: url("fonts/MiriamLibre-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Miriam Libre";
  src: url("fonts/MiriamLibre-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #080c18;
  --bone: #e8e4d8;
  --cobalt: #2563eb;
  --blue-light: #9cbbff;
  --muted: #bbc2d2;
  --edge: #354059;
  --panel: #111b30;
  --gutter: 1.375rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue-light); text-underline-offset: .24em; }
a:hover { color: var(--bone); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 5px;
}
p { margin: 0 0 1.125rem; }
h1, h2, h3 { font-family: "Rubik", Arial, sans-serif; font-weight: 400; }
.site {
  background: var(--navy);
  color: var(--bone);
  font-family: "Miriam Libre", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.skip-link {
  position: fixed;
  top: -8rem;
  left: var(--gutter);
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 52px;
  max-width: calc(100% - 2 * var(--gutter));
  padding: .6rem 1rem;
  background: var(--bone);
  color: var(--navy);
  font-size: 18px;
}
.skip-link:focus { top: 1rem; color: var(--navy); }
.site-header { border-bottom: 1px solid var(--edge); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  max-width: 1280px;
  margin: auto;
  padding: 1.25rem var(--gutter);
}
.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  justify-content: center;
  min-height: 52px;
  color: var(--bone);
  text-decoration: none;
}
.site-header__place {
  font-family: "Rubik", Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.03em;
}
.site-header__descriptor { color: var(--muted); font-size: 16px; line-height: 1.4; }
.topic-nav { display: flex; position: relative; width: 100%; gap: .375rem; }
.topic-nav__group { min-width: 0; flex: 1; }
.topic-nav__tab {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 68px;
  padding: .55rem .4rem;
  background: var(--cobalt);
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  list-style: none;
  border-bottom: 3px solid transparent;
}
.topic-nav__tab::-webkit-details-marker { display: none; }
.topic-nav__tab::after { content: "+"; font-size: 18px; }
.topic-nav__group[open] .topic-nav__tab::after { content: "−"; }
.topic-nav__tab--current { border-bottom-color: var(--bone); }
.topic-nav__links {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + .5rem);
  z-index: 10;
  padding: .625rem;
  background: var(--panel);
  border: 1px solid var(--blue-light);
  box-shadow: 0 12px 30px #0008;
}
.topic-nav__link {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: .5rem .75rem;
  font-size: 18px;
  text-decoration: none;
}
.topic-nav__link:hover { background: #203050; }
.topic-nav__link[aria-current="page"] { color: var(--bone); border-left: 3px solid var(--cobalt); }
.sheet { max-width: 1280px; margin: auto; padding: 0 var(--gutter); }
.sheet:focus { outline: none; }
.hero { padding: 2.5rem 0 2.25rem; }
.hero__eyebrow { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 1.375rem; }
.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.625rem, 6vw, 5.25rem);
  letter-spacing: -.045em;
  line-height: 1.08;
  max-width: 20ch;
  text-wrap: balance;
}
.hero__lead { max-width: 58ch; margin: 0; font-size: 21px; line-height: 1.55; }
.hero--photo .photo { margin-top: 2rem; }
.photo { margin: 0; min-width: 0; }
.photo__frame { background: var(--panel); aspect-ratio: 16 / 10; border: 1px solid var(--edge); }
.photo__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.photo__caption { padding: .7rem 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.article { max-width: 52rem; margin: auto; padding: .5rem 0 3rem; }
.article__section { padding: 2.25rem 0 1.75rem; border-top: 1px solid var(--edge); }
.article__heading, .note__heading, .path__heading, .glossary__heading, .reading__heading {
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
}
.article__section p, .note p, .reading__entry p { max-width: 68ch; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: .5rem 0;
  font-size: 18px;
  line-height: 1.5;
}
.article__end { padding: 1rem 0; }
.path { padding: 2.25rem 0; border-top: 1px solid var(--edge); }
.path__item { padding: 1.5rem 0; border-bottom: 1px solid var(--edge); }
.path__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 1.125rem;
  padding: .5rem 1rem;
  background: var(--cobalt);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.path__title { font-size: 25px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .75rem; }
.path__body p { font-size: 20px; }
.note { margin: 1.5rem 0 2.5rem; padding: 1.5rem; border: 1px solid var(--edge); border-left: 5px solid var(--cobalt); background: var(--panel); }
.note--urgent { border-color: #818b9f; border-left-color: var(--bone); }
.note p:last-child { margin-bottom: 0; }
.next-page { padding: 2rem 0; border-top: 1px solid var(--edge); }
.next-page__label { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 .5rem; }
.next-page__link { display: inline-flex; align-items: center; min-height: 52px; max-width: 100%; font-size: 22px; line-height: 1.5; padding: .5rem 0; }
.glossary__tools { display: grid; gap: 1rem; border-top: 1px solid var(--edge); padding-top: 2rem; }
.glossary__label { display: block; font-size: 18px; margin-bottom: .5rem; }
.glossary__input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: .75rem;
  border: 1px solid var(--muted);
  background: var(--panel);
  color: var(--bone);
  font-size: 18px;
  line-height: 1.5;
  border-radius: 0;
}
.glossary__input::placeholder { color: var(--muted); opacity: 1; }
.glossary__clear { min-height: 50px; padding: .7rem 1rem; background: var(--cobalt); border: 1px solid var(--cobalt); color: #fff; font-size: 18px; line-height: 1.5; }
.glossary__clear:hover { background: #184ec4; }
.glossary__status { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 1.125rem 0 2rem; }
.glossary__term { border-top: 1px solid var(--edge); padding: 2rem 0 1.25rem; }
.glossary__empty { font-size: 20px; padding: 2rem 0; border-top: 1px solid var(--edge); }
.reading__entry { margin: 0 0 1rem; padding: 1.75rem 1.25rem 1.5rem; border: 1px solid var(--edge); scroll-margin-top: 1.5rem; }
.reading__heading { display: flex; align-items: flex-start; gap: .875rem; font-size: 25px; }
.reading__number { display: inline-block; min-width: 2.1ch; color: var(--blue-light); font-variant-numeric: tabular-nums; }
.reading__links { display: flex; flex-direction: column; align-items: flex-start; }
.reading__link { display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; padding: .5rem 0; font-size: 18px; line-height: 1.5; }
.site-footer { border-top: 1px solid var(--edge); }
.site-footer__inner { max-width: 1280px; margin: auto; padding: 2rem var(--gutter) 2.5rem; }
.site-footer__line { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 66ch; margin-bottom: 1.25rem; }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.site-footer__link { display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; padding: .5rem 0; font-size: 18px; line-height: 1.5; }

@media (min-width: 600px) {
  :root { --gutter: 2.25rem; }
  .topic-nav__tab { flex-direction: row; align-items: center; min-height: 48px; }
  .glossary__tools { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .glossary__clear { min-height: 54px; }
  .site-footer__links { flex-direction: row; flex-wrap: wrap; gap: 1.75rem; }
  .path__item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; align-items: start; }
  .path__tab { margin: 0; }
  .reading__entry { padding: 2rem; }
}
@media (min-width: 960px) {
  :root { --gutter: 3rem; }
  .site-header__inner { align-items: center; justify-content: space-between; padding-block: 1.75rem; flex-wrap: nowrap; }
  .topic-nav { width: auto; gap: .625rem; }
  .topic-nav__group { position: relative; flex: none; }
  .topic-nav__tab { min-width: 150px; padding-inline: 1rem; font-size: 18px; }
  .topic-nav__links { right: auto; min-width: 270px; }
  .topic-nav__group:last-child .topic-nav__links { right: 0; left: auto; }
  .hero { padding: 4.5rem 0 4rem; }
  .hero--photo { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr); align-items: center; gap: 3rem; }
  .hero--photo .photo { margin-top: 0; }
  .hero--plain .hero__title { max-width: 23ch; }
  .hero__lead { font-size: 22px; }
  .photo__frame { aspect-ratio: 4 / 5; }
  .article { padding-bottom: 4rem; }
  .article__section { padding-block: 2.75rem 2.25rem; }
  .article__heading, .note__heading, .path__heading, .glossary__heading { font-size: 33px; }
  .note { padding: 2rem; }
  .site-footer__inner { padding-block: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
