@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson-regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Atkinson";
  src: url("/assets/fonts/atkinson-bold.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --route-bg: #03120d;
  --route-panel: #0a1d16;
  --route-text: #f4f7ec;
  --route-muted: rgba(244, 247, 236, 0.72);
  --route-line: rgba(244, 247, 236, 0.2);
  --route-accent: #d9ff57;
  font-family: "Atkinson", sans-serif;
}

* {
  box-sizing: border-box;
}

.route-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--route-text);
  background:
    radial-gradient(circle at 82% 8%, rgba(19, 107, 68, 0.3), transparent 34rem),
    var(--route-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.route-page a {
  color: inherit;
  text-decoration: none;
}

.route-page__shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.route-page__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 7rem;
  border-bottom: 1px solid var(--route-line);
}

.route-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.route-page__brand img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.route-page__nav,
.route-page__languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-page__nav {
  justify-content: center;
}

.route-page__languages {
  gap: 0.5rem;
}

.route-page__languages a {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
}

.route-page__nav a,
.route-page__languages a {
  color: var(--route-muted);
  transition: color 180ms ease;
}

.route-page__nav a[aria-current="page"],
.route-page__languages a[aria-current="page"],
.route-page__nav a:hover,
.route-page__languages a:hover,
.route-page__nav a:focus-visible,
.route-page__languages a:focus-visible {
  color: var(--route-accent);
}

.route-page__main {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem);
}

.route-page__eyebrow {
  margin: 0;
  color: var(--route-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.route-page h1 {
  max-width: 760px;
  margin: 1rem 0 1.5rem;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.route-page__lede {
  max-width: 680px;
  margin: 0;
  color: var(--route-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.route-page__notice {
  display: grid;
  max-width: 760px;
  margin: 3rem 0 0;
  padding: 1.4rem 1.5rem;
  border-top: 1px solid var(--route-line);
  border-bottom: 1px solid var(--route-line);
  gap: 0.25rem;
}

.route-page__notice strong {
  color: var(--route-accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-page__notice span {
  color: var(--route-muted);
}

.route-search {
  max-width: 720px;
  margin-top: 3rem;
}

.route-search label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.route-search input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--route-line);
  border-radius: 0;
  color: var(--route-text);
  background: var(--route-panel);
  font: inherit;
}

.route-search__results {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--route-line);
}

.route-search__result {
  padding: 1rem 0;
  border-bottom: 1px solid var(--route-line);
}

.route-search__result h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.route-search__result h2 a:hover,
.route-search__result h2 a:focus-visible {
  color: var(--route-accent);
}

.route-search__result p,
.route-search__empty {
  margin: 0;
  color: var(--route-muted);
}

.route-page__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--route-line);
  color: var(--route-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-page :focus-visible {
  outline: 2px solid var(--route-accent);
  outline-offset: 5px;
}

@media (max-width: 800px) {
  .route-page__header {
    grid-template-columns: auto auto;
  }

  .route-page__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 1.25rem;
  }

  .route-page__languages {
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .route-page__shell {
    width: min(100% - 2.4rem, 1120px);
  }

  .route-page__brand span {
    display: none;
  }

  .route-page__nav {
    gap: 0.75rem;
    font-size: 0.7rem;
  }

  .route-page__main {
    padding-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}

::selection { color: #f6faef; background: rgba(91, 139, 105, 0.72); }
.all-chapters { color: var(--route-muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.chapter-page { position: relative; background: #02110c; }
.chapter-field { position: fixed; z-index: -2; inset: 0; background-position: center; background-size: cover; filter: saturate(1.05) contrast(1.08); }
.chapter-field::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, rgba(1,12,8,.9), rgba(1,12,8,.62) 58%, rgba(1,12,8,.72)); }
.chapter-physis .chapter-field { background-image: url("/assets/field-1.webp"); }
.chapter-noema .chapter-field { background-image: url("/assets/field-2.webp"); }
.chapter-lumen .chapter-field { background-image: url("/assets/field-3.webp"); }
.chapter-pneuma .chapter-field { background-image: url("/assets/field-4.webp"); }
.chapter-poiesis .chapter-field { background-image: url("/assets/field-5.webp"); }
.chapter-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, .65fr); gap: clamp(3rem, 9vw, 9rem); min-height: calc(100svh - 12rem); align-items: center; padding: clamp(4rem, 8vw, 8rem) 0 6rem; }
.chapter-main h1 { max-width: none; font-size: clamp(3rem, 6vw, 6rem); }
.chapter-domain { margin: 1.2rem 0 0; font-size: clamp(1rem, 1.7vw, 1.45rem); letter-spacing: .22em; text-transform: uppercase; }
.chapter-rule { display: block; width: 3rem; height: 1px; margin: 2.5rem 0; background: var(--route-accent); }
.chapter-main h2 { margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.05em; }
.chapter-main .route-page__notice { background: rgba(1,14,9,.24); }
.chapter-facts > p { display: grid; gap: .65rem; margin: 0; padding: 1.3rem 0; border-top: 1px solid var(--route-line); }
.chapter-facts small { color: var(--route-muted); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.chapter-facts strong { font-size: 1rem; font-weight: 400; }
.chapter-nav { display: flex; justify-content: space-between; padding-top: 1.4rem; border-top: 1px solid var(--route-line); }
.chapter-nav a { display: grid; min-width: 44px; min-height: 44px; place-items: center; color: var(--route-muted); }
.chapter-nav strong { display: none; }
.chapter-nav a[aria-current="page"] { color: var(--route-accent); }
.legal-page { max-width: 900px; }
@media (max-width: 760px) {
  .all-chapters { grid-column: 1 / -1; grid-row: 2; padding-bottom: 1rem; }
  .chapter-main { grid-template-columns: 1fr; }
  .chapter-facts { padding-top: 1rem; }
}

.chapter-page { overflow-x: hidden; }
.chapter-main h1 span { white-space: nowrap; }
@media (max-width: 760px) {
  .chapter-main h1 { max-width: 100%; font-size: clamp(2.5rem, 12vw, 4rem); overflow-wrap: anywhere; }
  .chapter-main h1 span { display: block; margin-top: .25rem; }
  .chapter-main .route-page__lede { overflow-wrap: anywhere; }
}

.chapter-main > * { min-width: 0; }
@media (max-width: 760px) {
  .chapter-main h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
}
