/*
Theme Name: Idaho Smoke and Fire
Theme URI: https://idahosmokeandfire.org/
Author: Idaho Smoke and Fire
Description: A lightweight, static-style WordPress theme for the Idaho Smoke and Fire bikepacking challenge.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: idaho-smoke-fire
*/

:root {
  --isf-charcoal: #20231f;
  --isf-forest: #334b3d;
  --isf-orange: #b4532a;
  --isf-sand: #eee8dc;
  --isf-smoke: #73776f;
  --isf-white: #fff;
  --isf-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--isf-charcoal);
  background: #faf9f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--isf-orange); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #7f3519; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 2rem), var(--isf-max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32,35,31,.12);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding a { color: var(--isf-charcoal); text-decoration: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--isf-charcoal); text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-nav a:hover { color: var(--isf-orange); }
.menu-toggle { display: none; border: 0; background: none; font: inherit; font-weight: 700; }
.hero {
  min-height: 74vh;
  display: grid; place-items: end start;
  color: white;
  background:
    linear-gradient(90deg, rgba(19,25,20,.90), rgba(19,25,20,.34)),
    url("assets/img_2600-1280x960.webp") center / cover no-repeat;
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.hero-inner { width: min(calc(100% - 2rem), var(--isf-max)); margin-inline: auto; }
.hero-kicker { text-transform: uppercase; letter-spacing: .22em; font-weight: 750; font-size: .8rem; }
.hero h1 { max-width: 900px; margin: .4rem 0 1rem; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .95; letter-spacing: -.04em; }
.hero-copy { max-width: 720px; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: #f2eee7; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.15rem;
  border: 1px solid white; color: white; text-decoration: none;
  font-weight: 750; letter-spacing: .03em;
}
.btn-primary { background: var(--isf-orange); border-color: var(--isf-orange); }
.btn:hover { background: white; color: var(--isf-charcoal); }

.depart-section {
  background: var(--isf-charcoal);
  color: var(--isf-white);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.depart-heading { max-width: 760px; margin-bottom: 2rem; }
.depart-heading h2 { margin: .45rem 0 .5rem; font-size: clamp(2.5rem, 5vw, 4.75rem); line-height: 1; letter-spacing: -.035em; }
.depart-heading p { margin: 0; color: #d8d8d2; font-size: 1.08rem; }
.depart-kicker { color: #e3a17f; }
.depart-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; align-items: stretch; }
.depart-info-card { display: flex; flex-direction: column; min-width: 0; padding: 1.4rem; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.depart-info-card h3 { margin: .45rem 0 .7rem; color: var(--isf-white); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; }
.depart-info-card p { margin: 0 0 1rem; color: #e5e5df; }
.depart-card-label { color: #e3a17f; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.depart-time { margin: 0 0 1rem !important; color: var(--isf-white) !important; font-size: 1.2rem; font-weight: 700; }
.historical-route-warning { padding: .8rem; border-left: 4px solid #e3a17f; background: rgba(180,83,42,.16); }
.depart-text-link { margin-top: auto; color: #ffd6c3; font-weight: 750; }
.depart-how-card { border-color: rgba(227,161,127,.6); }
.depart-email-button { width: 100%; margin-top: auto; text-align: center; }
.trackleaders-coming { margin: 1rem 0 0 !important; color: #d8d8d2 !important; font-size: .92rem; }
.depart-countdown-wrap h3 { margin: 0 0 1rem; color: var(--isf-white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; }
.depart-countdown-full { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.2); }
.depart-countdown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; }
.countdown-unit { min-width: 0; padding: 1rem .45rem; text-align: center; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.05); }
.countdown-unit strong { display: block; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit span { display: block; margin-top: .55rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #d8d8d2; }
.depart-note { max-width: 900px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 1.4rem; padding-top: 1.4rem; }
.depart-note p { margin: 0; font-size: 1.05rem; }
.countdown-complete { margin: 0; font-size: 1.8rem; font-weight: 750; }
.photo-band { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); background: var(--isf-charcoal); }
.photo-band figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photo-band figure:hover img { transform: scale(1.025); }

.notice {
  background: var(--isf-sand);
  border-left: 5px solid var(--isf-orange);
  padding: 1.25rem 1.4rem;
  margin: 0;
}
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section-alt { background: #f0eee8; }
.section h2, .entry-content h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.section h3, .entry-content h3 { color: var(--isf-forest); }
.lede { font-size: 1.2rem; max-width: 850px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: rgba(32,35,31,.15); }
.stat { background: #faf9f6; padding: 1.5rem; }
.stat strong { display: block; font-size: 1.7rem; color: var(--isf-forest); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.3rem; }
.card { background: white; border: 1px solid rgba(32,35,31,.12); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.entry-header { padding: clamp(4rem, 8vw, 7rem) 0 2rem; background: var(--isf-forest); color: white; }
.entry-header h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; margin: 0; }
.entry-content { width: min(calc(100% - 2rem), 850px); margin: 0 auto; padding: 3rem 0 6rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li + li { margin-top: .7rem; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border-bottom: 1px solid #ccc; padding: .8rem; text-align: left; vertical-align: top; }
.isf-callout { padding: 1.2rem 1.3rem; background: var(--isf-sand); border-left: 5px solid var(--isf-orange); }
.site-footer { background: var(--isf-charcoal); color: #e8e6df; padding: 3rem 0; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.footer-note { max-width: 800px; color: #c9cbc5; font-size: .92rem; }
.screen-reader-text { position: absolute; left: -9999px; }
@media (max-width: 850px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: #faf9f6; border-bottom: 1px solid #ccc; padding: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { display: grid; }
  .grid-2, .card-grid, .footer-grid, .depart-info-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .depart-countdown { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-band { grid-template-columns: 1fr; }
}
