:root {
  --paper: #f3f0e8;
  --paper-deep: #e5e0d4;
  --ink: #17221d;
  --muted: #626962;
  --line: #c9c8bd;
  --signal: #bb3a2f;
  --pine: #1d3028;
  --pine-light: #2a4036;
  --brass: #b08a4b;
  --white: #fffdf6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(1260px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  display: block;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding-block: 10px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--signal);
}

.hero {
  position: relative;
  min-height: 700px;
  height: calc(100svh - 78px);
  max-height: 920px;
  overflow: hidden;
  isolation: isolate;
  background: var(--pine);
  color: var(--white);
}

.hero > img,
.hero-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 220ms ease, transform 9s linear;
}

.hero:not(.is-changing) > img {
  transform: scale(1.04);
}

.hero.is-changing > img {
  opacity: 0.3;
}

.hero-veil {
  z-index: -1;
  background: rgba(10, 19, 15, 0.47);
}

.hero-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-copy {
  max-width: 920px;
  padding-bottom: 58px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
  transition: opacity 180ms ease, transform 180ms ease;
}

.is-changing .hero-copy {
  opacity: 0.48;
  transform: translateY(6px);
}

.eyebrow,
.section-label,
.hero-meta,
.route-time,
.note-number,
.summary-label,
.error-code {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px;
  font-weight: 400;
  line-height: 0.98;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 18px;
}

.hero-meta {
  margin-top: 30px;
}

.hero-controls {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.pause-button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 4px;
  background: rgba(10, 19, 15, 0.28);
  color: var(--white);
  cursor: pointer;
}

.icon-button {
  width: 44px;
  font-size: 20px;
}

.pause-button {
  min-width: 108px;
  padding-inline: 16px;
  font-size: 13px;
}

.icon-button:hover,
.icon-button:focus-visible,
.pause-button:hover,
.pause-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.position {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.position-track {
  width: 112px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.36);
}

.position-track i {
  width: 25%;
  height: 100%;
  display: block;
  background: var(--white);
  transition: width 220ms ease;
}

.manifest {
  padding-block: 126px 116px;
}

.section-label {
  color: var(--signal);
}

.manifest-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 100px;
  align-items: end;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.07;
}

.manifest-copy {
  color: var(--muted);
  font-size: 17px;
}

.manifest-copy p {
  margin: 0;
}

.manifest-copy p + p {
  margin-top: 20px;
}

