@font-face {
  font-family: Familjen Grotesk;
  src: url("/assets/fonts/familjen-grotesk.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader.ttf") format("truetype");
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: JetBrains Mono;
  src: url("/assets/fonts/jetbrains-mono.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --paper: #f0ede4;
  --ink: #151514;
  --muted: #63625b;
  --line: #1515142e;
  --sage: #7c8471;
  --ember: #a63520;
  --sans: "Familjen Grotesk", Arial, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: "JetBrains Mono", monospace;
  --gutter: clamp(22px, 4vw, 48px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 5px;
}
::selection {
  background: var(--ember);
  color: var(--paper);
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.field {
  width: min(calc(100% - var(--gutter) * 2), 1240px);
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}
.label {
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 70px;
  background: var(--paper);
  border-bottom: 1px solid #15151410;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 27px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.4px;
}
.brand-mark {
  width: 22px;
  height: 24px;
  display: block;
  background: currentColor;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 18%,
    23% 18%,
    23% 41%,
    82% 41%,
    82% 59%,
    23% 59%,
    23% 82%,
    100% 82%,
    100% 100%,
    0 100%
  );
}
.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding-block: 10px;
}
.nav a:after {
  content: "";
  position: absolute;
  bottom: 4px;
  height: 1px;
  left: 0;
  right: 100%;
  background: currentColor;
  transition: right 0.2s;
}
.nav a:hover:after,
.nav a[aria-current="page"]:after {
  right: 0;
}
.pill {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 15px;
  text-decoration: none;
  line-height: 1.3;
  transition:
    background 0.2s,
    transform 0.2s;
}
.pill:hover {
  background: #34332f;
  transform: translateY(-2px);
}
.pill.light {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
}
.text-link:hover .arrow {
  transform: translateX(4px);
}
.arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.menu-toggle {
  color: inherit;
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
}
.hero {
  position: relative;
  max-width: 1440px;
  margin: auto;
  min-height: 700px;
  height: min(810px, 100svh);
  overflow: hidden;
  background: #d4ccbd;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f0ede4 0%,
    #f0ede4f0 30%,
    #f0ede496 57%,
    #f0ede400 85%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(180px, 17vw, 240px);
  padding-bottom: 90px;
  color: var(--ink);
}
.hero .label {
  color: var(--muted);
}
.hero .hero-index {
  color: var(--paper);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 6.8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
  max-width: 790px;
  margin: 25px 0;
  font-variation-settings: "opsz" 72;
}
.hero-deck {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.5;
  max-width: 470px;
  text-wrap: pretty;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
.hero-index {
  position: absolute;
  bottom: 28px;
  right: var(--gutter);
  z-index: 1;
  color: var(--paper);
}
.editorial {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 42px;
  padding-block: clamp(76px, 9vw, 140px);
}
.editorial > .label {
  padding-top: 12px;
}
.editorial h2,
.section-heading {
  font: 300 clamp(36px, 3.7vw, 54px) / 1.02 var(--serif);
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 60;
  max-width: 640px;
  text-wrap: balance;
}
.editorial .copy {
  max-width: 650px;
}
.copy p {
  font-size: 18px;
  line-height: 1.7;
  color: #34332f;
  margin-top: 24px;
}
.diagram-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 104px 0 72px;
  background: var(--ink);
  color: var(--paper);
}
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-top h2 {
  font: 400 42px/1.1 var(--serif);
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.section-top p {
  color: var(--muted);
}
.diagram {
  margin-block: 38px 18px;
  width: 100%;
  height: auto;
}
.diagram text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  fill: var(--muted);
}
.diagram .node {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.diagram .path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
}
.diagram .boundary {
  fill: #7c84710b;
  stroke: var(--sage);
  stroke-dasharray: 4 5;
}
.legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.legend b {
  font: 11px var(--mono);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  font-weight: 400;
}
.chapters {
  padding-block: 140px;
}
.chapters > .label {
  margin-bottom: 20px;
}
.chapters .section-heading {
  margin-bottom: 48px;
}
.chapter {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 32px;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  text-decoration: none;
  padding: 32px 0;
  transition:
    padding 0.25s,
    background 0.25s;
}
.chapter:last-child {
  border-bottom: 1px solid var(--line);
}
.chapter:hover {
  padding-inline: 18px;
  background: #e6e3da;
}
.chapter-number {
  font: 12px var(--mono);
  color: var(--muted);
}
.chapter h3 {
  font: 300 42px/1.05 var(--serif);
  letter-spacing: -0.025em;
}
.chapter .label {
  display: block;
  margin-top: 8px;
}
.chapter p {
  font-size: 16px;
  color: var(--muted);
  max-width: 370px;
}
.chapter .arrow {
  font-size: 24px;
}
.about-section {
  background: #e6e3da;
}
.begin {
  border-top: 1px solid var(--line);
}
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
}
.footer .label {
  color: #b9b8ae;
  margin-bottom: 20px;
}
.footer p {
  max-width: 260px;
  color: #b9b8ae;
  margin-top: 22px;
}
.footer nav {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.footer nav a {
  text-decoration: none;
  font-size: 15px;
  min-height: 28px;
}
.footer nav a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #ffffff26;
  margin-top: 65px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 10px var(--mono);
  color: #b9b8ae;
  letter-spacing: 0.05em;
}
.route-main {
  padding-top: 160px;
}
.route-hero {
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 42px;
}
.route-hero h1 {
  font: 400 clamp(48px, 5.7vw, 76px) / 1.04 var(--serif);
  letter-spacing: -0.04em;
  max-width: 800px;
}
.route-hero .label {
  padding-top: 12px;
}
.route-hero .lead {
  font: 22px/1.5 var(--sans);
  max-width: 640px;
  margin-top: 28px;
  color: #34332f;
}
.detail-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 42px;
  padding-block: 55px;
  border-bottom: 1px solid var(--line);
}
.detail-row h2 {
  font: 32px/1.15 var(--serif);
  max-width: 270px;
}
.detail-row p {
  max-width: 650px;
  color: #34332f;
  font-size: 18px;
  margin-bottom: 18px;
}
.detail-row ul {
  padding-left: 20px;
  margin: 18px 0;
  color: #34332f;
}
.detail-row li {
  margin: 10px 0;
}
.note {
  border-left: 2px solid var(--sage);
  padding: 14px 24px;
  margin-top: 30px;
  font: 22px/1.45 var(--serif);
  max-width: 620px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 42px;
  padding: 56px 0 100px;
}
.contact-aside p {
  margin-top: 16px;
  max-width: 260px;
  color: var(--muted);
}
form {
  max-width: 700px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-field label {
  font-size: 15px;
}
.form-field input,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #929087;
  padding: 12px 0;
  border-radius: 0;
  color: var(--ink);
  width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
  max-width: 550px;
}
.form-status {
  margin-top: 20px;
  padding: 20px;
  background: #e6e3da;
}
.form-status[hidden] {
  display: none;
}
.form-status a {
  display: inline-block;
  margin-top: 10px;
}
.mobile-nav {
  display: none;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  font-size: 20px;
  cursor: pointer;
}
.faq details p {
  font-size: 16px;
  margin-top: 16px;
}
.not-found {
  min-height: 70vh;
  padding-block: 170px 80px;
}
.not-found h1 {
  font: 64px var(--serif);
}
@media (min-width: 1600px) {
  .hero .field {
    width: 1240px;
  }
}
@media (max-width: 1000px) {
  .nav {
    gap: 16px;
  }
  .header-inner {
    gap: 18px;
  }
  .brand {
    font-size: 24px;
  }
  .header .pill {
    font-size: 13px;
    padding-inline: 15px;
  }
  .hero {
    min-height: 740px;
  }
  .chapter {
    grid-template-columns: 50px 1fr 1fr 24px;
    gap: 20px;
  }
  .footer-grid {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .header {
    height: 72px;
  }
  .nav,
  .header-inner > .pill {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav.open {
    display: flex;
    position: fixed;
    inset: 72px 0 0;
    background: var(--paper);
    color: var(--ink);
    padding: 35px var(--gutter);
    flex-direction: column;
    gap: 22px;
    overflow: auto;
  }
  .mobile-nav a {
    font: 32px var(--serif);
    text-decoration: none;
  }
  .mobile-nav .pill {
    font: 16px var(--sans);
    align-self: start;
    margin-top: 10px;
  }
  .menu-open .header {
    background: var(--paper);
    color: var(--ink);
  }
  .hero {
    min-height: 730px;
    height: 92svh;
    max-height: 900px;
  }
  .hero-image {
    object-position: 58% center;
  }
  .hero:after {
    background:
      linear-gradient(90deg, #171411a8, #17141144),
      linear-gradient(0deg, #17141155, transparent);
  }
  .hero-content {
    padding-top: 220px;
  }
  .hero h1 {
    font-size: clamp(53px, 10vw, 76px);
    max-width: 600px;
  }
  .hero-deck {
    font-size: 18px;
    max-width: 360px;
  }
  .hero .label {
    font-size: 10px;
  }
  .actions {
    gap: 18px;
  }
  .editorial,
  .route-hero,
  .detail-row,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .editorial {
    padding-block: 72px;
  }
  .editorial h2,
  .section-heading {
    font-size: 40px;
  }
  .copy p {
    font-size: 17px;
  }
  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .section-top h2 {
    font-size: 36px;
  }
  .diagram {
    min-width: 650px;
  }
  .diagram-wrap {
    overflow-x: auto;
    margin-inline: -8px;
    padding-inline: 8px;
  }
  .legend {
    gap: 12px;
    flex-direction: column;
  }
  .chapters {
    padding-block: 72px;
  }
  .chapter {
    grid-template-columns: 28px 1fr 24px;
    gap: 14px;
    padding: 26px 0;
  }
  .chapter h3 {
    font-size: 32px;
  }
  .chapter p {
    grid-column: 2;
    grid-row: 2;
  }
  .chapter > .arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .chapter:hover {
    padding-inline: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    flex-direction: column;
    font-size: 10px;
  }
  .route-main {
    padding-top: 130px;
  }
  .route-hero h1 {
    font-size: 52px;
  }
  .route-hero .lead {
    font-size: 20px;
  }
  .detail-row {
    padding-block: 35px;
  }
  .detail-row p {
    font-size: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-aside {
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
  .contact-aside p {
    max-width: none;
  }
  .hero-index {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Homepage proportions and editorial hierarchy. */
.home main > .editorial .copy p {
  font: 400 clamp(23px, 2vw, 28px) / 1.42 var(--serif);
  max-width: 580px;
}
.home .about-section .editorial,
.home .begin .editorial {
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.home .about-section .label,
.home .begin .label {
  margin-bottom: 20px;
}
.home .about-section .copy p:first-child,
.home .begin .copy p:first-child {
  margin-top: 0;
}
.home .begin .editorial {
  padding-block: 150px;
}
.home .begin h2 {
  font-size: clamp(52px, 5.4vw, 76px);
}
.diagram-section .label,
.diagram-section .section-top p,
.diagram-section .legend {
  color: #b9b8ae;
}
.diagram-section h2 {
  color: var(--paper);
  font-weight: 300;
}
.diagram {
  margin-block: 70px 42px;
}
.diagram text {
  fill: #d3d0c6;
}
.diagram .path {
  stroke: #aaa99e;
}
.diagram .node {
  fill: var(--ink);
  stroke: var(--paper);
}
.diagram [fill="#151514"] {
  fill: var(--paper);
}
.diagram [stroke="#151514"] {
  stroke: #aaa99e;
}
.diagram .boundary {
  fill: #7c847112;
  stroke: #a7b29c;
}
.diagram-section .legend b {
  border-color: #ffffff40;
}
.flow-mobile {
  display: none;
}
@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    background: var(--paper);
  }
  .hero-content {
    order: 0;
    padding-top: 104px;
    padding-bottom: 38px;
  }
  .hero h1 {
    font-size: clamp(44px, 13.3vw, 76px);
    margin: 16px 0 20px;
  }
  .hero-deck {
    font-size: 22px;
    line-height: 1.35;
  }
  .hero .actions {
    gap: 20px;
    margin-top: 24px;
  }
  .hero .pill {
    font-size: 14px;
    padding-inline: 17px;
  }
  .hero .text-link {
    font-size: 14px;
    border: 0;
  }
  .hero-image {
    position: relative;
    order: 1;
    height: 320px;
    object-position: 62% center;
  }
  .hero:after {
    display: none;
  }
  .hero .hero-index {
    position: static;
    order: 2;
    padding: 18px var(--gutter) 0;
    color: var(--muted);
  }
  .home .about-section .editorial,
  .home .begin .editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home .begin .editorial {
    padding-block: 80px;
  }
  .home main > .editorial .copy p {
    font-size: 23px;
  }
  .chapters {
    padding-block: 72px;
  }
  .diagram-section {
    padding-block: 64px;
  }
  .diagram-wrap {
    display: none;
  }
  .flow-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
  }
  .flow-step {
    padding: 20px 10px;
    text-align: center;
  }
  .flow-step p {
    font: 24px/1.35 var(--serif);
    margin-top: 10px;
  }
  .flow-step .label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .flow-line {
    color: #a7b29c;
    font-size: 30px;
  }
  .flow-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
  }
  .bounded {
    border: 1px dashed #a7b29c;
  }
  .decision {
    border-top: 1px solid #a63520;
    border-bottom: 1px solid #a63520;
    width: 100%;
  }
}
