/* ============================================================
   Gavilan Sportfishing
   Palette drawn from Lake Gatun: tannic water, drowned timber,
   silt haze, and the gill flare of a peacock bass.
   ============================================================ */

:root {
  --gatun:  #10261f;   /* deep tannic canal green — ink and dark grounds */
  --gatun-2:#1b3a30;   /* lifted green for panels on dark                */
  --stump:  #6b6a57;   /* drowned timber grey-brown — secondary text     */
  --silt:   #dce0d5;   /* pale silt-green — page ground                  */
  --haze:   #f0f2ec;   /* card surface                                   */
  --flare:  #d2551e;   /* peacock bass gill flare — the one accent       */
  --brass:  #c08a2b;   /* tail gold — numerals and rules                 */

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Newsreader', Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 74rem;
}

*, *::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: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--silt);
  color: var(--gatun);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .3vw, 1.125rem);
  line-height: 1.62;
  font-optical-sizing: auto;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--gatun); color: var(--haze);
  padding: .75rem 1.25rem; font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 0; }

/* ---------- shared type devices ---------- */

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flare);
}

.section__title {
  margin: 0 0 .6rem;
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 800;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.section__lede {
  margin: 0;
  max-width: 46ch;
  color: color-mix(in srgb, var(--gatun) 74%, var(--silt));
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--flare { background: var(--flare); color: #fff; }
.btn--flare:hover { background: var(--gatun); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--lg { padding: 1.15rem 2.25rem; font-size: .85rem; }

/* ---------- masthead ---------- */

.masthead {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.5rem var(--gut);
  color: var(--haze);
}

.wordmark {
  display: inline-flex; flex-direction: column; line-height: .95;
  text-decoration: none; font-family: var(--display);
  text-transform: uppercase;
}
.wordmark__a { font-variation-settings: 'wdth' 118, 'wght' 800; font-size: 1.15rem; letter-spacing: -.01em; }
.wordmark__b { font-variation-settings: 'wdth' 100, 'wght' 500; font-size: .62rem; letter-spacing: .3em; color: var(--brass); }

.masthead__nav { display: none; gap: 1.75rem; margin-left: auto; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.masthead__nav a { text-decoration: none; opacity: .85; }
.masthead__nav a:hover { opacity: 1; color: var(--brass); }

.masthead__cta { display: none; }

@media (min-width: 62rem) {
  .masthead__nav { display: flex; }
  .masthead__cta { display: inline-block; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: min(92vh, 54rem); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11,26,21,.9) 0%, rgba(11,26,21,.62) 42%, rgba(11,26,21,.12) 78%),
    linear-gradient(to top, rgba(16,38,31,.94) 0%, rgba(16,38,31,.5) 40%, rgba(16,38,31,.15) 66%, rgba(16,38,31,.6) 100%);
}
.hero__body { position: relative; padding: 8rem var(--gut) 2.5rem; color: var(--haze); max-width: var(--max); }

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 800;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.022em;
  text-transform: uppercase;
}

.hero__lede { margin: 0 0 2rem; max-width: 46ch; color: rgba(240,242,236,.86); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* the data plate — nautical chart legend register */
.plate {
  position: relative; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: rgba(16,38,31,.92);
  border-top: 1px solid rgba(192,138,43,.4);
  font-family: var(--mono);
}
.plate__cell { padding: .9rem var(--gut); border-bottom: 1px solid rgba(240,242,236,.1); }
.plate dt { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.plate dd { margin: .3rem 0 0; font-size: .8rem; color: rgba(240,242,236,.92); }

@media (min-width: 48rem) {
  .plate { grid-template-columns: repeat(4, 1fr); }
  .plate__cell { border-bottom: 0; }
  .plate__cell + .plate__cell { border-left: 1px solid rgba(240,242,236,.1); }
}

/* ---------- trust strip ---------- */

.trust {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gut) 0;
  gap: 1.75rem 1rem;
}
.trust__item b {
  display: block; font-family: var(--display);
  font-variation-settings: 'wdth' 115, 'wght' 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1;
  color: var(--gatun);
}
.trust__item b i { font-style: normal; font-size: .5em; color: var(--brass); }
.trust__item span {
  display: block; margin-top: .4rem; max-width: 22ch;
  font-family: var(--mono); font-size: .7rem; line-height: 1.5;
  letter-spacing: .04em; color: var(--stump);
}
@media (min-width: 48rem) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- generic section ---------- */

.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 9vw, 7rem) var(--gut); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.section--dark {
  max-width: none;
  background: var(--gatun);
  color: var(--haze);
}
.section--dark .section__head,
.section--dark .species,
.section--dark .cols,
.section--dark .tags { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--dark .section__lede { color: rgba(240,242,236,.76); }
.section--dark .eyebrow { color: var(--brass); }

/* ---------- trips ---------- */

.trip {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(107,106,87,.28);
}
.trip:last-of-type { border-bottom: 0; }

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

.trip__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .4rem; }

.trip__name {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 106, 'wght' 750;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.trip__score { margin: 0; font-family: var(--mono); font-size: .75rem; color: var(--stump); }
.trip__score b { color: var(--brass); font-size: 1.05rem; }

.trip__spec { margin: 0 0 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--stump); }
.trip__copy { margin: 0 0 1.75rem; max-width: 48ch; }

@media (min-width: 56rem) {
  .trip { grid-template-columns: 5fr 6fr; align-items: start; }
  /* mirror the column ratio too, so the body — and the rail inside it — keeps
     the same width in both directions and the bars stay comparable across trips */
  .trip--flip { grid-template-columns: 6fr 5fr; }
  .trip--flip .trip__media { order: 2; }
}

/* ---------- the signature: hours-on-the-water rail ---------- */

.rail {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.1rem .8rem;
  background: var(--haze);
  border-left: 2px solid var(--brass);
}

.rail__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem .9rem;
  padding: .45rem 0;
}

/* narrow screens: name and price share the first line, track spans beneath */
.rail__name  { grid-row: 1; grid-column: 1; font-family: var(--mono); font-size: .74rem; color: var(--gatun); }
.rail__price { grid-row: 1; grid-column: 2; font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--flare); text-align: right; }

.rail__track {
  grid-row: 2; grid-column: 1 / -1;
  position: relative; display: block; height: 9px;
  background: repeating-linear-gradient(
    to right,
    rgba(107,106,87,.22) 0 1px,
    transparent 1px 11.111%
  );
  border-bottom: 1px solid rgba(107,106,87,.3);
}
.rail__track i {
  position: absolute; top: 0; bottom: 1px;
  left: var(--s); width: var(--w);
  background: var(--gatun);
}
.rail__row--fly .rail__track i {
  background: repeating-linear-gradient(
    45deg, var(--gatun) 0 4px, var(--gatun-2) 4px 8px
  );
}

/* the scale spans 06:00–15:00 in nine equal hour cells, matching the track
   ticks; labels sit at the start of their own hour, not spread edge to edge */
.rail__scale {
  display: grid; grid-template-columns: repeat(9, 1fr);
  margin-top: .5rem; padding-top: .4rem;
  border-top: 1px solid rgba(107,106,87,.2);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: var(--stump);
}
.rail__scale span:nth-child(1) { grid-column: 1; }
.rail__scale span:nth-child(2) { grid-column: 3; }
.rail__scale span:nth-child(3) { grid-column: 5; }
.rail__scale span:nth-child(4) { grid-column: 7; }
.rail__scale span:nth-child(5) { grid-column: 9; }

@media (min-width: 34rem) {
  .rail__row { grid-template-columns: 13rem minmax(0, 1fr) 4rem; }
  .rail__name  { grid-row: auto; grid-column: auto; }
  .rail__price { grid-row: auto; grid-column: auto; }
  .rail__track { grid-row: auto; grid-column: auto; }
  /* clear the name and price columns plus the .9rem row gap on each side */
  .rail__scale { margin-left: calc(13rem + .9rem); margin-right: calc(4rem + .9rem); }
}

.note { margin: 0; font-family: var(--mono); font-size: .72rem; line-height: 1.7; color: var(--stump); max-width: 52ch; }

/* ---------- flooded forest band ---------- */

.band { position: relative; margin: 0; }
.band img { width: 100%; height: clamp(20rem, 62vh, 40rem); object-fit: cover; }
.band__caption {
  max-width: var(--max);
  margin: -3.5rem auto 0;
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--gatun); color: var(--haze);
  width: calc(100% - (var(--gut) * 2));
}
.band__caption p:last-child { margin: 0; max-width: 58ch; }
@media (min-width: 62rem) {
  .band__caption { margin-top: -6rem; width: min(46rem, calc(100% - (var(--gut) * 2))); margin-right: var(--gut); margin-left: auto; }
}

