:root {
  --vermilion: #7c2337;
  --vermilion-deep: #5c1929;
  --navy: #1f5268;
  --navy-deep: #173d50;
  --paper: #f5efe3;
  --paper-light: #fffaf4;
  --brown: #49343d;
  --gold: #d4ae55;
  --willow: #5e7254;
  --ink: #251c20;
  --ink-soft: #66565e;
  --white: #fffdf8;
  --line: rgba(73, 52, 61, 0.18);
  --content: 70rem;
  --measure: 43rem;
  --shadow: 0 18px 50px rgba(73, 52, 61, 0.12);
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.8;
  letter-spacing: 0.035em;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--vermilion);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(243, 237, 223, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  color: var(--vermilion-deep);
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-decoration: none;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav-toggle {
  display: none;
  min-width: 3.6rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  color: var(--vermilion);
  box-shadow: inset 0 -2px 0 var(--vermilion);
}

main {
  overflow: hidden;
}

.hero {
  width: min(calc(100% - 2rem), var(--content));
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-top: 0.45rem solid var(--vermilion);
  border-radius: 1.2rem;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--vermilion);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.photo-spec__title,
.next-page a {
  line-break: strict;
  text-wrap: balance;
  word-break: auto-phrase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.025em;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
}

.hero__lead {
  max-width: 35rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--vermilion);
  border-radius: 999px;
  color: var(--white);
  background: var(--vermilion);
  font-weight: 800;
  text-decoration: none;
}

.button--ghost {
  color: var(--vermilion);
  background: transparent;
}

.section {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tint {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--content)) / 2));
  background: rgba(124, 35, 55, 0.07);
}

.section--navy {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--navy);
}

.section--navy .eyebrow {
  color: var(--gold);
}

.section--navy .section__lead,
.section--navy .prose p {
  color: rgba(255, 255, 255, 0.75);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 2.2rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.section__lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.site-photo {
  position: relative;
  min-height: 20rem;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.site-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.site-photo--hero {
  min-height: clamp(30rem, 53vw, 41rem);
}

.hero--home {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(42rem, calc(100svh - 4.5rem), 54rem);
  margin-top: 0;
  padding: clamp(3rem, 7vw, 6.5rem) max(1rem, calc((100% - var(--content)) / 2));
  display: flex;
  align-items: flex-end;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
  box-shadow: none;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 20, 30, 0.94) 0%, rgba(11, 32, 47, 0.8) 35%, rgba(11, 32, 47, 0.15) 72%),
    linear-gradient(0deg, rgba(6, 20, 30, 0.86) 0%, transparent 48%);
}

.hero--home::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--vermilion) 0 46%, var(--gold) 46% 54%, transparent 54%);
}

.hero--home .hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 52rem);
  padding: 0 0 clamp(1rem, 2vw, 2rem);
}

.hero--home .eyebrow {
  color: #e0bb72;
}

.hero--home h1 {
  max-width: 11em;
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  text-shadow: 0 0.08em 0.35em rgba(0, 0, 0, 0.36);
}

.hero--home .hero__lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.hero--home .button {
  border-color: var(--vermilion);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero--home .button--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(11, 32, 47, 0.35);
  backdrop-filter: blur(8px);
}

