/* ============================================================
   Odogwu Rides — Nord IDE palette, flashlight reveal
   ============================================================ */

:root {
  --bg: #2e3440;
  --bg-2: #292e39;
  --surface: #3b4252;
  --surface-2: #434c5e;
  --ink: #eceff4;
  --ink-soft: #d8dee9;
  --ink-dim: #9aa5b5;
  --accent: #88c0d0;
  --secondary: #a3be8c;
  --warn: #ebcb8b;
  --line: rgba(216, 222, 233, 0.16);
  --line-strong: rgba(216, 222, 233, 0.3);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --maxw: 1080px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Bricolage Grotesque", "JetBrains Mono", system-ui, sans-serif;
  --beam-x: 50%;
  --beam-y: 30%;
  --beam-radius: 260px;
  --beam-strength: 0.86;
}

/* Light mode: same Nord family, inverted — "Snow Storm" paper */
html[data-theme="light"] {
  --bg: #eceff4;
  --bg-2: #e5e9f0;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --ink: #2e3440;
  --ink-soft: #3b4252;
  --ink-dim: #5c6a7e;
  --accent: #5e81ac;
  --secondary: #6f8f5a;
  --warn: #a8762a;
  --line: rgba(46, 52, 64, 0.16);
  --line-strong: rgba(46, 52, 64, 0.32);
  --shadow: 0 14px 34px rgba(46, 52, 64, 0.12);
  --beam-strength: 0.72;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  font-variant-ligatures: none;
  overflow-x: hidden;
  position: relative;
}

/* Diagonal colour stripe under the content — depth without noise */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(15deg,
      transparent 38%,
      color-mix(in srgb, var(--accent) 22%, transparent) 38%,
      color-mix(in srgb, var(--accent) 22%, transparent) 52%,
      transparent 52%),
    linear-gradient(15deg,
      transparent 60%,
      color-mix(in srgb, var(--secondary) 14%, transparent) 60%,
      color-mix(in srgb, var(--secondary) 14%, transparent) 68%,
      transparent 68%);
  opacity: 0.85;
}

/* Flashlight: the page is dark until the cursor shines on it */
.beam {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(
    circle var(--beam-radius) at var(--beam-x) var(--beam-y),
    transparent 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 55%,
    color-mix(in srgb, var(--bg) calc(var(--beam-strength) * 100%), transparent) 100%
  );
  transition: opacity 0.4s ease;
}

body.beam-off .beam { opacity: 0; }

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes fill { to { transform: scaleX(1); } }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand .prompt { color: var(--secondary); }

.nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.6rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle__icon { color: var(--accent); font-size: 0.9rem; }

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 10;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
}

.block {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.block-head { margin-bottom: 2rem; }

h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.block-sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.88rem;
  max-width: 62ch;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 10;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 1.25rem;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 22%, transparent);
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}

/* blinking terminal caret */
h1::after {
  content: "_";
  color: var(--accent);
  font-weight: 300;
  margin-left: 0.06em;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.lede {
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lede strong { color: var(--accent); font-weight: 600; }

.lede--small {
  font-size: 0.9rem;
  color: var(--ink-dim);
  font-family: var(--mono);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--surface-2); border-color: var(--accent); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #2e3440;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 82%, white);
  border-color: color-mix(in srgb, var(--accent) 82%, white);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin: 0.5rem 0 0;
}

/* ---------- menu ---------- */
.menu {
  display: grid;
  gap: 2.5rem;
}

.menu-group h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent);
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.item:last-child { border-bottom: 0; }

.item-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.item-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
  max-width: 58ch;
}

.item-price {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary);
  white-space: nowrap;
}

/* ---------- quips ---------- */
.quips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.quips li {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.quips li::before {
  content: ">";
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: var(--secondary);
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- rules ---------- */
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 1.25rem;
}

.rules li {
  counter-increment: rule;
  position: relative;
  padding-left: 3.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.rules strong { color: var(--ink); }

/* ---------- booking form ---------- */
.book-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--ink-dim) 75%, transparent); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.form-status {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--secondary);
}

.form-status[data-state="error"] { color: var(--warn); }

/* ---------- footer cards ---------- */
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.card h3 {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent);
}

.hours { margin: 0; font-size: 0.85rem; }

.hours > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours > div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; color: var(--ink-dim); text-align: right; }
.hours dd.closed { color: var(--warn); }

.address {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.card-note {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin: 0.75rem 0 0;
  text-wrap: pretty;
}

/* ---------- closing quote ---------- */
.block--quote { border-top: 1px solid var(--line); }

blockquote {
  margin: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--surface);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
}

blockquote p {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
  color: var(--ink);
  text-wrap: pretty;
}

blockquote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 5rem;
  border-top: 1px solid var(--line);
}

.footer-line {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-line--small { font-size: 0.78rem; color: var(--ink-dim); }
.footer-line a { color: var(--accent); }

.attribution {
  position: static;
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  opacity: 0.55;
  font-family: var(--mono);
}

.attribution a { color: inherit; }

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

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .book-form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .menu { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  .footer-cards { grid-template-columns: 1fr; gap: 1.25rem; }
  .nav { width: 100%; margin-left: 0; gap: 0.9rem; }
  .theme-toggle { margin-left: auto; }
  .item { grid-template-columns: 1fr; gap: 0.35rem; }
  .item-price { justify-self: start; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1::after { animation: none; opacity: 1; }
  .progress span { animation: none; transform: scaleX(1); }
  .beam { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- no-JS / no-pointer fallback: page is fully readable ---------- */
@media (hover: none) {
  .beam { display: none; }
}
