@font-face {
  font-family: "HYCFM Raleway";
  src: url("../../fonts/Raleway-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "HYCFM Raleway";
  src: url("../../fonts/Raleway-Heavy.ttf") format("truetype");
  font-display: swap;
  font-weight: 800 900;
}

@font-face {
  font-family: "HYCFM Bernina";
  src: url("../../fonts/bernina-sans.otf") format("opentype");
  font-display: swap;
  font-weight: 400 700;
}

:root {
  --blueberry: #3b5e86;
  --blueberry-deep: #294866;
  --limon: #f6e782;
  --paper: #f8f5e5;
  --ink: #271f1f;
  --line: rgb(59 94 134 / 34%);
  color-scheme: light;
  font-family: "HYCFM Bernina", Arial, sans-serif;
  font-size: 100%;
}

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

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgb(248 245 229 / 93%), rgb(248 245 229 / 96%)), url("../../ui/licensed/vintage-paper.jpg");
  background-size: auto, 760px auto;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  line-height: 1.62;
}

a {
  color: var(--blueberry-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--limon);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 1.25rem, 80rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  background: rgb(248 245 229 / 76%);
  box-shadow: 0 0 0 1px rgb(59 94 134 / 12%);
}

.site-header {
  border-top: 10px solid var(--blueberry);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  padding: clamp(1.25rem, 4vw, 2rem) 1.25rem 1.1rem;
  text-align: center;
}

.site-title,
.site-subtitle {
  margin: 0;
}

.site-title {
  color: var(--blueberry-deep);
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.site-title cite {
  font-style: normal;
}

.site-subtitle {
  margin-top: 0.4rem;
  color: var(--ink);
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-size: 1rem;
  font-style: italic;
}

.site-navigation {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(248 245 229 / 97%);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  padding-inline: 0.55rem;
}

.nav-disclosure {
  position: relative;
  display: flex;
}

.nav-link {
  min-width: 76px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 4px solid transparent;
  color: var(--ink);
  background: transparent;
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-toggle[aria-expanded="true"] {
  border-bottom-color: var(--blueberry);
  color: var(--blueberry-deep);
  background: rgb(246 231 130 / 28%);
}

.disclosure-mark {
  width: 0;
  height: 0;
  border-top: 7px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 140ms ease;
}

.nav-toggle[aria-expanded="true"] .disclosure-mark {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  z-index: 20;
  top: calc(100% - 1px);
  left: 0;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(68vh, 36rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.55rem;
  border: 2px solid var(--blueberry);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgb(59 94 134 / 20%);
  list-style: none;
}

.dropdown-list li {
  margin: 0;
}

.dropdown-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.dropdown-list a:hover,
.dropdown-list a[aria-current="page"] {
  color: var(--ink);
  background: var(--limon);
}

.main-content {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) 4rem;
}

.main-content > h1 {
  max-width: 32ch;
  margin: 0 0 clamp(1.4rem, 4vw, 2rem);
  color: var(--blueberry-deep);
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.home-content,
.stop-content {
  max-width: 70rem;
}

.home-content h2 {
  margin: 0 0 1rem;
  color: var(--blueberry-deep);
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.home-content p,
.content-text {
  max-width: 72ch;
  margin: 0 0 1.2rem;
}

.stop-content {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.25rem);
}

.content-figure {
  width: 100%;
  margin: 0;
}

.content-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
  border: 2px solid var(--blueberry);
  background: var(--blueberry-deep);
  box-shadow: 7px 7px 0 rgb(246 231 130 / 68%);
}

.content-text {
  font-size: clamp(1rem, 0.96rem + 0.28vw, 1.15rem);
  line-height: 1.68;
}

.content-nav {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto minmax(7rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.content-nav-button,
.content-nav-button-disabled {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--blueberry);
  border-radius: 999px;
  font-family: "HYCFM Raleway", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.content-nav-button {
  color: var(--blueberry-deep);
  background: var(--paper);
  text-decoration: none;
}

.content-nav-button:hover {
  color: var(--ink);
  background: var(--limon);
}

.content-nav-button:last-child,
.content-nav-button-disabled:last-child {
  grid-column: 3;
}

.content-nav-button-disabled {
  color: rgb(39 31 31 / 68%);
  border-color: rgb(59 94 134 / 32%);
}

.content-nav-meta {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgb(59 94 134 / 7%);
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 1rem);
  }

  .header-inner {
    padding-inline: 0.85rem;
  }

  .site-title {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .nav-inner {
    padding-inline: 0;
  }

  .nav-link {
    min-width: 0;
    min-height: 54px;
    padding-inline: 0.75rem;
  }

  .nav-disclosure {
    position: static;
  }

  .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-height: 62vh;
  }

  .main-content {
    padding-inline: 0.85rem;
  }

  .main-content > h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .content-nav {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .content-nav-meta {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .content-nav-button,
  .content-nav-button-disabled {
    grid-row: 2;
  }

  .content-nav-button:last-child,
  .content-nav-button-disabled:last-child {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
    box-shadow: none;
  }

  .site-header,
  .dropdown-list,
  .content-image,
  .content-nav-button {
    border: 2px solid CanvasText;
  }
}

@media print {
  .skip-link,
  .site-navigation,
  .site-footer,
  .content-nav {
    display: none !important;
  }

  body,
  .page-shell {
    background: #fff;
    box-shadow: none;
  }

  .content-image {
    box-shadow: none;
  }
}