.hero--home .site-photo--hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.hero--home .site-photo--hero img {
  min-height: 100%;
  object-position: center 45%;
  animation: hero-reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero--home .site-photo--hero figcaption {
  right: max(1rem, calc((100% - var(--content)) / 2));
  bottom: 1.25rem;
  left: auto;
  z-index: 3;
  max-width: min(28rem, calc(100% - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 20, 30, 0.68);
}

@keyframes hero-reveal {
  from {
    opacity: 0.65;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-photo--wide {
  min-height: 25rem;
}

.site-photo--portrait {
  min-height: 31rem;
}

.site-photo--map {
  min-height: 0;
  background: #d8c9a7;
}

.site-photo--map img {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.site-photo--portrait img {
  object-position: center top;
}

.site-photo figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(11, 32, 47, 0.82);
  font-size: 0.76rem;
  line-height: 1.55;
  backdrop-filter: blur(7px);
}

.site-photo figcaption a {
  color: var(--white);
}

.site-photo--map figcaption {
  position: static;
  border-radius: 0;
  background: var(--navy-deep);
  backdrop-filter: none;
}

.route-map {
  max-width: 68rem;
}

.route-map img {
  aspect-ratio: 10 / 9;
}

.route-map__note {
  max-width: 52rem;
  margin-top: 2rem;
}

.map-open-link {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-light);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  padding: clamp(1.3rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper-light);
}

.card__num {
  color: var(--vermilion);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.card h3 {
  margin: 0.55rem 0;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--vermilion);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-bottom: 1rem;
}

.split .prose h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
}

.prose p {
  color: var(--ink-soft);
}

.fact-note {
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: rgba(177, 138, 69, 0.12);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  max-width: 55rem;
  margin-top: 2rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.timeline__year {
  color: var(--vermilion);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline__item h3,
.timeline__item p {
  margin: 0;
}

.timeline__item p {
  color: var(--ink-soft);
}

.route {
  display: grid;
  counter-reset: route;
  gap: 1rem;
  margin-top: 2rem;
}

.route__item {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.5rem;
  border-radius: 0.9rem;
  background: var(--paper-light);
  box-shadow: 0 8px 24px rgba(73, 52, 61, 0.08);
}

.route__item::before {
  counter-increment: route;
  content: counter(route, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  color: var(--vermilion);
  font-weight: 900;
}

.route__item h3,
.route__item p {
  margin: 0;
}

.route__item p {
  color: var(--ink-soft);
}

.external-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(124, 35, 55, 0.35);
  border-radius: 0.8rem;
  color: var(--vermilion-deep);
  background: var(--paper-light);
  font-weight: 800;
  text-decoration: none;
}

.next-page {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.2rem;
  color: var(--white);
  background: var(--vermilion-deep);
}

.next-page p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.next-page a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 700;
  text-decoration: none;
}

.global-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-deep);
}

.global-footer__main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
}

.global-footer__brand {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.global-footer__brand small {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
}

.global-footer__story {
  max-width: 27rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.global-footer__nav-title {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-footer__nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--white);
  text-decoration: none;
}

.global-footer__credits {
  border-block: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(124, 35, 55, 0.18);
}

.global-footer__credits-inner {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credit {
  padding: 0.4rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.credit:first-child {
  padding-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.credit:last-child {
  padding-right: 0;
}

.credit__label {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.credit__name {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.credit__link {
  color: var(--gold);
  font-size: 0.88rem;
  white-space: nowrap;
}

.global-footer__bottom {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 1.5rem 0 3.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.global-footer__bottom p {
  margin: 0;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.5rem;
    background: var(--paper-light);
  }

  .hero,
  .split,
  .global-footer__main,
  .global-footer__credits-inner {
    grid-template-columns: 1fr;
  }

  .global-footer__main {
    gap: 2.5rem;
  }

  .credit {
    padding: 1rem 0;
  }

  .credit:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    letter-spacing: 0.02em;
  }

  .brand {
    font-size: 1.08rem;
  }

  .hero {
    width: min(calc(100% - 1rem), var(--content));
    padding: 1rem;
  }

  .hero--home {
    width: 100%;
    min-height: calc(100svh - 4.5rem);
    padding: 5rem 1.25rem 2rem;
  }

  .hero__copy {
    padding: 1.4rem 0.25rem 0.5rem;
  }

  .hero--home::before {
    background:
      linear-gradient(0deg, rgba(6, 20, 30, 0.96) 0%, rgba(11, 32, 47, 0.72) 57%, rgba(11, 32, 47, 0.12) 100%),
      linear-gradient(90deg, rgba(6, 20, 30, 0.45), transparent 78%);
  }

  .hero--home .hero__copy {
    padding: 0 0 3.75rem;
  }

  .hero--home h1 {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  .hero--home .hero__lead {
    font-size: 0.98rem;
  }

  .hero--home .site-photo--hero {
    min-height: 100%;
  }

  .hero--home .site-photo--hero img {
    object-position: 58% center;
  }

  .hero--home .site-photo--hero figcaption {
    right: 1rem;
    bottom: 0.75rem;
    left: 1rem;
    max-width: none;
    font-size: 0.7rem;
  }

  .section {
    width: min(calc(100% - 1.5rem), var(--content));
  }

  .section--tint,
  .section--navy {
    width: 100%;
  }

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

  .site-photo,
  .site-photo--hero,
  .site-photo--wide,
  .site-photo--portrait {
    min-height: 24rem;
  }

  .site-photo--map {
    min-height: 0;
  }

  .walk-scope-heading {
    font-size: 1.5rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .next-page a {
    font-size: 1.22rem;
  }

  .global-footer__nav ul {
    gap: 0.4rem 1rem;
  }

  .global-footer__bottom {
    display: block;
    font-size: 0.82rem;
  }

  .global-footer__bottom p + p {
    margin-top: 0.5rem;
  }
}

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