/* ---------- species ---------- */

.species { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1px; background: rgba(240,242,236,.16); }
.species li { background: var(--gatun); padding: 1.4rem 0; }
.species b {
  display: block; font-family: var(--display);
  font-variation-settings: 'wdth' 105, 'wght' 700;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.005em;
}
.species i { display: block; margin: .15rem 0 .5rem; font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.species span { display: block; max-width: 34ch; font-size: .95rem; color: rgba(240,242,236,.76); }
@media (min-width: 40rem) { .species { grid-template-columns: repeat(2, 1fr); } .species li { padding: 1.4rem 1.6rem; } }
@media (min-width: 64rem) { .species { grid-template-columns: repeat(3, 1fr); } }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.tags span {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .75rem; border: 1px solid rgba(240,242,236,.28); color: rgba(240,242,236,.8);
}

/* ---------- captain ---------- */

.captain { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); }
.captain__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.captain__body p { max-width: 52ch; }
@media (min-width: 56rem) {
  .captain { grid-template-columns: 5fr 6fr; align-items: stretch; }
  /* let the portrait run the full height of the copy beside it */
  .captain__media, .captain__media img { height: 100%; aspect-ratio: auto; }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 2rem 0 0; background: rgba(107,106,87,.28); }
.facts > div { background: var(--silt); padding: .9rem 0 .9rem 0; }
.facts dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stump); }
.facts dd { margin: .25rem 0 0; font-family: var(--mono); font-size: .82rem; color: var(--gatun); }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div { padding-left: 1rem; } }

