/* ==========================================================================
   Kenya Gorilla Trekking — Travelmonke Tours and Travel
   Design system

   Concept: the product is a contrast between two ecosystems. Open savannah
   (light ground) and montane rainforest (dark ground). Sections alternate
   between the two, and the alternation carries meaning: Uganda and gorilla
   content sits on forest ground, Kenya safari content on savannah ground.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand — taken directly from the logo */
  --brand-green:   #3F6932;  /* logo wordmark */
  --brand-gold:    #F2C611;  /* logo sun */

  /* Ground */
  --forest:        #16281A;  /* dark bands — the brand green, deepened */
  --forest-deep:   #0D1A10;  /* footer, masthead */
  --forest-raise:  #233D24;  /* raised surface on dark ground */
  --savannah:      #EDE7D4;  /* light bands — dry grass */
  --savannah-warm: #F6F1E2;  /* raised surface on light ground */

  /* Ink */
  --ink:           #1B2A1C;
  --ink-soft:      #4C5C4B;
  --paper:         #F2EFE3;
  --paper-soft:    #AEBCA9;

  /* Accent */
  --marigold:      #F2C611;  /* the logo gold, used as the accent throughout */
  --marigold-deep: #7A6205;  /* darkened for legible links on light ground */
  --lichen:        #6F8F65;  /* also lifted from the logo's tree shading */

  /* Lines */
  --rule-dark:     rgba(242, 239, 227, 0.16);
  --rule-light:    rgba(27, 42, 28, 0.16);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Scale — 1.25 */
  --t-xs:   0.78rem;
  --t-sm:   0.9rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   1.5rem;
  --t-xl:   2rem;
  --t-2xl:  2.75rem;
  --t-3xl:  3.75rem;

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.875rem;
  --s-4: 1.25rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 7rem;

  --measure: 64ch;
  --wrap: 1200px;
}

/* --- Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--savannah);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-synthesis-weight: none;
}

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

/* --- Typography --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 6vw, var(--t-3xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--t-2xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--t-lg)); }
h4 { font-size: var(--t-md); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

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

.lede {
  font-size: clamp(1.15rem, 2.2vw, var(--t-md));
  line-height: 1.5;
  color: var(--ink-soft);
}

.dark .lede { color: var(--paper-soft); }

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.band {
  padding-block: var(--s-8);
  border-top: 1px solid var(--rule-light);
}

.band.dark {
  background: var(--forest);
  color: var(--paper);
  border-top-color: transparent;
}

.band.dark h1, .band.dark h2, .band.dark h3 { color: var(--paper); }

/* Field-guide layout: prose column plus a narrow margin column for verified
   facts. Collapses to a single column on small screens. */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: var(--s-6);
  align-items: start;
}

@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; gap: var(--s-5); }
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s-5);
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s-5);
}

/* --- Header ------------------------------------------------------------- */

.masthead {
  background: var(--forest-deep);
  color: var(--paper);
  font-family: var(--display);
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
  font-size: var(--t-sm);
}

.masthead__contact {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: var(--paper-soft);
}

.masthead__contact a { color: var(--paper); text-decoration: none; }
.masthead__contact a:hover { color: var(--marigold); }

.masthead__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule-dark);
}

.brand {
  font-weight: 800;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
  line-height: 1.1;
}

.masthead__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-sm);
}

.masthead__links a {
  text-decoration: none;
  color: var(--paper);
  padding-block: var(--s-1);
  border-bottom: 2px solid transparent;
}

.masthead__links a:hover,
.masthead__links a[aria-current="page"] {
  border-bottom-color: var(--marigold);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: var(--forest);
  color: var(--paper);
  padding-block: var(--s-8) var(--s-7);
}

.hero__answer {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s-5);
  max-width: 20ch;
}

.hero__answer em {
  font-style: normal;
  color: var(--marigold);
}

.hero__body { max-width: 54ch; }

