/* ============================================================
   THE LOGBOOK — design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;600;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* color */
  --ink: #0B0E11;
  --ink-soft: #161A1F;
  --paper: #F5F1E8;
  --paper-dim: #E8E1D2;
  --brass: #C9A227;
  --brass-bright: #E0BC4A;
  --blueprint: #3D5A6C;
  --redline: #8B2E2E;
  --line: rgba(245, 241, 232, 0.14);
  --line-dark: rgba(11, 14, 17, 0.12);

  /* type */
  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* layout */
  --max: 1180px;
  --pad: 6vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* faint blueprint grid texture on dark sections */
.grid-texture {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brass-bright);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-brand .brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.6;
  padding: 8px 14px;
  border-radius: 3px;
  transition: opacity 0.2s, background 0.2s;
}

.nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.05); }
.nav-links a.active { opacity: 1; color: var(--brass-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-family: var(--mono);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad) 48px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(245,241,232,0.45);
  text-transform: uppercase;
}

/* ============================================================
   SHARED UTILITY
   ============================================================ */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--brass-bright);
}

.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--blueprint);
  background: rgba(61, 90, 108, 0.18);
  border: 1px solid rgba(61, 90, 108, 0.4);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px var(--pad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.section-head p {
  max-width: 360px;
  color: rgba(245,241,232,0.6);
  font-size: 0.95rem;
}

/* ============================================================
   HERO / COCKPIT PANEL  (home page)
   ============================================================ */

.cockpit {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad) 60px;
  position: relative;
  overflow: hidden;
}

.cockpit::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201,162,39,0.10), transparent 70%);
  pointer-events: none;
}

.cockpit-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.cockpit-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockpit-label .blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--redline);
  box-shadow: 0 0 0 0 rgba(139,46,46,0.7);
  animation: blip 2.4s infinite;
}

@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(139,46,46,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(139,46,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,46,46,0); }
}

.cockpit h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 980px;
}

.cockpit h1 em {
  font-style: normal;
  color: var(--brass-bright);
}

.cockpit-sub {
  margin-top: 28px;
  max-width: 560px;
  color: rgba(245,241,232,0.65);
  font-size: 1.05rem;
}

/* gauge nav cards */
.gauges {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gauge {
  background: var(--ink);
  padding: 32px 28px 28px;
  position: relative;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.gauge:hover { background: var(--ink-soft); }

.gauge-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blueprint);
  letter-spacing: 0.08em;
}

.gauge-name {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 14px;
  line-height: 1.05;
}

.gauge-desc {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(245,241,232,0.55);
  flex-grow: 1;
}

.gauge-arrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--brass-bright);
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.gauge:hover .gauge-arrow { gap: 12px; }

@media (max-width: 760px) {
  .gauges { grid-template-columns: 1fr; }
}

/* dial decoration strip */
.dial-strip {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(245,241,232,0.4);
  letter-spacing: 0.04em;
}

.dial-strip strong { color: var(--paper); font-weight: 500; }

/* ============================================================
   LEDGER ROW LIST  — used on collection pages
   ============================================================ */

.ledger {
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row .row-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--brass-bright);
  padding-top: 4px;
}

.ledger-row .row-body h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.1;
}

.ledger-row .row-body p {
  color: rgba(245,241,232,0.62);
  font-size: 0.92rem;
  max-width: 560px;
}

.row-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(245,241,232,0.5);
  text-align: right;
  min-width: 140px;
}

.row-specs .spec-val { color: var(--paper); }

@media (max-width: 700px) {
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .row-specs { text-align: left; }
}

/* ============================================================
   SPEC CARD GRID — used for cars / planes detail tiles
   ============================================================ */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-card {
  background: var(--ink);
  padding: 34px;
}

.spec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.spec-card .plate {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--brass-bright);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.spec-card h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.spec-card .subhead {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--blueprint);
  margin-bottom: 16px;
}

.spec-card p.note {
  font-size: 0.9rem;
  color: rgba(245,241,232,0.62);
  margin-bottom: 20px;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.spec-table div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--line-dark); padding-bottom: 4px; }
.spec-table .k { color: rgba(245,241,232,0.45); }
.spec-table .v { color: var(--paper); text-align: right; }

/* ============================================================
   PAGE HERO (non-home pages)
   ============================================================ */

.page-hero {
  padding: 70px var(--pad) 50px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.95;
  margin-top: 18px;
}

.page-hero .sub {
  margin-top: 20px;
  max-width: 540px;
  color: rgba(245,241,232,0.6);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(245,241,232,0.4);
  text-transform: uppercase;
}

.breadcrumb a { color: var(--brass-bright); }

/* stat strip used in page heroes */
.stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-strip .stat .num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brass-bright);
  line-height: 1;
}

.stat-strip .stat .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.45);
  margin-top: 6px;
}

/* ============================================================
   CTA BAND (bottom of pages)
   ============================================================ */

.cta-band {
  background: var(--paper);
  color: var(--ink);
  padding: 70px var(--pad);
}

.cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 800;
}

.btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, background 0.2s;
  border: 1px solid var(--ink);
}

.btn:hover { background: var(--redline); border-color: var(--redline); transform: translateY(-2px); }

.btn.alt {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}
.btn.alt:hover { background: rgba(255,255,255,0.06); border-color: var(--brass-bright); color: var(--brass-bright); transform: translateY(-2px);}