/* ---------- boats ---------- */

.boats { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .boats { grid-template-columns: repeat(2, 1fr); } }

.boat { background: var(--haze); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 3px solid var(--brass); }
.boat h3 {
  margin: 0; font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 800;
  font-size: 2rem; line-height: 1; text-transform: uppercase;
}
.boat__use { margin: .35rem 0 1.25rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--flare); }
.boat dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 1rem; margin: 0 0 1.25rem; }
.boat dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stump); }
.boat dd { margin: .2rem 0 0; font-family: var(--mono); font-size: .85rem; }
.boat__kit { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(107,106,87,.25); font-family: var(--mono); font-size: .7rem; line-height: 1.7; color: var(--stump); }
@media (min-width: 30rem) { .boat dl { grid-template-columns: repeat(3, 1fr); } }

/* ---------- included ---------- */

.cols { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 48rem) { .cols { grid-template-columns: repeat(3, 1fr); } }

.col__title {
  margin: 0 0 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(107,106,87,.35);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.col__title--yes { color: var(--gatun); border-bottom-color: var(--gatun); }
.col__title--no  { color: var(--stump); }

.section--dark .col__title { border-bottom-color: rgba(240,242,236,.3); color: rgba(240,242,236,.72); }
.section--dark .col__title--yes { color: var(--haze); border-bottom-color: var(--haze); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: .45rem 0 .45rem 1.4rem; font-size: .98rem; }
.list li::before { content: ''; position: absolute; left: 0; top: 1.1em; width: .7rem; height: 1px; background: var(--brass); }

/* ---------- faq ---------- */

.faq__list { border-top: 1px solid rgba(107,106,87,.3); }
.faq details { border-bottom: 1px solid rgba(107,106,87,.3); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--display);
  font-variation-settings: 'wdth' 100, 'wght' 650;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.2rem; color: var(--flare);
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0 0 1.4rem; max-width: 60ch; color: color-mix(in srgb, var(--gatun) 78%, var(--silt)); }

/* ---------- closer ---------- */

.closer { background: var(--gatun); color: var(--haze); text-align: center; padding: clamp(3.5rem, 9vw, 7rem) var(--gut); }
.closer .eyebrow { color: var(--brass); }
.closer h2 {
  margin: 0 auto 2rem; max-width: 18ch;
  font-family: var(--display);
  font-variation-settings: 'wdth' 108, 'wght' 800;
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.5rem);
  line-height: .98; letter-spacing: -.02em; text-transform: uppercase;
}

/* ---------- footer ---------- */

.footer {
  background: #0b1a15; color: rgba(240,242,236,.72);
  display: grid; gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  /* full-bleed ground, content held to --max */
  padding-inline: max(var(--gut), calc((100% - var(--max)) / 2));
}
.footer__brand p { margin: 1rem 0 0; max-width: 34ch; font-size: .92rem; }
.footer__brand .wordmark { color: var(--haze); }
.footer__nav { display: flex; flex-direction: column; gap: .5rem; font-family: var(--mono); font-size: .75rem; }
.footer__nav h3 { margin: 0 0 .4rem; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--haze); }
.footer__legal { padding-top: 1.5rem; border-top: 1px solid rgba(240,242,236,.14); font-family: var(--mono); font-size: .7rem; }
.footer__legal a { color: var(--brass); }

@media (min-width: 56rem) {
  .footer { grid-template-columns: 2fr 1fr 1fr; column-gap: 3rem; }
  .footer__legal { grid-column: 1 / -1; }
}
