/* One stylesheet, hand-written, no build step.
   Edit it directly — there is no Sass, no Tailwind, no node_modules. */

:root {
  --ink: #1a1917;
  --ink-soft: #55504a;
  --ink-faint: #8b847c;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e2ddd6;
  --accent: #7a3b1f;         /* clay — Appalachian dirt */
  --accent-soft: #f4ece6;
  --warn-bg: #fdf6e3;
  --warn-line: #d9c48a;
  --good: #2f6b4a;
  --radius: 6px;
  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 650;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin-top: 2rem; }
h3 { font-size: 1.05rem; }

p, li { max-width: var(--measure); }
a { color: var(--accent); }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; padding-block: 1rem;
}
.brand {
  font-weight: 680; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; }
.site-header nav a:hover { color: var(--accent); }

.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--line);
  background: var(--card); padding-block: 2rem;
  font-size: 0.9rem; color: var(--ink-soft);
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0.35rem 0; }

/* ---------- layout bits ---------- */

main { padding-block: 2.5rem 1rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.stack > * + * { margin-top: 1rem; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}

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

/* ---------- tour cards ---------- */

.tour-card { display: flex; flex-direction: column; }
.tour-card h3 { margin-bottom: 0.25rem; }
.tour-card .meta { color: var(--ink-faint); font-size: 0.88rem; margin: 0 0 0.75rem; }
.tour-card p { flex: 1; font-size: 0.95rem; }
.tour-card .price { font-size: 1.35rem; font-weight: 650; margin: 0.5rem 0 0.9rem; }
.tour-card .price small { font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- departures ---------- */

.departure {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.departure:last-child { border-bottom: 0; }
.departure .when { font-weight: 600; min-width: 14rem; }
.departure .seats { color: var(--ink-soft); font-size: 0.9rem; margin-right: auto; }
.departure .seats.low { color: var(--accent); font-weight: 600; }

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

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.big { padding: 0.9rem 1.75rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- forms ---------- */

label { display: block; font-weight: 560; font-size: 0.92rem; margin-bottom: 0.25rem; }
input[type=text], input[type=email], input[type=number], select {
  width: 100%; padding: 0.55rem 0.65rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 1rem; }
.field .helptext { display: block; font-size: 0.83rem; color: var(--ink-faint); margin-top: 0.2rem; }
.field.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.field.check input { margin-top: 0.3rem; flex: none; }
.field.check label { font-weight: 400; margin: 0; }
.two-up { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 34rem) { .two-up { grid-template-columns: 1fr; } }

.rider-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1rem; background: var(--card);
}
.rider-block > h3 { margin-bottom: 0.9rem; color: var(--ink-soft); font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.06em; }

.errorlist {
  list-style: none; padding: 0.5rem 0.75rem; margin: 0 0 0.75rem;
  background: #fdeceb; border: 1px solid #e7b7b3; border-radius: var(--radius);
  color: #8c2a22; font-size: 0.9rem;
}

/* ---------- the money table ---------- */

table.money { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.money th, table.money td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
table.money td.num, table.money th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.money tr.sub td { color: var(--ink-soft); font-size: 0.93rem; }
table.money tr.total td { font-size: 1.15rem; font-weight: 680; border-bottom: 2px solid var(--ink); }
table.money tr.due td { font-weight: 650; }
table.money caption { text-align: left; font-weight: 650; padding-bottom: 0.4rem; }

.fx { color: var(--ink-faint); font-size: 0.86rem; }

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--warn-line); background: var(--warn-bg);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.callout h3 { margin-top: 0; }
.callout ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.callout li { margin-bottom: 0.35rem; font-size: 0.94rem; }
.callout.plain { background: var(--accent-soft); border-color: #e3d3c6; }

.hint {
  font-size: 0.9rem; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 0.5rem 0.7rem; margin-top: 0.5rem;
}

.seat-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.seat-table th, .seat-table td { text-align: left; padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.seat-table th { color: var(--ink-soft); font-weight: 600; }

.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 650;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- imagery ----------
   A hero is either a real photo or generated ridge lines; both fill the same
   band so swapping one for the other changes nothing about the layout. */

.hero {
  position: relative;
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.hero .ridge,
.hero .hero-photo {
  display: block;
  width: 100%;
  height: clamp(170px, 28vw, 320px);
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(22, 26, 31, 0.78));
}
.hero-caption h1,
.hero-caption p { color: #fff; margin: 0; max-width: 34ch; }
.hero-caption h1 { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero-caption p { color: rgba(255, 255, 255, 0.9); margin-top: 0.35rem; }
.hero-tags { margin-top: 0.6rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.hero-tags .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(2px);
}

/* Tour cards carry the same band, smaller. The card loses its own padding so
   the visual can sit flush; the body puts it back. */
.tour-card { padding: 0; }
.tour-card-visual { height: 120px; overflow: hidden; border-bottom: 1px solid var(--line); }
.tour-card-visual > * {
  display: block; width: 100%; height: 120px; object-fit: cover;
}
.tour-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- bike cards ----------
   With no photograph, the seat height IS the picture. It is the number that
   decides whether a rider fits, and it is more use than a press shot. */

.bike-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.bike-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.bike-card-visual,
.bike-card .bike-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.bike-card-visual {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.15rem;
  background: linear-gradient(165deg, #eef3f7 0%, #dde6ee 100%);
}
.bike-card-visual .mm {
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 700; letter-spacing: -0.04em;
  color: #47596b; font-variant-numeric: tabular-nums; line-height: 1;
}
.bike-card-visual .unit {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: #7e93a8;
}
.bike-card-body { padding: 0.85rem 1rem 1rem; }
.bike-card-body h3 { margin: 0 0 0.15rem; font-size: 0.98rem; }
.bike-card-body p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
