/* ============================================================
   Joy of Endurance — shared stylesheet
   Ground rules from the brief:
     · photographs on heroes only, never behind body text
     · solid background on every content section
     · reading measure stays narrow; page width is used by structure
   ============================================================ */

:root{
  --dust:#E4E3DC;
  --dust-deep:#D8D7CE;
  --ink:#1C1D1A;
  --ink-soft:#5F6158;
  --rule:#C3C2B7;
  --amber:#B0790C;
  --paper:#F2F1EC;

  --measure:40rem;   /* body text column: ~640px, about 70 characters */
  --sidebar:12rem;   /* section-heading rail at desktop */
  --railgap:4rem;    /* space between rail and text */
  --gutter:1.5rem;
  /* frame = rail + gap + text + both gutters. No dead space by construction. */
  --frame:calc(var(--sidebar) + var(--railgap) + var(--measure) + (var(--gutter) * 2));
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--dust);
  color:var(--ink);
  font-family:"Newsreader",Georgia,serif;
  font-size:1.125rem;
  line-height:1.6;
  font-optical-sizing:auto;
}

/* ---------- containers ---------- */
.frame{max-width:var(--frame);margin:0 auto;padding:0 var(--gutter)}
.col{max-width:var(--measure)}
.col--wide{max-width:42rem}

/* ---------- nav ---------- */
.topbar{
  background:var(--ink);color:var(--paper);
  position:sticky;top:0;z-index:50;
  box-shadow:0 1px 0 rgba(0,0,0,.25);
}
.topbar .frame{display:flex;flex-wrap:wrap;align-items:center;gap:.625rem 1.25rem;padding-top:.8125rem;padding-bottom:.8125rem}
.wordmark{
  display:block;text-decoration:none;margin-right:auto;line-height:1.1;
}
.wordmark b{
  display:block;
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;
  font-size:1.0625rem;letter-spacing:-.015em;color:var(--paper);
}
.wordmark span{
  display:block;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-weight:400;
  font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;
  color:#9A9B93;margin-top:.1875rem;
}
.wordmark:hover b,.wordmark:focus-visible b{color:var(--amber)}
@media (max-width:32rem){
  .wordmark b{font-size:.9375rem}
  .wordmark span{font-size:.625rem;letter-spacing:.1em}
}
.navlinks{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin:0;padding:0;list-style:none}
.navlinks a{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;letter-spacing:.06em;
  text-transform:uppercase;color:#B9BAB2;text-decoration:none;
}
.navlinks a:hover,.navlinks a:focus-visible{color:var(--amber)}
.navlinks a[aria-current="page"]{color:var(--paper)}

/* ---------- hero: the only photograph ---------- */
.hero{
  position:relative;display:flex;align-items:flex-start;
  background:#3A3A33 center var(--focal,40%)/cover no-repeat;
}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(20,20,18,.66) 0%,rgba(20,20,18,.34) 38%,rgba(20,20,18,.10) 70%,rgba(20,20,18,.22) 100%);
}
.hero-inner{position:relative;z-index:1;width:100%;padding:2.25rem 0 3rem}
.hero--tall{min-height:clamp(19rem,58vh,31rem)}
.hero--short{min-height:clamp(11rem,28vh,15rem)}
@media (min-width:1800px){.hero--tall{min-height:clamp(25rem,58vh,42rem)}}
.hero h1{
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;
  font-size:clamp(2.5rem,6vw,4.5rem);line-height:.95;letter-spacing:-.03em;
  margin:0 0 .75rem;color:#F7F6F1;text-shadow:0 2px 14px rgba(15,15,13,.4);
}
.hero p{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.8125rem;line-height:1.5;color:#F2F0E8;margin:0;max-width:32rem;
  font-weight:500;text-shadow:0 1px 3px rgba(15,15,13,.85),0 0 12px rgba(15,15,13,.5);
}