.hero__body p { color: var(--paper-soft); font-size: var(--t-md); line-height: 1.55; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

/* --- Route diagram (the one motion moment) ------------------------------ */

.route {
  margin-top: var(--s-7);
  border-top: 1px solid var(--rule-dark);
  padding-top: var(--s-5);
}

.route__caption {
  font-family: var(--display);
  font-size: var(--t-sm);
  color: var(--paper-soft);
  margin-bottom: var(--s-4);
}

.route__svg { width: 100%; height: auto; }

.route__line {
  fill: none;
  stroke: var(--marigold);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .route__line { stroke-dashoffset: 0; animation: none; }
}

.route__dot { fill: var(--marigold); }
.route__label {
  fill: var(--paper);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}
.route__meta {
  fill: var(--paper-soft);
  font-family: var(--display);
  font-size: 11px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 0.85em 1.5em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--marigold); color: var(--forest); }
.btn--primary:hover { background: #FFD630; }

.btn--ghost { border-color: var(--rule-dark); color: var(--paper); }
.btn--ghost:hover { border-color: var(--marigold); color: var(--marigold); }

.btn--ink { background: var(--forest); color: var(--paper); }
.btn--ink:hover { background: var(--forest-raise); }

.btn--whatsapp { background: var(--lichen); color: #fff; }
.btn--whatsapp:hover { background: #5D7A4A; }

/* --- Margin notes (verified facts) -------------------------------------- */

.note {
  border-left: 3px solid var(--marigold);
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  font-size: var(--t-sm);
  line-height: 1.5;
}

.note h4 {
  font-size: var(--t-sm);
  margin-bottom: var(--s-2);
  letter-spacing: 0;
}

.note p { margin-bottom: var(--s-2); }
.note p:last-child { margin-bottom: 0; }

.note__figure {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: var(--s-1);
}

.dark .note { border-left-color: var(--marigold); color: var(--paper-soft); }
.dark .note h4 { color: var(--paper); }

.source {
  font-size: var(--t-xs);
  color: var(--ink-soft);
  font-style: italic;
}

.dark .source { color: var(--paper-soft); }

/* --- Cards -------------------------------------------------------------- */

.card {
  background: var(--savannah-warm);
  border: 1px solid var(--rule-light);
  padding: var(--s-5);
}

.dark .card {
  background: var(--forest-raise);
  border-color: var(--rule-dark);
}

.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: var(--t-sm); margin-bottom: var(--s-3); }
.card > :last-child { margin-bottom: 0; }

.card__link {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--marigold-deep);
}

.dark .card__link { color: var(--marigold); }

/* --- Tour cards --------------------------------------------------------- */

.tour {
  display: flex;
  flex-direction: column;
  background: var(--savannah-warm);
  border: 1px solid var(--rule-light);
}

.tour__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }

.tour__days {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--marigold-deep);
  margin-bottom: var(--s-2);
}

.tour__route {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.tour__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--t-sm);
}

/* --- Image slots -------------------------------------------------------- */

/* Honest placeholder: states exactly which photograph belongs here.
   Replace the whole figure with a real <img> once photography is supplied. */
.photo-slot {
  margin: 0 0 var(--s-4);
  border: 1px dashed var(--rule-light);
  background: rgba(26, 31, 27, 0.04);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  text-align: center;
}

.dark .photo-slot {
  border-color: var(--rule-dark);
  background: rgba(242, 240, 233, 0.04);
}

.photo-slot figcaption {
  font-family: var(--display);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  max-width: 30ch;
}

.dark .photo-slot figcaption { color: var(--paper-soft); }

.photo-slot code {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  word-break: break-all;
}

/* --- Comparison table --------------------------------------------------- */

.compare-scroll { overflow-x: auto; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  min-width: 34rem;
}

table.compare th,
table.compare td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule-light);
  vertical-align: top;
}

.dark table.compare th,
.dark table.compare td { border-bottom-color: var(--rule-dark); }

table.compare thead th {
  font-family: var(--display);
  font-size: var(--t-sm);
  border-bottom-width: 2px;
}

