/* JK Away. No JavaScript, no third-party assets: fonts are self-hosted (OFL, see fonts/OFL.txt). */

@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/assets/fonts/newsreader-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/assets/fonts/instrument-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ivory: #F6F2EB;  /* page: heavy writing paper */
  --ink: #1C1916;    /* espresso: text, buttons */
  --stone: #5F574D;  /* secondary text (6.4:1 on ivory) */
  --brass: #7E6138;  /* labels and numerals (5.2:1 on ivory) */
  --gilt: #B8955A;   /* route and stops: decorative only */
  --dot: #D2C8B8;    /* land dots */
  --rule: #E0D8CB;   /* hairlines */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --column: 70rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --pad: max(var(--gutter), calc((100% - var(--column)) / 2));
  --space: clamp(5.5rem, 13vw, 10rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gilt); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  font: 600 0.75rem/1.4 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.skip-link {
  position: absolute; left: var(--pad); top: -3rem;
  background: var(--ink); color: var(--ivory); padding: 0.5rem 0.9rem; z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 var(--pad); padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.01em;
  text-decoration: none;
}
.site-header ul { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  text-decoration: none; color: var(--stone);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav .nav-cta { color: var(--ink); border-bottom: 1px solid var(--gilt); padding-bottom: 0.2rem; }

/* Hero */
.hero { padding: clamp(4rem, 11vw, 8rem) var(--pad) 0; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  color: var(--stone);
}

/* The map: the page's one moving moment. The route draws itself once on load. */
.map { margin: clamp(3.5rem, 8vw, 6rem) 0 0; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-land { stroke: var(--dot); stroke-width: 3.2; stroke-linecap: round; fill: none; }
.map-route {
  fill: none; stroke: var(--gilt); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: route-draw 32s linear .6s both;
}
/* 50 stops. Each lights up when the traveller reaches it; the delays are generated from the route length. */
.stop { fill: var(--ink); stroke: var(--ivory); stroke-width: 1.5; animation: stop-in .35s ease-out both; }
.stop-last { fill: var(--gilt); }
.s1 { animation-delay: 0.60s; }
.s2 { animation-delay: 2.49s; }
.s3 { animation-delay: 3.40s; }
.s4 { animation-delay: 3.80s; }
.s5 { animation-delay: 4.13s; }
.s6 { animation-delay: 5.01s; }
.s7 { animation-delay: 5.74s; }
.s8 { animation-delay: 6.21s; }
.s9 { animation-delay: 6.92s; }
.s10 { animation-delay: 9.52s; }
.s11 { animation-delay: 9.79s; }
.s12 { animation-delay: 10.15s; }
.s13 { animation-delay: 10.54s; }
.s14 { animation-delay: 10.67s; }
.s15 { animation-delay: 10.91s; }
.s16 { animation-delay: 11.63s; }
.s17 { animation-delay: 12.88s; }
.s18 { animation-delay: 13.05s; }
.s19 { animation-delay: 13.36s; }
.s20 { animation-delay: 13.68s; }
.s21 { animation-delay: 13.78s; }
.s22 { animation-delay: 13.88s; }
.s23 { animation-delay: 14.18s; }
.s24 { animation-delay: 14.33s; }
.s25 { animation-delay: 14.53s; }
.s26 { animation-delay: 14.74s; }
.s27 { animation-delay: 15.02s; }
.s28 { animation-delay: 15.25s; }
.s29 { animation-delay: 15.66s; }
.s30 { animation-delay: 15.82s; }
.s31 { animation-delay: 16.59s; }
.s32 { animation-delay: 17.79s; }
.s33 { animation-delay: 17.99s; }
.s34 { animation-delay: 19.28s; }
.s35 { animation-delay: 20.85s; }
.s36 { animation-delay: 21.42s; }
.s37 { animation-delay: 22.18s; }
.s38 { animation-delay: 22.44s; }
.s39 { animation-delay: 23.19s; }
.s40 { animation-delay: 24.24s; }
.s41 { animation-delay: 24.37s; }
.s42 { animation-delay: 24.66s; }
.s43 { animation-delay: 25.33s; }
.s44 { animation-delay: 25.44s; }
.s45 { animation-delay: 26.00s; }
.s46 { animation-delay: 27.65s; }
.s47 { animation-delay: 28.43s; }
.s48 { animation-delay: 31.20s; }
.s49 { animation-delay: 32.25s; }
.s50 { animation-delay: 32.60s; }
.traveller { fill: var(--gilt); stroke: var(--ivory); stroke-width: 1.5; animation: stop-in .2s ease-out .6s both; }
.stop-ring {
  fill: none; stroke: var(--gilt); stroke-width: 1; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: ring 3.2s ease-out 32.8s infinite;
}

@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes stop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ring {
  0% { opacity: .8; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(3.4); }
}

/* Our approach */
.approach { padding: var(--space) var(--pad) 0; }
.approach h2, .partners h2 {
  font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.015em; line-height: 1.1;
  max-width: 22ch;
}

.steps {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; gap: 2.75rem clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
.steps li::before {
  content: counter(step, upper-roman);
  display: block; margin-bottom: 1.1rem;
  font: 400 0.8rem/1 var(--sans); letter-spacing: 0.2em; color: var(--brass);
}
.steps h3 { font-size: 1.6rem; line-height: 1.2; }
.steps p { margin-top: 0.75rem; color: var(--stone); }

/* Belief line */
.belief { padding: var(--space) var(--pad) 0; text-align: center; }
.belief p {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 auto;
}
.belief p::before, .belief p::after {
  content: ""; display: block; width: 3rem; height: 1px; background: var(--gilt); margin: 0 auto;
}
.belief p::before { margin-bottom: clamp(2rem, 4vw, 3rem); }
.belief p::after { margin-top: clamp(2rem, 4vw, 3rem); }

/* Partners */
.partners { padding: var(--space) var(--pad); }
.partners > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 36rem; color: var(--stone); font-size: 1.125rem; }
.button {
  display: inline-block; margin-top: 2.25rem;
  background: var(--ink); color: var(--ivory); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.button:hover { background: transparent; color: var(--ink); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin: 0 var(--pad); padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--rule);
  color: var(--stone); font-size: 0.875rem; letter-spacing: 0.02em;
}

/* 404 */
.not-found { padding: clamp(4rem, 11vw, 8rem) var(--pad) var(--space); }
.not-found h1 { font-size: clamp(2.25rem, 5vw, 3.9rem); line-height: 1.06; max-width: 16ch; letter-spacing: -0.015em; }
.not-found p:not(.eyebrow) { margin-top: 1.25rem; color: var(--stone); font-size: 1.125rem; }

@media (max-width: 36rem) {
  .site-header nav li:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map-route, .stop, .stop-ring { animation: none; }
  .traveller { display: none; }
  .button { transition: none; }
}