/* ---------- sections ---------- */
.section{padding:3.5rem 0 3.75rem}
.section--paper{background:var(--paper)}
.section--dust{background:var(--dust)}
.section--deep{background:var(--dust-deep)}
.section--fail{background:#2A231F;color:#E8E2DA}

.eyebrow{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 .625rem;
}
.section--fail .eyebrow{color:#B79A8C}

h2{
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;
  font-size:clamp(1.75rem,4vw,2.375rem);line-height:1.04;letter-spacing:-.02em;margin:0 0 1.25rem;
}
.lede{margin:0 0 1.5rem}
.lede p{margin:0 0 1rem}
.lede--intro{max-width:42rem}
.lede--intro p{font-size:1.3125rem;line-height:1.5}
.lede p:last-child{margin-bottom:0}

/* ---------- DESKTOP: heading column left, content column right ---------- */
@media (min-width:62rem){
  .hero{--focal:88%}
  .split{
    display:grid;
    grid-template-columns:var(--sidebar) minmax(0,var(--measure));
    gap:0 var(--railgap);
    align-items:start;
  }
  .split-head{position:sticky;top:2rem}
  .split-head h2{margin-bottom:0}
  /* sections without a rail indent to the same left edge as the text column */
  .offset{margin-left:calc(var(--sidebar) + var(--railgap))}
}
.split-body{max-width:var(--measure)}

/* ---------- item list ---------- */
.items{margin:0;padding:0;list-style:none}
.item{padding:1.375rem 0;border-top:1px solid var(--rule)}
.item:first-child{border-top:1px solid var(--ink)}
.section--fail .item{border-top-color:#4A3E37}
.section--fail .item:first-child{border-top-color:#8C6F5E}

.item-name{
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;
  font-size:1.0625rem;line-height:1.3;margin:0 0 .4375rem;
}
.item-verdict{margin:0}
.section--fail .item-verdict{color:#DED7CD}
.item-verdict + .item-verdict{margin-top:.75rem}
.spec{
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.75rem;color:var(--ink-soft);margin:0 0 .5rem;
}

.buy{
  display:inline-block;margin-top:.8125rem;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;letter-spacing:.02em;
  color:var(--amber);text-decoration:none;
  border-bottom:1px solid rgba(176,121,12,.42);padding-bottom:1px;
}
.buy:hover,.buy:focus-visible{color:#8C5F09;border-bottom-color:#8C5F09}

/* ---------- affiliate disclosure ---------- */
.disclosure{
  margin:2.25rem 0 0;padding:1rem 1.125rem;
  background:#E8DFC6;border-left:3px solid var(--amber);
  font-size:.9375rem;line-height:1.55;color:#3D3524;
}

/* ---------- the wind ladder ---------- */
.ladder{margin:1.75rem 0 2.25rem;padding:1.25rem 1.25rem 1rem;background:var(--paper);border:1px solid var(--rule)}
.ladder-head{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 1rem;
}
.rung{display:grid;grid-template-columns:3.25rem 1fr;gap:.75rem;align-items:center;margin-bottom:.625rem}
.rung-label{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;text-align:right}
.track{position:relative;height:.5rem;background:#DCDAD0;border-radius:1px}
.band{position:absolute;top:0;bottom:0;background:var(--amber);border-radius:1px}
.scale{
  display:flex;justify-content:space-between;margin:.75rem 0 0 4rem;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;color:var(--ink-soft);
}
.ladder-note{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;line-height:1.5;
  color:var(--ink-soft);margin:.875rem 0 0;padding-top:.75rem;border-top:1px solid var(--rule);
}

/* ---------- buttons ---------- */
.bigbutton{
  display:inline-block;
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;font-size:1.0625rem;
  color:var(--paper);background:var(--ink);padding:.9375rem 1.5rem;text-decoration:none;
}
.bigbutton:hover,.bigbutton:focus-visible{background:var(--amber)}
.caption{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;color:var(--ink-soft);margin:.9375rem 0 0}

/* ---------- footer ---------- */
.sitefoot{background:var(--ink);color:var(--paper);padding:3rem 0 2.5rem}
.sitefoot h2{color:var(--paper);margin-bottom:1.5rem}
.social{display:flex;flex-wrap:wrap;gap:.625rem;margin:0 0 2rem;padding:0;list-style:none}
.social a{
  display:inline-block;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8125rem;letter-spacing:.04em;
  color:var(--paper);text-decoration:none;border:1px solid #4B4C46;padding:.5625rem .875rem;
}
.social a:hover,.social a:focus-visible{border-color:var(--amber);color:var(--amber)}
.footmark{
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;
  font-size:1.125rem;letter-spacing:-.015em;color:var(--paper);
  margin:0;padding-top:1.5rem;border-top:1px solid #3A3B35;
}
.footnote{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;
  letter-spacing:.06em;color:#8D8E85;margin:.3125rem 0 0;
}

a:focus-visible,.bigbutton:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- forms ---------- */
.field{margin:0 0 1.25rem;max-width:30rem}
.field label{
  display:block;font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-soft);margin:0 0 .375rem;
}
.field input,.field textarea,.field select{
  width:100%;font-family:"Newsreader",Georgia,serif;font-size:1rem;color:var(--ink);
  background:var(--paper);border:1px solid var(--rule);border-radius:0;
  padding:.625rem .75rem;
}
.section--dust .field input,.section--dust .field textarea,.section--dust .field select{background:#EEEDE7}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:2px solid var(--amber);outline-offset:1px;border-color:var(--amber);
}
.field textarea{min-height:8rem;resize:vertical}
.hint{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;color:var(--ink-soft);margin:.375rem 0 0}
button.bigbutton{border:0;cursor:pointer;font-family:"Space Grotesk",system-ui,sans-serif}

/* ---------- pull quote ---------- */
.quote{margin:2rem 0;padding:0 0 0 1.25rem;border-left:3px solid var(--amber);max-width:36rem}
.quote p{font-size:1.1875rem;line-height:1.55;margin:0 0 .75rem}
.quote cite{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-style:normal;
  font-size:.75rem;letter-spacing:.04em;color:var(--ink-soft);
}

/* ---------- dated entry lists (about, blog, podcasts) ---------- */
.year{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;letter-spacing:.14em;
  color:var(--ink-soft);margin:2.5rem 0 .75rem;padding-top:.75rem;border-top:1px solid var(--ink);
}
.year:first-of-type{margin-top:0}
.entry{margin:0 0 1.5rem}
.entry h3{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;font-size:1.0625rem;margin:0 0 .3125rem;line-height:1.3}
.entry ul{margin:.3125rem 0 0;padding-left:1.125rem}
.entry li{margin:0 0 .1875rem}
.entry p{margin:0}

/* ============================================================
   Added for the re-envisioned site: expeditions, galleries,
   facts blocks, and the NOW slot.
   ============================================================ */

/* ---------- NOW block: the one region that changes ---------- */
.now{background:var(--ink);color:var(--paper);padding:0}
.now-inner{display:grid;gap:0}
@media (min-width:52rem){.now-inner{grid-template-columns:1fr 1fr;align-items:stretch}}
.now-photo{min-height:16rem;background:#2A2A26 center 55%/cover no-repeat}
.now-text{padding:2.5rem var(--gutter) 2.75rem}
@media (min-width:52rem){.now-text{padding:3.5rem 3rem}}
.now .eyebrow{color:#B0790C}
.now h2{color:var(--paper);font-size:clamp(1.5rem,3.2vw,2rem);margin-bottom:.75rem}
.now p{color:#D8D7CE;margin:0 0 1rem;max-width:28rem}
.now a.buy{color:#D9A43A;border-bottom-color:rgba(217,164,58,.4)}
.now a.buy:hover{color:#F0C25E;border-bottom-color:#F0C25E}

/* ---------- facts block ---------- */
.facts{margin:0 0 2rem;padding:1.25rem 1.25rem .875rem;background:var(--paper);border:1px solid var(--rule)}
.facts dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.375rem 1.25rem}
.facts dt{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-soft);padding-top:.2rem;
}
.facts dd{margin:0;font-size:1rem;line-height:1.45}

/* ---------- expedition index cards ---------- */
.cards{display:grid;gap:2.5rem;margin:0;padding:0;list-style:none}
@media (min-width:46rem){.cards{grid-template-columns:1fr 1fr;gap:2.75rem 2rem}}
.card a{text-decoration:none;color:inherit;display:block}
.card-img{aspect-ratio:3/2;background:#CFCEC5 center/cover no-repeat;margin:0 0 .875rem}
.card .spec{margin:0 0 .25rem}
.card h3{
  font-family:"Space Grotesk",system-ui,sans-serif;font-weight:700;font-size:1.1875rem;
  line-height:1.2;letter-spacing:-.015em;margin:0 0 .375rem;
}
.card p{margin:0;font-size:.9375rem;line-height:1.5;color:var(--ink)}
.card a:hover h3{color:var(--amber)}

/* ---------- photo gallery ---------- */
.gallery{display:grid;gap:1rem;margin:2rem 0 0;padding:0;list-style:none;align-items:start}
@media (min-width:40rem){.gallery{grid-template-columns:1fr 1fr}}
.gallery li{margin:0}
.gallery img{width:100%;height:auto;display:block;background:#CFCEC5}
.gallery figcaption,.gallery .cap{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;line-height:1.5;
  color:var(--ink-soft);margin:.4375rem 0 0;
}
.gallery .wide{grid-column:1/-1}

/* ---------- editorial note, visible only while drafting ---------- */
.draft{
  background:#F4E4C4;border-left:3px solid #B0790C;padding:.875rem 1.125rem;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;line-height:1.6;
  color:#5A4A22;margin:0 0 1.75rem;
}
