/* ═══════════════════════════════════════════════
   Inroad Press — site stylesheet
   The room the eight books live in.
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0E1C2A;
  --navy-2: #14283C;
  --cream: #F3EFE6;
  --paper: #FBF6EA;
  --ink: #0E1C2A;
  --ink-soft: #43505E;
  --muted: #9DB4D0;
  --cobalt: #1C42B1;
  --v1: #105654; --v2: #1C42B1; --v3: #591C23; --v4: #8E6B0F;
  --v5: #C73E1E; --v6: #1D5A31; --v7: #45597C; --v8: #A14D28;
  --t1: #6FCFBC; --t2: #A3BCF5; --t3: #F2A9AE; --t4: #F2D26A;
  --t5: #FFC09B; --t6: #90D9A9; --t7: #B9CDE8; --t8: #F4B07E;
  --rule: rgba(14, 28, 42, 0.16);
  --rule-soft: rgba(14, 28, 42, 0.08);
  --rule-cream: rgba(243, 239, 230, 0.18);
  --rule-cream-soft: rgba(243, 239, 230, 0.09);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Source Serif 4', Georgia, serif;
  --ui: 'Archivo', -apple-system, Helvetica, sans-serif;
  --measure: 640px;
  --wide: 1160px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--cobalt); color: var(--cream); }

/* ═══ Shared vocabulary ═══ */
.kicker {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.dash { width: 44px; height: 6px; background: var(--muted); }
.hue-strip { display: flex; height: 10px; }
.hue-strip span { flex: 1; }
.hue-strip .h1 { background: var(--v1); } .hue-strip .h2 { background: var(--v2); }
.hue-strip .h3 { background: var(--v3); } .hue-strip .h4 { background: var(--v4); }
.hue-strip .h5 { background: var(--v5); } .hue-strip .h6 { background: var(--v6); }
.hue-strip .h7 { background: var(--v7); } .hue-strip .h8 { background: var(--v8); }

.container { max-width: var(--measure); margin: 0 auto; padding: 0 var(--pad); }
.container-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.prose p { max-width: var(--measure); text-wrap: pretty; }
.prose p + p { margin-top: 1.2em; }
.prose a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1.5px solid currentColor;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  background: none;
  white-space: nowrap;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--cream); }
.btn-solid { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--cream); }

/* pre-order slot: quiet non-link state + styled link for when it goes live */
.slot { display: inline-flex; align-items: center; }
.slot-status {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px dashed currentColor;
  opacity: 0.62;
  white-space: nowrap;
}
.slot-btn {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 20px;
  background: var(--navy);
  color: var(--cream);
  transition: background 0.18s;
  white-space: nowrap;
}
.slot-btn:hover { background: var(--cobalt); }
.on-navy .slot-btn { background: var(--cream); color: var(--navy); }
.on-navy .slot-btn:hover { background: var(--cobalt); color: var(--cream); }