table.compare tbody th {
  font-family: var(--display);
  font-weight: 600;
  width: 12rem;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule-light); max-width: var(--measure); }

.faq details { border-bottom: 1px solid var(--rule-light); }

.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-md);
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--marigold-deep);
  flex: none;
}

.faq details[open] summary::after { content: "–"; }

.faq details > *:not(summary) { padding-bottom: var(--s-2); }

/* --- Placeholder block (content awaiting real supply) ------------------- */

.pending {
  border: 2px dashed var(--marigold-deep);
  background: rgba(212, 160, 23, 0.07);
  padding: var(--s-5);
  max-width: var(--measure);
}

.pending h3 { color: var(--marigold-deep); }
.pending p:last-child { margin-bottom: 0; }

/* --- Enquiry ------------------------------------------------------------ */

.enquiry {
  display: grid;
  gap: var(--s-4);
  max-width: 34rem;
}

.field { display: grid; gap: var(--s-2); }

.field label {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--t-sm);
  padding: 0.7em 0.8em;
  border: 1px solid var(--rule-dark);
  background: var(--forest-raise);
  color: var(--paper);
  border-radius: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--marigold); }

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--forest-deep);
  color: var(--paper-soft);
  padding-block: var(--s-7) var(--s-5);
  font-size: var(--t-sm);
}

.footer h4 { color: var(--paper); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.footer a { color: var(--paper); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--s-2); }
.footer p { max-width: 42ch; }

.footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-size: var(--t-xs);
}

.licence {
  font-family: var(--display);
  color: var(--paper);
}

/* --- Utilities ---------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--s-4);
  top: var(--s-4);
  z-index: 100;
  background: var(--marigold);
  color: var(--forest);
  padding: var(--s-3) var(--s-4);
}

.stack > * + * { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-6 { margin-bottom: var(--s-6); }

/* ==========================================================================
   Navigation — grouped disclosure menus.
   Built on <details> so it works with no JavaScript, is keyboard operable,
   and degrades to an accordion on narrow screens.
   ========================================================================== */

.masthead__toggle {
  display: none;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  background: none;
  border: 1px solid var(--rule-dark);
  color: var(--paper);
  padding: 0.55em 1em;
  cursor: pointer;
}

.nav { position: relative; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: var(--t-sm);
}

.nav__list > li { position: relative; }

.nav__list > li > a {
  text-decoration: none;
  color: var(--paper);
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.nav__list > li > a:hover,
.nav__list > li > a[aria-current="page"] { border-bottom-color: var(--marigold); }

.nav details > summary {
  list-style: none;
  cursor: pointer;
  color: var(--paper);
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.nav details > summary::-webkit-details-marker { display: none; }

.nav details > summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-0.1em, -0.1em);
}

.nav details[open] > summary,
.nav details > summary:hover { border-bottom-color: var(--marigold); }

.nav__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: -1rem;
  z-index: 60;
  min-width: 20rem;
  background: var(--forest-raise);
  border: 1px solid var(--rule-dark);
  padding: var(--s-4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.nav__panel ul { list-style: none; margin: 0; padding: 0; }
.nav__panel li + li { margin-top: var(--s-1); }

.nav__panel a {
  display: block;
  text-decoration: none;
  color: var(--paper);
  padding: 0.5em 0.6em;
  line-height: 1.3;
}

.nav__panel a:hover { background: rgba(212, 160, 23, 0.14); color: var(--marigold); }

.nav__panel a small {
  display: block;
  font-family: var(--body);
  font-size: var(--t-xs);
  color: var(--paper-soft);
  margin-top: 0.15em;
}

.nav__panel a:hover small { color: var(--paper-soft); }

.nav__lead {
  font-size: var(--t-xs);
  font-family: var(--body);
  color: var(--paper-soft);
  margin: 0 0 var(--s-3);
  padding-inline: 0.6em;
  max-width: none;
}

@media (max-width: 880px) {
  .masthead__toggle { display: block; }
  .masthead__nav { align-items: flex-start; }
  .nav { flex-basis: 100%; }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-top: 1px solid var(--rule-dark); }
  .nav__list > li > a,
  .nav details > summary { padding-block: var(--s-3); width: 100%; }
  .nav details > summary { justify-content: space-between; }
  .nav__panel {
    position: static;
    min-width: 0;
    border: none;
    border-left: 2px solid var(--marigold);
    box-shadow: none;
    background: transparent;
    padding: 0 0 var(--s-3) var(--s-3);
  }
}