.route {
  padding-block: 90px 96px;
  background: var(--pine);
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading > p {
  max-width: 320px;
  margin: 0 0 8px;
  color: #bdc8c1;
  font-size: 14px;
}

.route .section-label {
  color: #e97767;
}

.route-line {
  position: relative;
  margin: 68px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.route-line::before {
  position: absolute;
  top: 17px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.route-line li {
  position: relative;
  padding: 48px 30px 0 0;
}

.route-line li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 3px solid var(--pine);
  border-radius: 50%;
  background: var(--signal);
  outline: 1px solid rgba(255, 255, 255, 0.48);
  content: "";
}

.route-line strong,
.route-line span {
  display: block;
}

.route-time {
  color: #d6ddd8;
}

.route-line strong {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.route-line li > span:last-child {
  margin-top: 4px;
  color: #9eb0a5;
  font-size: 13px;
}

.notes {
  padding-block: 124px 132px;
}

.notes-heading {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.notes-heading > p {
  color: var(--muted);
}

.notes-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 42px 26px;
}

.note-card {
  grid-column: span 5;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.note-card-wide {
  grid-column: span 7;
}

.note-photo {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.note-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.note-number {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 34px;
  padding: 8px 9px;
  border-radius: 3px;
  background: rgba(23, 34, 29, 0.84);
  color: var(--white);
  text-align: center;
}

.note-card:hover img,
.note-card:focus-visible img {
  filter: contrast(1.04);
  transform: scale(1.012);
}

.note-card:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
}

.note-card.is-active .note-photo {
  outline: 3px solid var(--signal);
  outline-offset: -3px;
}

.note-copy {
  padding-top: 15px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.note-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.note-copy > span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.field-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid > div {
  min-height: 190px;
  padding: 46px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}

.summary-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.summary-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.summary-label {
  color: var(--muted);
}

.closing {
  padding-block: 102px;
  background: var(--pine);
  color: var(--white);
}

.closing .section-label {
  color: #e97767;
}

.closing-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.closing blockquote {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.12;
}

.closing a {
  grid-column: 2;
  width: fit-content;
  color: #d9e0dc;
  font-size: 14px;
  text-underline-offset: 5px;
}

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.footer-row a {
  justify-self: end;
  text-underline-offset: 4px;
}

.about-page {
  min-height: calc(100vh - 139px);
}

.about-intro {
  padding-block: 122px 86px;
}

.about-intro h1,
.error-content h1 {
  max-width: 1000px;
  margin: 24px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  font-weight: 400;
  line-height: 1;
}

.about-lead {
  max-width: 700px;
  margin: 36px 0 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.about-story {
  padding-bottom: 126px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 76px;
  align-items: center;
}

.about-story figure {
  margin: 0;
}

.about-story img {
  width: 100%;
  display: block;
}

.about-story figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.about-copy {
  color: var(--muted);
  font-size: 17px;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 20px;
}

.text-link,
.return-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--signal);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.principles {
  padding-block: 90px;
  background: var(--paper-deep);
}

.principles-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 70px;
}

.principles ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.principles li {
  min-height: 78px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.principles li span {
  color: var(--signal);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.principles li strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pine);
  color: var(--white);
}

.site-header-dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--pine);
}

.site-header-dark .brand-copy small,
.site-header-dark .nav {
  color: #a9b8af;
}

.error-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 84px;
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 90px;
  align-items: center;
}

.error-code {
  color: #e97767;
}

.error-content h1 {
  font-size: 70px;
}

.error-content p:not(.error-code) {
  max-width: 520px;
  margin: 28px 0 0;
  color: #bdc8c1;
  font-size: 18px;
}

.return-link {
  color: var(--white);
}

.error-sign {
  position: relative;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.error-sign span,
.error-sign i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 7px;
  background: var(--signal);
  transform-origin: center;
}

.error-sign span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.error-sign i {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 48px, 820px);
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .manifest-grid,
  .about-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  h2 {
    font-size: 52px;
  }

  .manifest-copy {
    max-width: 620px;
  }

  .note-card,
  .note-card-wide {
    grid-column: span 6;
  }

  .note-copy {
    display: block;
  }

  .note-copy > span {
    margin-top: 5px;
    display: block;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .closing a {
    grid-column: 1;
  }

  .about-intro h1 {
    font-size: 66px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .error-grid {
    grid-template-columns: 1fr;
  }

  .error-sign {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-row {
    min-height: 70px;
    gap: 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .nav {
    gap: 15px;
    font-size: 12px;
  }

  .nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 690px;
    height: calc(100svh - 70px);
    max-height: 820px;
  }

  .hero > img {
    object-position: 54% center;
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 48px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .hero-controls {
    min-height: 98px;
  }

  .pause-button {
    min-width: 88px;
    padding-inline: 11px;
  }

  .position-track {
    width: 42px;
  }

  .manifest {
    padding-block: 86px 80px;
  }

  .manifest-grid {
    margin-top: 20px;
    gap: 30px;
  }

  h2 {
    font-size: 40px;
  }

  .route {
    padding-block: 72px 78px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .route-line {
    margin-top: 46px;
    display: block;
  }

  .route-line::before {
    top: 0;
    bottom: 0;
    left: 6px;
    width: 1px;
    height: auto;
  }

  .route-line li {
    min-height: 98px;
    padding: 0 0 26px 42px;
  }

  .route-line li::before {
    top: 4px;
    left: 0;
  }

  .notes {
    padding-block: 86px 92px;
  }

  .notes-grid {
    margin-top: 40px;
    display: block;
  }

  .note-card {
    width: 100%;
    margin-top: 36px;
    display: block;
  }

  .note-card:first-child {
    margin-top: 0;
  }

  .note-copy {
    display: flex;
  }

  .note-copy > span {
    margin-top: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid > div {
    min-height: 128px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .summary-grid > div:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .summary-value {
    font-size: 32px;
  }

  .closing {
    padding-block: 76px;
  }

  .closing blockquote {
    font-size: 38px;
  }

  .footer-row {
    display: block;
  }

  .footer-row span,
  .footer-row a {
    margin-top: 5px;
    display: block;
  }

  .footer-row span:first-child {
    margin-top: 0;
  }

  .about-intro {
    padding-block: 86px 64px;
  }

  .about-intro h1,
  .error-content h1 {
    font-size: 48px;
  }

  .about-lead {
    margin-top: 28px;
    font-size: 17px;
  }

  .about-story {
    padding-bottom: 90px;
  }

  .principles {
    padding-block: 72px;
  }

  .principles li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .principles li strong {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .nav a:nth-child(2) {
    display: none;
  }

  .note-copy {
    display: block;
  }

  .note-copy > span {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero > img,
  .hero-copy,
  .position-track i,
  .note-photo img {
    transition: none;
  }
}
