/* adamsaltarelli.com — warm-dark, one stylesheet, no build step.
   Same palette as the light draft, inverted: warm near-black ground,
   warm off-white type, burnt orange doing all the accent work. */

@font-face {
  font-family: 'Bebas';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/bebas-neue-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg:      #14100E;   /* warm near-black, never cool grey */
  --lift:    #1F1815;   /* raised surfaces: inputs, cards */
  --ink:     #FAF7F2;   /* warm off-white */
  --muted:   #A89A8D;   /* warm grey — 7:1 on --bg */
  --accent:  #E8642A;   /* brightened orange for text on dark — 5.7:1 */
  --brand:   #C1440E;   /* the original burnt orange — solid fills */
  --rust:    #8A3A1A;
  --line:    rgba(250, 247, 242, 0.13);

  --measure: 40rem;
  --pad:     clamp(1.25rem, 5vw, 3.5rem);
  --nav-h:   4.25rem;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --display: 'Bebas', 'Haettenschweiler', 'Arial Narrow', var(--sans);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 0.99rem + 0.38vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1.display { font-size: clamp(3.75rem, 1.9rem + 9.2vw, 8.5rem); }
h2.display { font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.25rem); margin-bottom: 1.35rem; }
h3.display { font-size: clamp(1.75rem, 1.4rem + 1.7vw, 2.5rem); margin-bottom: 0.85rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; transition: color .15s ease; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 32rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

.placeholder {
  display: inline-block;
  background: rgba(232, 100, 42, 0.16);
  border-bottom: 2px dashed var(--accent);
  color: var(--accent);
  padding: 0.1em 0.4em;
  font-weight: 600;
  font-size: 0.86em;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--pad);
  background: rgba(20, 16, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }
.wordmark b { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

@media (max-width: 34rem) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(250,247,242,.08); border-color: var(--ink); }

.nav .btn { padding: 0.6rem 1.25rem; font-size: 0.9375rem; }

.arrow {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.arrow:hover { color: var(--ink); }

/* ---------- Panels: full-bleed section with an image slot ----------
   Drop a photo in later with one line:  style="--panel-img:url('/assets/x.jpg')" */

.panel {
  scroll-margin-top: var(--nav-h);
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 13vw, 9.5rem);
  padding-inline: var(--pad);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* image (or the contour texture until photos arrive) */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--panel-img, url('/assets/topo.svg'));
  background-size: cover;
  background-position: var(--panel-pos, center);
  opacity: var(--panel-opacity, 0.5);
}

/* scrim so text always clears AA no matter what photo lands here */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(20,16,14,.92) 42%, rgba(20,16,14,.55) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 45%);
}

.panel > * { position: relative; }

.panel-inner { max-width: var(--measure); }

/* a plain panel with no texture, for rhythm */
.panel.flat::before { display: none; }
.panel.flat::after { display: none; }
.panel.flat { background: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  min-height: min(92vh, 54rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(6rem, 16vw, 11rem) clamp(3.5rem, 9vw, 6rem);
  border-top: 0;
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- LO550 stats ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 2.5rem 0;
  padding: 0;
}
.stats dt {
  font-family: var(--display);
  font-size: clamp(3rem, 2.2rem + 3.6vw, 5rem);
  line-height: 0.85;
  color: var(--accent);
}
.stats dd {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-up {
  margin-top: 3rem;
  padding: 1.75rem 0 0;
  border-top: 2px solid var(--brand);
}
.next-up h3 { margin-bottom: 0.85rem; }

/* ---------- /hike ---------- */

.facts { margin: 0; display: grid; gap: 1.1rem; }
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }

@media (max-width: 30rem) {
  .facts > div { grid-template-columns: 1fr; gap: .25rem; }
}

.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li {
  counter-increment: r;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 2rem;
}
.rules li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15em;
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--brand);
}
.rules li:last-child { margin-bottom: 0; }
.rules strong { display: block; font-size: 1.125rem; margin-bottom: 0.2rem; }

/* ---------- Form ---------- */

.form { margin-top: 2.5rem; max-width: 30rem; }
.field { margin-bottom: 1.35rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: var(--muted); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 100, 42, .25);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  border-left: 3px solid var(--accent);
  background: rgba(232, 100, 42, .12);
  border-radius: 0 8px 8px 0;
  padding: .95rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
}

.success { border-left: 3px solid var(--brand); padding: .25rem 0 .25rem 1.5rem; max-width: 30rem; }
.success h2 { margin-bottom: 1rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 5rem) var(--pad);
  background: var(--bg);
}
.footer-inner { max-width: var(--measure); }
.footer-mail {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: .75rem;
  word-break: break-word;
}
.footer-mail:hover { color: var(--accent); }
.footer-meta { margin-top: 2rem; font-size: .875rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Wider panel for card grids ---------- */

.panel-inner.wide { max-width: 58rem; }

/* ---------- Cards (the two shows) ---------- */

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

.card {
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { margin-bottom: .35rem; }
.card .kicker {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.card p { font-size: 1rem; color: var(--muted); }
.card .arrow { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

/* ---------- Race log ---------- */

.log { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.log li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.log li:last-child { border-bottom: 1px solid var(--line); }
.log .when {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--accent);
  white-space: nowrap;
}
.log .what { font-weight: 600; }
.log .what span { display: block; font-weight: 400; font-size: .9375rem; color: var(--muted); margin-top: .15rem; }
.log .next .when { color: var(--muted); }

@media (max-width: 32rem) {
  .log li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ---------- Social ---------- */

.social { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.social a {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}
.social a:hover { color: var(--accent); border-color: var(--brand); }

/* Draft copy Adam should make his own — softer than a hard placeholder */
.draft {
  display: block;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px dashed var(--brand);
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Client grid ---------- */

.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.clients li { margin: 0; }
.clients img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  filter: saturate(.9);
  transition: filter .2s ease, border-color .2s ease;
}
.clients li:hover img { filter: saturate(1.05); border-color: var(--brand); }
.clients span {
  display: block;
  margin-top: .55rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 44rem) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Show card artwork ---------- */

.card-art { display: block; margin: 0 0 1.25rem; }
.card-art img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform .2s ease;
}
.card:hover .card-art img { transform: scale(1.04); }
.card:hover .card-art img { filter: saturate(1) brightness(1); }

/* ---------- Icons in the social row ---------- */

.social a { display: inline-flex; align-items: center; gap: .55rem; }
.social svg { width: 15px; height: 15px; flex: none; }

/* ---------- Uphill Club mark ---------- */

.mark {
  display: block;
  height: clamp(48px, 7vw, 68px);
  width: auto;
  margin-bottom: 1.5rem;
  opacity: .95;
}
