/* NightSaver shared design system.
   Mile-marker spine, motel signboard, dusk-clock palette. No card grid, no chips,
   no centered column, no eyebrow/headline stack. See run-2/brand/brand.md. */

@import url("/css/fonts.css");

:root {
  --asphalt: #151A26;
  --asphalt-deep: #0D1119;
  --sky-a: #23304A;
  --sky-b: #C86B3C;
  --bone: #F2ECDD;
  --sodium: #E3A13D;
  --guide-green: #3F7A5C;
  --motel-red: #C94F4F;
  --ink: #1E2430;
  --muted: #7A7264;
  --spine-x: 84px;
  --wrap-right: 9vw;
  --wrap-left: 4vw;
}

@media (max-width: 760px) {
  :root {
    --spine-x: 30px;
    --wrap-right: 5vw;
    --wrap-left: 5vw;
  }
}

* { box-sizing: border-box; }

html { background: var(--asphalt); }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--bone);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.display, .btn, .badge, .sb-name, .sb-price, .sb-state, .nav-brand, .deck, label.field-label, .kicker-mark {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.08; margin: 0 0 0.6em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1.1em; color: var(--bone); }
a { color: var(--sodium); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
strong { color: var(--bone); }
.muted { color: var(--muted); }
em { font-style: italic; }

.num, time, .price, .stamp, .tabular {
  font-family: "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---------- layout: off-axis wrap + mile-marker spine ---------- */

.wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  margin-left: max(1rem, var(--wrap-left));
  margin-right: max(1rem, var(--wrap-right));
}

.spine-page { position: relative; }

.spine-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--spine-x);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--muted) 4%, var(--muted) 96%, transparent);
  opacity: 0.5;
}

.mile-section {
  position: relative;
  padding: 3.2rem 0 3.2rem calc(var(--spine-x) + 2.4rem);
  max-width: 760px;
}

.mile-section--out { padding-left: calc(var(--spine-x) + 4.6rem); }
.mile-section--wide { max-width: 900px; }

.mile-badge {
  position: absolute;
  left: calc(var(--spine-x) - 15px);
  top: 3.4rem;
  min-width: 32px;
  height: 20px;
  padding: 0 4px;
  background: var(--guide-green);
  color: var(--bone);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

/* ---------- nav / footer ---------- */

.site-nav {
  position: relative;
  z-index: 3;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem max(1rem, var(--wrap-left)) 1rem;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.site-nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.site-nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--bone);
  opacity: 0.85;
}
.site-nav-links a:hover { color: var(--sodium); opacity: 1; }

.site-footer {
  border-top: 1px solid rgba(242,236,221,0.12);
  padding: 3rem 0 4rem;
  margin-top: 4rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--sodium); }
.footer-note { max-width: 34ch; color: var(--muted); font-size: 0.92rem; }

/* ---------- wordmark: two-deck highway sign ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.wordmark .deck { padding: 0.22em 0.5em; letter-spacing: 0.06em; }
.wordmark .deck-night { background: var(--asphalt); color: var(--bone); border: 1px solid rgba(242,236,221,0.25); border-bottom: none; }
.wordmark .deck-saver { background: var(--sodium); color: var(--asphalt); }
.wordmark .horizon-rule { height: 1px; background: var(--bone); opacity: 0.55; }

/* ---------- hero: conversation-first, horizon line, no eyebrow stack ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 52%, var(--asphalt) 52%, var(--asphalt-deep) 100%);
  padding: 5.5rem 0 4rem;
}
.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 51%;
  height: 2px;
  background: var(--bone);
  opacity: 0.4;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(220px, 320px);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.sign-line {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone);
  background: var(--asphalt);
  border: 1px solid rgba(242,236,221,0.25);
  padding: 1.1rem 1.2rem;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 0.6rem;
}
.sign-line .lit { color: var(--sodium); }
.sign-line .go { color: var(--guide-green); }

/* conversation thread used in hero + app */

.thread {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.msg {
  max-width: 92%;
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
  line-height: 1.5;
  position: relative;
}
.msg-traveler {
  align-self: flex-end;
  background: rgba(242,236,221,0.94);
  color: var(--ink);
  border-radius: 3px 3px 2px 14px;
}
.msg-agent {
  align-self: flex-start;
  background: rgba(21,26,38,0.55);
  border: 1px solid rgba(242,236,221,0.22);
  color: var(--bone);
  border-radius: 3px 3px 14px 2px;
}
.msg-role {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.25em;
}

/* ---------- motel signboard: no card grid ---------- */

.signboard { margin: 1.5rem 0; }
.signboard-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding: 1.3rem 0;
}
.signboard-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--muted) 0 12px, transparent 12px 24px);
  opacity: 0.55;
}
.signboard-row:first-child::before { display: none; }

.sb-main { display: flex; flex-direction: column; gap: 0.3rem; min-width: 220px; }
.sb-name { font-size: clamp(1.35rem, 2.6vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.01em; }
.sb-area { font-family: "Newsreader", serif; font-weight: 400; font-size: 0.92rem; color: var(--muted); font-style: italic; }
.sb-meta { font-family: "Newsreader", serif; font-size: 0.85rem; color: var(--muted); }

.sb-figures { display: flex; align-items: center; gap: 1rem; }
.sb-price { font-size: 1.7rem; color: var(--sodium); }
.sb-price .cur { font-size: 0.95rem; opacity: 0.75; margin-right: 0.15em; }
.sb-price .per { font-family: "Newsreader", serif; font-weight: 400; font-size: 0.85rem; color: var(--muted); font-style: italic; margin-left: 0.2em; }

.sb-state { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.09em; }
.sb-state.available { color: var(--guide-green); }
.sb-state.sold-out { color: var(--motel-red); }
.sb-state.checking { color: var(--sodium); }

.sb-demo {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--motel-red);
  color: var(--bone);
  padding: 0.2em 0.5em;
  border-radius: 1px;
}
.sb-stamp { font-size: 0.78rem; color: var(--muted); }

.sb-actions { display: flex; align-items: center; gap: 0.9rem; flex-basis: 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  padding: 0.85em 1.5em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--sodium); color: var(--asphalt); }
.btn-primary:hover { background: #f0b559; color: var(--asphalt); }
.btn-book { background: var(--guide-green); color: var(--bone); }
.btn-book:hover { color: var(--bone); background: #4a8f6c; }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid rgba(242,236,221,0.35); }
.btn-ghost:hover { color: var(--sodium); border-color: var(--sodium); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.field {
  width: 100%;
  background: rgba(242,236,221,0.06);
  border: 1px solid rgba(242,236,221,0.3);
  color: var(--bone);
  font-family: "Newsreader", serif;
  font-size: 1rem;
  padding: 0.85em 1em;
  border-radius: 2px;
}
.field:focus { outline: 2px solid var(--sodium); outline-offset: 1px; }
.field::placeholder { color: var(--muted); }

/* ---------- badges / notes ---------- */

.honesty-note {
  border-left: 3px solid var(--sodium);
  padding: 0.9rem 1.2rem;
  background: rgba(227,161,61,0.08);
  font-size: 0.95rem;
  color: var(--bone);
}
.honesty-note.demo {
  border-left-color: var(--motel-red);
  background: rgba(201,79,79,0.08);
}

.quiet-gate {
  border: 1px dashed rgba(242,236,221,0.35);
  padding: 1.6rem;
}
.quiet-gate .tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--sodium);
  margin-bottom: 0.6rem;
}

/* ---------- utility ---------- */

.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
