:root {
  --ink: #142d2a;
  --muted: #5d6b62;
  --paper: #f5ead3;
  --paper-light: #fbf6ea;
  --line: rgba(20, 45, 42, 0.14);
  --gold: #d2a24d;
  --gold-light: #e7c779;
  --green: #315b46;
  --blue: #153c55;
  --terracotta: #a84c29;
  --ivory: #e5d2ad;
  --brown: #263a32;
  --shadow: 0 22px 60px rgba(20, 45, 42, 0.12);
  --radius: 0.7rem;
  --content: 1120px;
  --nav-h: 3.6rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-light);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.is-home {
  background: var(--paper-light);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

cite {
  font-family: var(--font-display);
  font-style: italic;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--brown);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.view:focus-visible {
  outline: none;
}

.nav-backdrop {
  display: none;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 210;
  height: 3px;
  background: rgba(210, 162, 77, 0.18);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 6.5rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.reading .lead {
  color: rgba(245, 234, 211, 0.76);
}

.pullquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.verse {
  margin: 1.5rem 0;
  padding: 1.2rem 1.3rem;
  border-left: 2px solid var(--gold);
  background: rgba(210, 162, 77, 0.1);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
}

.verse cite {
  display: block;
  margin-top: 0.7rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--paper-light);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.journey li {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(210, 162, 77, 0.28);
  border-radius: 0.35rem;
  background: rgba(245, 234, 211, 0.09);
}

.journey li:not(:last-child)::after {
  content: "→";
  margin-left: 0.45rem;
  color: var(--gold);
}

/* Top chrome */
.topbar {
  position: sticky;
  top: 0;
  z-index: 160;
  min-height: var(--nav-h);
  padding: 0.45rem 0;
  color: var(--paper);
  background: rgba(20, 45, 42, 0.97);
  border-bottom: 1px solid rgba(210, 162, 77, 0.2);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--gold);
}

.brand-lockup__text {
  display: grid;
  line-height: 1.1;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-lockup small {
  margin-top: 0.2rem;
  color: rgba(245, 234, 211, 0.66);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.active-section-label {
  max-width: 11rem;
  overflow: hidden;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(210, 162, 77, 0.45);
  border-radius: 0.45rem;
  background: rgba(251, 246, 234, 0.06);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(210, 162, 77, 0.16);
  border-color: var(--gold);
  outline: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  margin: auto;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -0.35rem;
}

.nav-toggle span::after {
  top: 0.35rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.05rem;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.35rem;
  color: rgba(245, 234, 211, 0.78);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:first-child {
  color: var(--gold-light);
  background: rgba(210, 162, 77, 0.12);
}

.primary-nav .journey-nav-link,
.primary-nav .journey-nav-link:hover,
.primary-nav .journey-nav-link:focus-visible {
  margin-left: 0.35rem;
  padding-inline: 0.8rem;
  color: var(--ink);
  background: var(--gold-light);
  font-weight: 750;
}

.primary-nav .journey-nav-link:hover,
.primary-nav .journey-nav-link:focus-visible {
  background: var(--gold);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--paper-light);
  background: rgba(210, 162, 77, 0.18);
  outline: none;
}

/* Views */
.view {
  display: block;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.view.is-active {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translateY(1.5%);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

/* Home hero */
.home-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper-light);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20, 45, 42, 0.44) 0%, rgba(20, 45, 42, 0.62) 38%, rgba(20, 45, 42, 0.94) 100%),
    url("assets/painting/ascent_max.png") center top / cover no-repeat;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 44rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.home-hero .eyebrow {
  color: var(--gold-light);
  animation: fade-in 0.8s var(--ease) 0.1s both;
}

.home-hero h1 {
  animation: rise 0.9s var(--ease) 0.18s both;
}

.home-hero__lead {
  max-width: 28rem;
  margin-bottom: 1.8rem;
  color: rgba(251, 248, 241, 0.82);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.4;
  animation: rise 0.9s var(--ease) 0.28s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.38s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: var(--brown);
  background: var(--gold-light);
}

.btn-ghost {
  color: var(--paper-light);
  border-color: rgba(216, 189, 122, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
  color: var(--paper-light);
  border-color: rgba(210, 162, 77, 0.45);
  background: rgba(251, 246, 234, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

#colour .next-paths .btn-secondary {
  color: var(--ink);
  border-color: rgba(20, 45, 42, 0.35);
  background: rgba(49, 91, 70, 0.08);
}

#colour .next-paths .btn-secondary:hover,
#colour .next-paths .btn-secondary:focus-visible {
  color: var(--paper-light);
  border-color: var(--green);
  background: var(--green);
}

.paths {
  padding: 1.5rem 0 4rem;
  background: var(--paper);
  color: var(--ink);
}

.paths__head {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.path-card {
  display: grid;
  gap: 0.35rem;
  min-height: 7.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.path-card:hover,
.path-card:focus-visible {
  border-color: rgba(181, 138, 58, 0.55);
  background-color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.path-card__num {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.path-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.path-card__time {
  margin-top: 0.15rem;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold) !important;
}

.path-card--wide .path-card__time {
  color: var(--gold-light) !important;
}

.path-card--wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(120deg, rgba(20, 45, 42, 0.94), rgba(21, 60, 85, 0.92)),
    url("assets/symbols/birds.png") center / cover;
  color: var(--paper-light);
  border-color: transparent;
}

.path-card--wide span {
  color: rgba(251, 248, 241, 0.75);
}

.path-card--wide .path-card__num {
  color: var(--gold-light);
}

/* Reading layout */
.reading {
  min-height: calc(100svh - var(--nav-h));
  padding: 2rem 0 4.5rem;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(49, 91, 70, 0.22), transparent 58%),
    var(--ink);
}

.reading__header {
  max-width: 42rem;
  margin-bottom: 2rem;
  padding: 0 0 1.35rem 1.1rem;
  border-left: 2px solid var(--gold);
  border-bottom: 1px solid rgba(210, 162, 77, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.reading__header > .eyebrow,
.reading__header > h2 {
  flex-basis: 100%;
}

.reading__prose {
  max-width: 42rem;
  color: rgba(245, 234, 211, 0.84);
}

.reading__prose h3,
.reading__prose strong {
  color: var(--paper-light);
}

.reading .pullquote {
  color: var(--paper-light);
}

.reading .verse {
  color: var(--paper);
  background: rgba(251, 246, 234, 0.07);
}

.reading .verse cite {
  color: var(--gold-light);
}

.reading .back-home {
  color: rgba(245, 234, 211, 0.66);
}

.reading__prose p:last-child {
  margin-bottom: 0;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-home:hover,
.back-home:focus-visible {
  color: var(--gold-light);
  outline: none;
}

.gallery-beats {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.jump-select {
  display: block;
  margin-bottom: 0.5rem;
}

.jump-select select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .jump-select {
    position: sticky;
    top: calc(var(--nav-h) + 0.5rem);
    z-index: 5;
  }
}

.beat {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(210, 162, 77, 0.2);
  border-radius: 0.5rem;
  background: rgba(251, 246, 234, 0.055);
}

.beat__num {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.beat ul {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
  color: rgba(245, 234, 211, 0.74);
}

.poem {
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.55;
}

.poem p {
  margin-bottom: 1.6rem;
}

.legacy-sign {
  margin-top: 2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.next-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(210, 162, 77, 0.25);
}

/* Symbols */
.symbols-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.symbol-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.symbol-search {
  flex: 1 1 12rem;
  display: block;
}

.symbol-search input {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(210, 162, 77, 0.28);
  border-radius: 0.4rem;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.symbol-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.symbol-empty {
  margin-top: 1.5rem;
  color: rgba(245, 234, 211, 0.76);
  font-size: 0.92rem;
}

.tool-btn {
  min-height: 2.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(210, 162, 77, 0.38);
  border-radius: 0.4rem;
  background: rgba(251, 246, 234, 0.08);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-btn:hover,
.tool-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  outline: none;
}

.symbol-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.symbol-panel {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
  overflow: hidden;
  border: 1px solid rgba(210, 162, 77, 0.2);
  border-radius: 0.55rem;
  background: rgba(251, 246, 234, 0.96);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.symbol-panel[open] {
  border-color: rgba(210, 162, 77, 0.55);
  background: #fffdf7;
  box-shadow: 0 8px 24px rgba(7, 20, 17, 0.15);
}

.symbol-panel summary {
  list-style: none;
  cursor: pointer;
}

.symbol-panel summary::-webkit-details-marker {
  display: none;
}

.symbol-summary {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 4rem;
  padding: 0.55rem 0.7rem;
}

.symbol-thumb {
  width: 2.6rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.45rem;
  border: 1px solid rgba(20, 45, 42, 0.12);
}

.symbol-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symbol-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 560;
}

.symbol-title small {
  display: block;
  margin-top: 0.15rem;
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.symbol-toggle {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(20, 45, 42, 0.18);
  border-radius: 50%;
  color: var(--green);
}

.symbol-toggle::before,
.symbol-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.symbol-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.25s ease;
}

.symbol-panel[open] .symbol-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.symbol-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.15rem 0.7rem 0.8rem;
  color: rgba(20, 45, 42, 0.82);
  font-size: 0.83rem;
  line-height: 1.55;
}

.symbol-content img {
  display: block;
  width: min(100%, 18rem);
  max-height: 16rem;
  height: auto;
  object-fit: contain;
  justify-self: center;
  border-radius: 0.4rem;
  border: 1px solid rgba(20, 45, 42, 0.12);
}

.symbol-content p:last-child {
  margin-bottom: 0;
}

.symbol-content .pullquote {
  font-size: 1.35rem;
}

.closing-band {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid rgba(210, 162, 77, 0.35);
  background: var(--green);
  color: var(--paper-light);
}

.closing-band .eyebrow {
  color: var(--gold-light);
}

.closing-band p {
  max-width: 46rem;
  color: rgba(251, 248, 241, 0.8);
}

.blessing {
  margin-top: 1.2rem !important;
  color: #fff !important;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

/* Colour story */
.colour-hero {
  position: relative;
  min-height: 52svh;
  display: grid;
  align-items: end;
  margin: 0 0 2rem;
  padding: 5rem 0 2.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.4rem);
  color: var(--paper-light);
  background:
    linear-gradient(120deg, rgba(20, 45, 42, 0.96) 0 42%, rgba(20, 45, 42, 0.72) 70%, rgba(20, 45, 42, 0.9)),
    linear-gradient(35deg, var(--terracotta), var(--gold) 38%, var(--green) 39% 58%, var(--blue) 59% 78%, var(--brown) 79%);
}

.colour-hero::before,
.colour-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(210, 162, 77, 0.45);
  border-radius: 50%;
  pointer-events: none;
}

.colour-hero::before {
  width: min(50vw, 28rem);
  aspect-ratio: 1;
  right: -8vw;
  top: -12vw;
}

.colour-hero::after {
  width: min(28vw, 14rem);
  aspect-ratio: 1;
  right: 14vw;
  bottom: -10vw;
}

.colour-hero .container {
  position: relative;
  z-index: 1;
}

.colour-hero .eyebrow {
  color: var(--gold-light);
}

.colour-hero p {
  max-width: 34rem;
  color: rgba(251, 248, 241, 0.8);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 18rem;
  margin: 0 0 2.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
}

.palette__item {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 1rem;
  border: 0;
  color: #fff;
  background: var(--tone);
  text-decoration: none;
  transition: flex 0.35s var(--ease), filter 0.25s ease;
}

.palette__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(25, 20, 16, 0.72));
}

.palette__item:hover,
.palette__item:focus-visible {
  flex: 1.25;
  filter: saturate(1.08) brightness(1.04);
  outline: 3px solid var(--paper-light);
  outline-offset: -5px;
}

.palette__label {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.palette__label strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.palette__label span {
  display: block;
  margin-right: 0.3rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.palette__item--ivory {
  color: var(--ink);
}

.palette__item--ivory::before {
  background: linear-gradient(transparent 35%, rgba(57, 45, 38, 0.28));
}

.palette__item--ivory .palette__label span {
  color: rgba(36, 31, 26, 0.66);
}

.colour-accordion {
  border-top: 1px solid var(--line);
}

.colour-panel {
  --accent: var(--gold);
  margin-bottom: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.colour-panel[open] {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: #fffdf7;
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

.colour-panel summary {
  list-style: none;
  cursor: pointer;
}

.colour-panel summary::-webkit-details-marker {
  display: none;
}

.colour-summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0.9rem;
}

.swatch {
  width: 2.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 7px 18px rgba(57, 45, 38, 0.12);
}

.colour-summary strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 560;
}

.colour-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.colour-body {
  max-width: 44rem;
  margin: 0 1rem 1.1rem 4.5rem;
  color: #554d45;
  font-size: 0.93rem;
}

.colour-body .pullquote {
  border-left-color: var(--accent);
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.2rem 0 2.5rem;
}

.pair {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
}

.pair__dots {
  display: flex;
  margin-bottom: 1.5rem;
}

.pair__dots span {
  width: 2.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--first);
}

.pair__dots span + span {
  margin-left: -0.75rem;
  background: var(--second);
  mix-blend-mode: multiply;
}

.pair h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.pair p {
  margin: 0;
  color: var(--muted);
}

.philosophy {
  margin-top: 1rem;
  padding: 1.8rem;
  border-radius: calc(var(--radius) + 0.2rem);
  border: 1px solid rgba(210, 162, 77, 0.35);
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--paper);
}

.philosophy h2,
.philosophy .pullquote {
  color: var(--paper-light);
}

.philosophy .eyebrow {
  color: var(--gold-light);
}

.philosophy > p:not(.eyebrow):not(.pullquote),
.philosophy .statement span:last-child {
  color: rgba(245, 234, 211, 0.78);
}

.philosophy .statements {
  border-color: rgba(210, 162, 77, 0.3);
}

.philosophy .statement {
  border-color: rgba(210, 162, 77, 0.22);
}

.philosophy .statement strong {
  color: var(--paper-light);
}

.colour-extra {
  max-width: 46rem;
}

.colour-extra p {
  color: var(--ink);
}

.colour-extra p + p {
  margin-top: 0.9rem;
}

.statements {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.statement {
  display: grid;
  grid-template-columns: 1.4rem 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.statement__dot {
  width: 0.95rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tone);
}

.statement strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
}

.statement span:last-child {
  color: var(--muted);
}

.site-footer {
  padding: 1.4rem 0;
  color: rgba(251, 248, 241, 0.68);
  background: var(--ink);
  border-top: 1px solid rgba(210, 162, 77, 0.22);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-reading-controls {
  display: none;
}

@media (max-width: 900px) {
  .active-section-label {
    max-width: 7rem;
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(34rem, calc(100vw - 2rem));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.65rem;
    border: 1px solid rgba(210, 162, 77, 0.3);
    border-radius: 0.65rem;
    background: rgba(20, 45, 42, 0.98);
    box-shadow: 0 20px 55px rgba(7, 20, 17, 0.32);
  }

  .primary-nav a {
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
  }

  .primary-nav a:first-child {
    grid-column: 1 / -1;
  }

  .primary-nav .journey-nav-link {
    grid-column: 1 / -1;
    justify-content: center;
    margin-left: 0;
  }

  body.nav-open .primary-nav {
    display: grid;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.has-active-reading .mobile-reading-controls {
    position: fixed;
    inset: auto 0 0;
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(210, 162, 77, 0.32);
    background: rgba(20, 45, 42, 0.98);
    box-shadow: 0 -8px 24px rgba(7, 20, 17, 0.18);
    backdrop-filter: blur(12px);
  }

  body.nav-open .mobile-reading-controls,
  body.is-immersive .mobile-reading-controls {
    display: none !important;
  }

  .mobile-reading-controls.is-first,
  .mobile-reading-controls.is-last {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-reading-controls a {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
    border-radius: 0.35rem;
    color: var(--paper-light);
    text-align: center;
    text-decoration: none;
  }

  .mobile-reading-controls a:hover,
  .mobile-reading-controls a:focus-visible {
    background: rgba(210, 162, 77, 0.16);
    outline: 1px solid rgba(210, 162, 77, 0.5);
  }

  .mobile-reading-controls small,
  .mobile-reading-controls strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-reading-controls small {
    color: rgba(245, 234, 211, 0.62);
    font-size: 0.6rem;
    line-height: 1.1;
  }

  .mobile-reading-controls strong {
    color: var(--gold-light);
    font-size: 0.72rem;
    line-height: 1.2;
  }

  #mobile-prev,
  #mobile-next {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  #mobile-prev[hidden],
  #mobile-next[hidden] {
    display: none;
  }

  #mobile-prev > span,
  #mobile-next > span {
    grid-row: 1 / 3;
    color: var(--gold);
    font-size: 1.1rem;
  }

  #mobile-next > span {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  #mobile-next small,
  #mobile-next strong {
    grid-column: 1;
  }

  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(7, 20, 17, 0.58);
  }

  .symbols-hero {
    grid-template-columns: 1fr;
  }

  .symbol-tools {
    justify-content: flex-start;
  }

  .palette {
    grid-template-columns: repeat(3, 1fr);
    min-height: 24rem;
  }

  .palette__label {
    writing-mode: initial;
    transform: none;
  }

  .pair-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .active-section-label {
    max-width: 5.2rem;
    font-size: 0.58rem;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card--wide {
    grid-column: auto;
  }

  .palette {
    grid-template-columns: repeat(2, 1fr);
    min-height: 30rem;
  }

  .pair-grid {
    grid-template-columns: 1fr;
  }

  .symbol-summary {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .symbol-thumb {
    width: 2.6rem;
  }

  .symbol-list {
    grid-template-columns: 1fr;
  }

  .symbol-title small {
    white-space: normal;
  }

  .colour-body {
    margin-left: 0;
  }

  .statement {
    grid-template-columns: 1.1rem 5.8rem 1fr;
    gap: 0.45rem;
  }

  .site-footer__inner {
    display: block;
  }
}

.immersive-close {
  display: none;
}

body.is-immersive .topbar,
body.is-immersive .back-home,
body.is-immersive .next-paths,
body.is-immersive .section-rail,
body.is-immersive .reading-progress,
body.is-immersive .active-section-label {
  display: none !important;
}

body.is-immersive #immersive-toggle {
  display: none;
}

body.is-immersive .poem {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

body.is-immersive .immersive-close {
  display: block;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 200;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(210, 162, 77, 0.45);
  border-radius: 50%;
  background: rgba(20, 45, 42, 0.96);
  color: var(--paper-light);
  font-size: 1rem;
  cursor: pointer;
}

body.is-immersive .immersive-close:hover,
body.is-immersive .immersive-close:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

body.is-immersive .immersive-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Section index rail (desktop only) */
.section-rail {
  display: none;
}

@media (min-width: 1240px) {
  body.has-active-reading:not(.is-immersive) .section-rail {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: fixed;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    z-index: 20;
    padding: 1rem 0.9rem;
    border: 1px solid rgba(210, 162, 77, 0.3);
    border-radius: 0.55rem;
    background: rgba(20, 45, 42, 0.96);
    backdrop-filter: blur(8px);
    max-width: 12.5rem;
  }

  .section-rail a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(245, 234, 211, 0.68);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .section-rail a[aria-current="page"] {
    color: var(--gold-light);
    font-weight: 700;
  }

  .section-rail__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--line);
    flex: none;
  }

  .section-rail a[aria-current="page"] .section-rail__dot {
    background: var(--gold);
  }

  .section-rail a:hover .section-rail__dot,
  .section-rail a:focus-visible .section-rail__dot {
    background: var(--gold-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