/* ═══ Nav ═══ */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--rule-cream-soft);
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark { font-family: var(--body); font-size: 0.82rem; color: var(--muted); margin-right: 9px; }
.nav-links { display: flex; gap: clamp(14px, 2.6vw, 30px); flex-wrap: wrap; }
.nav-links a {
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
}
.nav-links a::before {
  content: attr(data-num);
  font-family: var(--display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  margin-right: 7px;
  opacity: 0.7;
}
.nav-links a:hover { color: var(--cream); }

/* ═══ Sections ═══ */
.on-navy { background: var(--navy); color: var(--cream); }
.on-navy .prose a { color: var(--t2); }
.on-navy .prose a:hover { color: var(--cream); }
section.block { padding: clamp(72px, 10vw, 130px) 0; }

/* ═══ Pull quotes ═══ */
.pullquote { padding: clamp(76px, 10vw, 130px) 0; }
.pq-inner { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }
.pq-inner .dash { margin-bottom: 34px; }
.pullquote blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.32;
  text-wrap: pretty;
}
.pullquote blockquote em { font-style: italic; }
.pq-attr {
  margin-top: 28px;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.on-navy .pq-attr { color: var(--muted); }

/* ═══ Cover carousel / showcase ═══ */
.carousel { position: relative; }
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
.car-item { margin: 0; }
.car-item img { width: 100%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.car-caption { margin-top: 14px; }
.car-vol {
  display: block;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.car-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 5px 0 12px;
}
.car-controls { display: none; }

/* enhanced (JS) state */
.js .carousel.enhanced .car-grid { display: block; }
.js .carousel.enhanced .car-item { display: none; }
.js .carousel.enhanced .car-item.active { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.js .carousel.enhanced .car-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 26px;
}
.car-dots { display: flex; gap: 7px; flex-wrap: wrap; }
.car-dot {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.78rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--rule-cream);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.car-dot:hover { border-color: var(--cream); color: var(--cream); }
.car-dot[aria-current="true"], .car-dot.is-active { background: var(--vh, var(--cream)); border-color: var(--vh, var(--cream)); color: var(--vd, var(--navy)); }
.car-arrows { display: flex; gap: 8px; }
.car-arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--rule-cream);
  color: var(--cream);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.car-arrow:hover { background: var(--cobalt); border-color: var(--cobalt); }

/* on cream contexts */
.carousel.on-cream .car-dot { border-color: var(--rule); color: var(--ink-soft); }
.carousel.on-cream .car-dot:hover { border-color: var(--ink); color: var(--ink); }
.carousel.on-cream .car-arrow { border-color: var(--rule); color: var(--ink); }
.carousel.on-cream .car-arrow:hover { color: var(--cream); }

/* ═══ Book paper (excerpt artifact) ═══ */
.spread {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(34px, 5.4vw, 66px) clamp(24px, 5.4vw, 64px) clamp(34px, 5vw, 56px);
  max-height: 620px;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(14, 28, 42, 0.16);
  border-top: 6px solid var(--vh, var(--navy));
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.spread::-webkit-scrollbar { width: 4px; }
.spread::-webkit-scrollbar-thumb { background: var(--muted); }
.spread-header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.spread-label {
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.spread h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.65rem;
  margin-bottom: 20px;
}
.spread .epigraph {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.spread .sub-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  margin: 26px 0 10px;
}
.spread p {
  font-size: 0.97rem;
  line-height: 1.78;
  margin-bottom: 16px;
  hyphens: auto;
}
.spread p strong { font-weight: 600; }
.spread .fn-marker { color: var(--cobalt); font-weight: 600; }
.spread .fn {
  margin-top: 30px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ═══ Sub-page hero ═══ */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 8vw, 110px);
}
.page-hero .kicker { color: var(--muted); }
.page-hero .dash { margin: 26px 0 30px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
.page-hero h1 em { font-style: italic; }
.page-hero .sub {
  margin-top: 26px;
  font-family: var(--body);
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}

/* ═══ Colophon ═══ */
footer.colophon {
  background: var(--navy);
  color: var(--cream);
}
.colophon-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) var(--pad) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.colophon-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.colophon-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 360px;
  text-wrap: pretty;
}
.colophon h4 {
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.colophon ul { list-style: none; }
.colophon li { margin-bottom: 10px; }
.colophon li a {
  font-family: var(--ui);
  font-size: 0.84rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.18s;
}
.colophon li a:hover { color: var(--t2); }
.colophon-fine {
  max-width: var(--wide);
  margin: 44px auto 0;
  padding: 0 var(--pad);
  font-family: var(--ui);
  font-size: 0.7rem;
  line-height: 1.65;
  color: rgba(243, 239, 230, 0.45);
}
.colophon-bottom {
  max-width: var(--wide);
  margin: 28px auto 0;
  padding: 22px var(--pad) 34px;
  border-top: 1px solid var(--rule-cream-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .colophon-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a::before { content: none; }
}
