:root {
  --bg: #090909;
  --bg-2: #111111;
  --panel: #171717;
  --text: #f4f1ea;
  --muted: #a29f98;
  --line: #2b2b2b;
  --accent: #f04b23;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,9,9,.82);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 900; letter-spacing: .12em; font-size: .88rem; }
.nav { display: flex; gap: 28px; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.nav a { color: #d4d1ca; }
.nav a:hover { color: white; }
.menu-toggle { display: none; background: none; color: white; border: 0; font-size: 1.4rem; }

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(240,75,35,.18), transparent 27%),
    linear-gradient(120deg, #202020 0%, #111 45%, #050505 100%);
  background-size: cover;
  background-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.35) 100%), linear-gradient(0deg, #090909 0%, transparent 38%);
}
.hero-copy { position: relative; z-index: 2; padding: 150px 0 90px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 900; letter-spacing: .14em; font-size: .78rem; }
.hero h1, h2, .ride-brief h3 {
  text-transform: uppercase;
  letter-spacing: -.055em;
  line-height: .88;
  margin: 0;
  font-weight: 950;
}
.hero h1 { font-size: clamp(4rem, 10vw, 9rem); max-width: 900px; }
.hero h1 span { color: var(--accent); }
.tagline { font-size: clamp(1.15rem, 2.2vw, 1.65rem); margin: 30px 0; color: #ddd9d1; }
.button {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.35);
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 800;
}
.button:hover { background: var(--text); color: var(--bg); }

.section { padding: 110px 0; }
.section-dark { padding: 110px 0; background: #0d0d0d; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.stamp {
  width: 130px;
  height: 130px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(8deg);
}

.next-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 46px; align-items: stretch; }
.image-card { min-height: 520px; border: 1px solid var(--line); }
.image-slot {
  background-color: #151515;
  background-size: cover;
  background-position: center;
  position: relative;
}
.image-note {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  width: min(80%, 420px);
  color: #8f8c86;
  border: 1px dashed #444;
  padding: 24px;
  background: rgba(0,0,0,.28);
}
.image-note strong { display:block; color:#d9d5cc; letter-spacing:.12em; font-size:.8rem; margin-bottom:8px; }
.image-note.compact { font-size:.85rem; }
.ride-number { color: var(--accent); font-weight: 900; letter-spacing: .12em; }
.ride-brief h3 { font-size: clamp(3rem, 6vw, 5.5rem); }
.ride-brief h3 span { color: #8f8c86; }
.muted { color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.countdown div { padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.countdown strong { display:block; font-size:2rem; }
.countdown span { color:var(--muted); text-transform:uppercase; font-size:.7rem; letter-spacing:.12em; }
.stats { margin: 0; }
.stats div { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-top:1px solid var(--line); }
.stats dt { color:var(--muted); }
.stats dd { margin:0; text-align:right; font-weight:700; }

.ride-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:26px; }
.ride-card { background:var(--panel); border:1px solid var(--line); transition:.2s ease; }
.ride-card:hover { transform: translateY(-4px); border-color:#444; }
.card-photo { min-height:330px; background:linear-gradient(135deg,#222,#0b0b0b); }
.card-year { position:absolute; left:18px; top:18px; padding:8px 10px; background:var(--accent); font-size:.75rem; font-weight:900; letter-spacing:.12em; }
.card-copy { padding:22px; }
.card-copy h3 { margin:0 0 8px; text-transform:uppercase; font-size:1.5rem; }
.card-copy p { margin:0; color:var(--muted); }

.manifesto { max-width: 980px; }
blockquote { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; }
.text-link { display:inline-block; margin-top:28px; color:var(--accent); font-weight:800; }

.footer { border-top:1px solid var(--line); padding:42px 0; color:var(--muted); }
.footer strong { color:var(--text); }
.footer-grid { display:flex; justify-content:space-between; gap:28px; }

.page-hero { padding: 160px 0 70px; border-bottom:1px solid var(--line); }
.page-hero h1 { font-size:clamp(3.3rem,8vw,7rem); line-height:.9; margin:0; text-transform:uppercase; letter-spacing:-.05em; }
.prose { width:min(calc(100% - 40px), 850px); margin:0 auto; padding:80px 0 120px; }
.prose p { color:#d0ccc4; font-size:1.08rem; }
.prose h2 { margin-top:56px; font-size:2.3rem; }
.signature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:60px; }
.signature { border-top:1px solid #777; padding-top:10px; color:var(--muted); }

.ride-page-grid { display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.ride-page-grid .image-card { min-height:360px; }

@media (max-width: 760px) {
  .site-header { height:64px; }
  .menu-toggle { display:block; }
  .nav { display:none; position:absolute; top:64px; left:0; right:0; padding:20px 24px; background:#0b0b0b; border-bottom:1px solid var(--line); flex-direction:column; gap:18px; }
  .nav.open { display:flex; }
  .hero { min-height: 88vh; }
  .hero-copy { padding-bottom:60px; }
  .section, .section-dark { padding:80px 0; }
  .next-grid, .ride-grid, .ride-page-grid { grid-template-columns:1fr; }
  .image-card { min-height:360px; }
  .split { align-items:flex-start; }
  .stamp { width:92px; height:92px; font-size:.7rem; flex:0 0 auto; }
  .footer-grid { flex-direction:column; }
  .signature-grid { grid-template-columns:1fr; gap:40px; }
}

.page-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.ride-main-photo { min-height: 560px; background-position: center 56%; }
.gallery-landscape { background-position: center 56%; }
.gallery-portrait { background-position: center 42%; }
.archive-placeholder {
  min-height: 330px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(240,75,35,.06), transparent 55%),
    repeating-linear-gradient(-45deg, #111 0, #111 10px, #151515 10px, #151515 20px);
}
.archive-mark {
  color: #777;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
  line-height: 1.35;
  font-size: .88rem;
}
.archive-card { cursor: default; }
.archive-card:hover { transform: none; border-color: var(--line); }

@media (max-width: 760px) {
  .ride-main-photo { min-height: 390px; }
}

/* --- Spokanistan Saga update 3: consistent city cards + future photo slots --- */
.card-photo {
  position: relative;
}
.city-card {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.future-slot {
  min-height: 330px;
  background:
    linear-gradient(135deg, rgba(240,75,35,.06), transparent 55%),
    repeating-linear-gradient(-45deg, #111 0, #111 10px, #151515 10px, #151515 20px);
}
.prose .future-slot {
  margin-top: 18px;
}
@media (max-width: 760px) {
  .city-card { aspect-ratio: 16 / 9; }
  .future-slot { min-height: 280px; }
}

/* Document / poster images that should be shown in full instead of cropped */
.document-frame {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #111;
}
.document-photo {
  width: 100%;
  height: auto;
  max-height: 980px;
  object-fit: contain;
  margin: 0 auto;
}
.gallery-poster {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #111;
}