/* --- Breadcrumbs -------------------------------------------------------- */

.crumbs {
  font-family: var(--display);
  font-size: var(--t-xs);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule-light);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}

.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--ink-soft); }
.crumbs a { color: var(--ink); }

.crumbs.on-dark { border-bottom-color: var(--rule-dark); background: var(--forest); }
.crumbs.on-dark ol { color: var(--paper-soft); }
.crumbs.on-dark li + li::before { color: var(--paper-soft); }
.crumbs.on-dark a { color: var(--paper); }

/* --- Page header -------------------------------------------------------- */

.page-head {
  background: var(--forest);
  color: var(--paper);
  padding-block: var(--s-7);
}

.page-head h1 { max-width: 22ch; }
.page-head .lede { max-width: 56ch; }

.page-head--light { background: var(--savannah); color: var(--ink); }
.page-head--light h1 { color: var(--ink); }

/* --- Article internals -------------------------------------------------- */

.prose h2 { margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.3em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose strong { font-weight: 600; }

.callout {
  background: var(--savannah-warm);
  border-left: 4px solid var(--lichen);
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-5);
  max-width: var(--measure);
}

.dark .callout { background: var(--forest-raise); border-left-color: var(--marigold); }
.callout > :last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: var(--s-2); }

/* --- Day-by-day sequence (genuinely ordered, so numbered) --------------- */

.days { list-style: none; margin: 0 0 var(--s-5); padding: 0; max-width: var(--measure); counter-reset: day; }

.days li {
  counter-increment: day;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule-light);
}

.dark .days li { border-top-color: var(--rule-dark); }

.days li::before {
  content: "Day " counter(day);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--marigold-deep);
  padding-top: 0.35em;
}

.dark .days li::before { color: var(--marigold); }

.days p { margin-bottom: 0; }
.days strong { display: block; font-family: var(--display); margin-bottom: var(--s-1); }

/* --- Related links ------------------------------------------------------ */

.related {
  border-top: 2px solid var(--ink);
  padding-top: var(--s-4);
  margin-top: var(--s-7);
}

.dark .related { border-top-color: var(--marigold); }

.related h3 { font-size: var(--t-md); }

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--s-3) var(--s-5);
}

.related a { font-family: var(--display); font-size: var(--t-sm); font-weight: 600; }

/* --- Inline CTA strip --------------------------------------------------- */

.strip {
  background: var(--forest-raise);
  color: var(--paper);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  max-width: var(--measure);
}

.strip h3 { color: var(--paper); font-size: var(--t-md); }
.strip p { color: var(--paper-soft); font-size: var(--t-sm); }
.strip > :last-child { margin-bottom: 0; }

.band.dark .strip { background: rgba(242, 240, 233, 0.06); }

/* ==========================================================================
   Imagery
   Photographs carry this site now, so the components below replace the
   placeholder slots. Every image is WebP and lazy-loaded below the fold.
   ========================================================================== */

/* --- Logo in the masthead ----------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}

.brand__logo {
  height: 58px;
  width: auto;
  flex: none;
}

.brand__tag {
  font-family: var(--body);
  font-size: var(--t-xs);
  color: var(--paper-soft);
  line-height: 1.25;
  max-width: 9ch;
  border-left: 1px solid var(--rule-dark);
  padding-left: var(--s-3);
}

@media (max-width: 620px) {
  .brand__logo { height: 40px; }
  .brand__tag { display: none; }
}

/* --- Hero with a photographic ground ------------------------------------ */

