/* Krecji City Cruisers
   Layout: dark "night ride" header and hero carrying the logo, then bright
   snow-white reading sections; red-to-orange swoosh as the one recurring flourish.
   Single committed look (no dark-mode swap): colors are set explicitly. */
:root {
  --ink: #141214;          /* logo black, warmed slightly toward the maroon */
  --night: #1e1a1d;        /* header / hero ground */
  --night-2: #2a2428;
  --snow: #fbfaf8;         /* page ground */
  --frost: #f1eeec;        /* alternate section ground */
  --line: #ded8d5;
  --text: #221e20;
  --muted: #5d5458;
  --maroon: #8a0b2c;
  --red: #d21f2e;
  --orange: #f04e23;
  --yellow: #ffd400;
  --swoosh: linear-gradient(90deg, var(--maroon), var(--red) 45%, var(--orange));

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.6rem, 6vw, 4rem);

  --radius: 6px;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.prose { display: grid; gap: 1rem; max-width: 65ch; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--night);
  color: #fff;
}
.site-header::after { content: ""; display: block; height: 4px; background: var(--swoosh); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; }
.brand img { width: 150px; }
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  font: 700 var(--step--1)/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--night-2); color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav .nav-join a { background: var(--yellow); color: var(--ink); }
.site-nav .nav-join a:hover { background: #fff; color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-row { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; padding-bottom: 0.75rem; }
  .brand img { width: 128px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 120%, rgba(240,78,35,0.28), transparent 60%),
    var(--night);
  color: #fff;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero p.lede { font-size: var(--step-1); color: #e9e2e5; max-width: 36ch; margin-top: 1rem; }
.hero-logo img { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
}

.page-hero { background: var(--night); color: #fff; padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e9e2e5; max-width: 60ch; margin-top: 0.75rem; font-size: var(--step-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.1;
}
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--maroon); color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--frost); }
.section-head { display: grid; gap: 0.5rem; margin-bottom: 2rem; max-width: 65ch; }
.section-head p { color: var(--muted); }

/* Landowner band: the swoosh at full strength */
.landowner-band { background: var(--swoosh); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.landowner-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.landowner-band .wrap > * { min-width: 0; }
.landowner-band h2 { color: #fff; }
.landowner-band p { font-size: var(--step-1); max-width: 50ch; margin-top: 0.75rem; }
.landowner-band .btn { justify-self: start; }
@media (max-width: 760px) { .landowner-band .wrap { grid-template-columns: 1fr; } }

/* Stat strip */
.stats { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.18); }
.stat { display: grid; }
.stat b { font: 800 italic var(--step-3)/1 var(--font-display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat span { font: 700 var(--step--1)/1.3 var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: #cfc6ca; }

/* Link cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
a.card:hover { border-color: var(--red); color: var(--text); }
a.card:hover h3 { color: var(--red); }
.card p { color: var(--muted); }
.card .more { font: 700 var(--step--1)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--maroon); margin-top: 0.25rem; }

/* Trail points: orange diamond markers, like trail signs */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; }
.points li::before {
  content: "";
  width: 0.95rem; height: 0.95rem;
  margin: 0.35rem 0 0 0.2rem;
  background: var(--orange);
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}
.points b { display: block; font-family: var(--font-display); font-size: var(--step-1); font-style: italic; }
.points span { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.map-box {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
}

/* Rules list */
.rules { counter-reset: none; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.rules li { padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); }
.rules li b { display: block; font-family: var(--font-display); font-size: var(--step-1); font-style: italic; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.event { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.event > div { min-width: 0; }
.event-date { display: grid; justify-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 0.55rem 0.25rem; line-height: 1; }
.event-date .m { font: 700 0.85rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--yellow); }
.event-date .d { font: 800 italic 2rem/1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 0.15rem; }
.event h3 { font-size: var(--step-1); }
.event .meta { color: var(--muted); font-size: var(--step--1); }
.tag { display: inline-block; font: 700 0.75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; padding: 0.3rem 0.5rem; border-radius: 3px; background: var(--frost); color: var(--maroon); margin-right: 0.4rem; vertical-align: 2px; }
.tag-work { background: #fff2b3; color: #6b4e00; }
.events-note { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.person { padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.25rem; align-content: start; }
.person .role { font: 700 var(--step--1)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }
.person .name { font: 800 italic var(--step-1)/1.15 var(--font-display); }
.person .contact { margin-top: 0.4rem; font-size: var(--step--1); display: grid; gap: 0.15rem; overflow-wrap: anywhere; }
.person.key { border-color: var(--ink); box-shadow: 4px 4px 0 var(--orange); }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font: 700 var(--step--1)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #b9b0b3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 0.6rem; align-items: start; font-size: var(--step-0); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--maroon); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: #e6f4ea; color: #1f5130; border: 1px solid #a8d5b5; }
.form-status.err { background: #fde8e8; color: #8a0b2c; border: 1px solid #f2b3b3; }

.callout { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 0.5rem; }

/* Placeholder text that still needs real club info */
.todo { background: #fff2b3; color: #5c4300; padding: 0 0.25em; border-radius: 3px; font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #cfc6ca; padding-block: 2.5rem; font-size: var(--step--1); }
.site-footer::before { content: ""; display: block; height: 4px; background: var(--swoosh); margin-top: -2.5rem; margin-bottom: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
.site-footer h3 { color: #fff; font-size: var(--step-1); margin-bottom: 0.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.site-footer img { width: 170px; margin-bottom: 0.75rem; }
.footer-base { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Print (printable membership form) ---------- */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-hero { background: #fff; color: #000; padding: 0 0 12pt; }
  .page-hero h1, .page-hero p { color: #000; }
}
.cards-stack { grid-template-columns: 1fr; }

/* Trail status banner */
.trail-status { color: #fff; background: var(--ink); }
.trail-status .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; padding-block: 0.6rem; }
.trail-status .pill { font: 800 italic 1rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.7rem; border-radius: 3px; }
.trail-status .msg { flex: 1 1 18rem; min-width: 0; }
.trail-status .when { font-size: var(--step--1); color: #cfc6ca; }
.trail-status.open .pill { background: #2e9e4f; color: #fff; }
.trail-status.limited .pill { background: var(--yellow); color: var(--ink); }
.trail-status.closed .pill { background: var(--red); color: #fff; }