.hero { position: relative; overflow: hidden; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Scrim: dark enough on the left for the headline to hold AA contrast,
   opening up on the right so the photograph is still legible as a place. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(13, 26, 16, 0.94) 0%,
      rgba(13, 26, 16, 0.84) 40%,
      rgba(13, 26, 16, 0.42) 100%);
}

.hero > .wrap { position: relative; z-index: 1; }

/* --- Page header with a photographic ground ----------------------------- */

.page-head { position: relative; overflow: hidden; }

.page-head__bg { position: absolute; inset: 0; z-index: 0; }

.page-head__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-head__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(13, 26, 16, 0.92) 0%,
      rgba(13, 26, 16, 0.82) 46%,
      rgba(13, 26, 16, 0.40) 100%);
}

.page-head > .wrap { position: relative; z-index: 1; }

/* --- Standalone figures -------------------------------------------------- */

.figure { margin: 0 0 var(--s-5); }

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure figcaption {
  font-family: var(--display);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule-light);
  margin-top: var(--s-2);
}

.dark .figure figcaption,
.band.dark .figure figcaption {
  color: var(--paper-soft);
  border-top-color: var(--rule-dark);
}

.figure--wide img { aspect-ratio: 21 / 9; }

/* --- Images inside cards -------------------------------------------------- */

.card { padding: 0; overflow: hidden; }

.card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body { padding: var(--s-5); }
.card__body > :last-child { margin-bottom: 0; }

/* Cards without an image keep their original padding */
.card > h3:first-child,
.card > p:first-child { margin-left: var(--s-5); margin-right: var(--s-5); }
.card > h3:first-child { margin-top: var(--s-5); }

/* --- Tour cards ---------------------------------------------------------- */

.tour { overflow: hidden; }

.tour__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* --- Image credit note --------------------------------------------------- */

.credit {
  font-size: var(--t-xs);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-light);
  padding-top: var(--s-3);
  margin-top: var(--s-6);
}

.dark .credit { color: var(--paper-soft); border-top-color: var(--rule-dark); }

/* ==========================================================================
   Mobile refinements
   ========================================================================== */

@media (max-width: 620px) {
  /* The contact bar was running to three lines and pushing the logo down. */
  .masthead__bar { font-size: var(--t-xs); gap: var(--s-2) var(--s-3); }
  .masthead__contact { gap: var(--s-3); }
  .masthead__contact a[href^="mailto:"] { display: none; }

  /* Text runs full width on a phone, so the angled scrim leaves the lede
     sitting over the bright part of the photograph. Go uniform instead. */
  .hero__bg::after,
  .page-head__bg::after {
    background: linear-gradient(
      180deg,
      rgba(13, 26, 16, 0.78) 0%,
      rgba(13, 26, 16, 0.88) 55%,
      rgba(13, 26, 16, 0.94) 100%);
  }

  .hero { padding-block: var(--s-7) var(--s-6); }
  .page-head { padding-block: var(--s-6); }
  .hero__answer { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }

  /* Route diagram labels are unreadable at phone width; let it scroll. */
  .route { overflow-x: auto; }
  .route__svg { min-width: 640px; }
}

@media (max-width: 420px) {
  .masthead__contact span { display: none; }
}

/* ==========================================================================
   Overflow containment

   A `1fr` grid track has an automatic minimum of min-content, so a wide child
   (a comparison table, the route SVG) stretches the whole column and pushes
   the page wider than the viewport. minmax(0, 1fr) removes that floor, and
   min-width: 0 lets the scroll wrappers actually scroll.
   ========================================================================== */

.guide { grid-template-columns: minmax(0, 1fr) 15rem; }

@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
}

.guide > *,
.prose { min-width: 0; }

.compare-scroll,
.route {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Card grids: never let a track be wider than the screen */
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }

.prose ul,
.prose ol,
.prose p,
.days { max-width: min(var(--measure), 100%); }

.enquiry { max-width: min(34rem, 100%); }

html, body { overflow-x: hidden; }
