/* ════════════════════════════════════════════════════════════
   ENGLISH WOODS PUBLISHING — Direction A · ROAD WORK
   Site stylesheet
   ════════════════════════════════════════════════════════════ */

:root {
  --ink: #0E0E0E;
  --paper: #F5F1E6;
  --volt: #C8F23A;
  --asphalt: #1A1A1A;
  --asphalt-2: #2A2A2A;
  --concrete: #6E6E68;
  --hazard: #FF6B1A;
  --mist: #E2DDCE;

  --display: 'Anton', 'Impact', sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad-x: 56px;
  --tape: repeating-linear-gradient(45deg, var(--volt) 0 14px, var(--ink) 14px 28px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
.d-display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -1.5px;
  margin: 0;
}
.d-h1 { font-size: clamp(64px, 9vw, 168px); line-height: 0.86; }
.d-h2 { font-size: clamp(48px, 6vw, 96px); line-height: 0.9; }
.d-h3 { font-size: clamp(36px, 4vw, 64px); line-height: 0.92; }
.d-h4 { font-size: clamp(24px, 2.4vw, 36px); line-height: 0.95; }

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--volt);
}
.kicker-ink { color: var(--ink); }

.lead { font-size: 20px; line-height: 1.5; max-width: 60ch; }
.muted { color: var(--concrete); }
.green { color: var(--volt); }

/* ─── Tape ─── */
.tape {
  height: 18px;
  background: var(--tape);
}
.tape-fine { height: 12px; background: var(--tape); }

/* ─── Layout primitives ─── */
.wrap { padding: 0 var(--pad-x); }
.section { padding: 80px var(--pad-x); }
.section-tight { padding: 48px var(--pad-x); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  background: var(--volt); color: var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--volt); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--volt); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-hazard { background: var(--hazard); color: #fff; }
.btn-small { padding: 10px 14px; font-size: 11px; }

.link-uline {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: transparent;
}
.tag-volt { background: var(--volt); border-color: var(--ink); }
.tag-ink { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.tag-hazard { background: var(--hazard); color: #fff; border-color: var(--ink); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 10px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--asphalt-2);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 76px; filter: invert(98%) sepia(8%) saturate(91%) brightness(110%); }
.nav-brand-text {
  font-family: var(--display);
  font-size: 22px; line-height: 1; text-transform: uppercase; color: var(--paper);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.4px;
  color: var(--paper);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.nav-links a:hover { color: var(--volt); }
.nav-links a.active { color: var(--volt); border-bottom-color: var(--volt); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.nav-cart {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  color: var(--paper);
}
.nav-cart strong { color: var(--volt); }

/* ─── Hero (Home) ─── */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 40px var(--pad-x) 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 56px;
  align-items: center; padding: 56px 0 56px;
}
.hero h1 { color: var(--paper); }
.hero h1 .green { color: var(--volt); }
.hero-lead { color: #bbb; max-width: 580px; margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-book {
  position: relative;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.hero-book:hover { transform: rotate(0deg) scale(1.02); }
.hero-book img {
  box-shadow:
    0 50px 80px rgba(0,0,0,0.6),
    0 20px 30px rgba(0,0,0,0.5);
  display: block;
  width: 100%;
}
.hero-book::before {
  content: ''; position: absolute; inset: -18px 18px 18px -18px;
  background: var(--volt);
  z-index: -1;
}
.hero-book .stamp {
  position: absolute; top: 16px; right: 16px;
  background: var(--ink); color: var(--volt);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; font-weight: 700;
  padding: 7px 11px;
  border: 2px solid var(--volt);
}
.hero-book .badge-sold {
  position: absolute; top: 24px; left: -18px;
  background: var(--volt); color: var(--ink);
  font-family: var(--mono); font-size: 13px; line-height: 1; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  transform: rotate(-6deg);
  box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}

/* ─── Book Showcase (Home) ─── */
.book-showcase {
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--pad-x);
  position: relative;
  overflow: hidden;
}
.book-showcase .bs-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(200,242,58,0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(200,242,58,0.08), transparent 40%);
  pointer-events: none;
}
.bs-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.bs-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--asphalt-2);
  border-bottom: 1px solid var(--asphalt-2);
}
.bs-bullets .mono {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #999;
  margin-top: 8px;
  line-height: 1.5;
}
.bs-right { position: relative; perspective: 1400px; }
.bs-book {
  position: relative;
  transform: rotate(2deg);
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.bs-book:hover { transform: rotate(0) scale(1.04); }
.bs-book img {
  width: 100%;
  display: block;
  box-shadow:
    0 80px 100px rgba(0,0,0,0.7),
    0 30px 50px rgba(0,0,0,0.6),
    0 0 0 1px rgba(200,242,58,0.2);
}
.bs-book::before {
  /* Voltage block behind */
  content: ''; position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--volt);
  z-index: -1;
}
.bs-book::after {
  /* Mono caption tag */
  content: 'ON YOUR MARK, GET SET, GROW · DION PARKER';
  position: absolute;
  bottom: -40px; left: 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px;
  color: var(--volt);
}
.marquee {
  background: var(--volt); color: var(--ink);
  padding: 14px 0;
  overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  font-family: var(--display);
  font-size: 38px; text-transform: uppercase; line-height: 1;
  letter-spacing: -0.5px;
  display: inline-block;
  animation: marquee 40s linear infinite;
  padding-left: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Cards ─── */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 18px;
  transition: transform .14s, box-shadow .14s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card-dark { background: var(--asphalt); border-color: var(--asphalt); color: var(--paper); }

/* Book card */
.book-card { display: flex; flex-direction: column; }
.book-cover {
  position: relative; aspect-ratio: 3/4;
  background: #000; overflow: hidden;
  margin-bottom: 14px;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover .stamp {
  position: absolute; top: 8px; left: 8px;
  background: var(--volt); color: var(--ink);
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; font-weight: 700;
  padding: 3px 6px;
}
.book-title {
  font-family: var(--display);
  font-size: 26px; line-height: 0.95; text-transform: uppercase;
  margin: 0;
}
.book-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  color: var(--concrete); margin-top: 4px;
}
.book-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid currentColor; border-top-color: rgba(0,0,0,0.12);
}
.card-dark .book-card .row { border-top-color: rgba(255,255,255,0.12); }
.book-card .price {
  font-family: var(--display); font-size: 24px; line-height: 1;
}

/* Event card */
.event-card {
  background: var(--asphalt); color: var(--paper);
  border: 1px solid var(--asphalt-2);
  padding: 18px;
  display: flex; flex-direction: column;
  transition: background .14s, transform .14s;
}
.event-card:hover { background: var(--volt); color: var(--ink); transform: translate(-2px, -2px); }
.event-row { display: flex; gap: 12px; align-items: flex-start; }
.event-date {
  background: var(--volt); color: var(--ink);
  text-align: center; padding: 8px 10px; min-width: 60px; flex-shrink: 0;
}
.event-date .m { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.event-date .d { font-family: var(--display); font-size: 32px; line-height: 1; }
.event-date .w { font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; }
.event-city { font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 0.95; margin: 0; }
.event-sub { font-size: 13px; margin-top: 4px; color: #bbb; }
.event-card:hover .event-sub { color: var(--asphalt); }
.event-loc {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px;
  color: #888; margin-top: 18px;
}
.event-card:hover .event-loc { color: var(--asphalt); }
.event-card:hover .event-date { background: var(--ink); color: var(--volt); }

/* Featured event */
.event-featured {
  background: var(--asphalt); color: var(--paper);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .14s, color .14s;
}
.event-featured:hover { background: var(--volt); color: var(--ink); }
.event-featured .city-stack {
  font-family: var(--display); font-size: clamp(40px, 5vw, 56px); line-height: 0.9; text-transform: uppercase;
  margin: 14px 0 0;
}

/* ─── Sticky buy bar ─── */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--volt);
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--pad-x);
  transform: translateY(115%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  box-shadow: 0 -14px 34px rgba(0,0,0,0.45);
}
.buybar.show { transform: translateY(0); }
.buybar-cover {
  width: 46px; height: 62px; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--volt);
}
.buybar-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.buybar-title {
  font-family: var(--display); font-size: 20px; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buybar-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px;
  color: #9a9a92;
}
.buybar-meta .hl { color: var(--volt); }
.buybar-spacer { flex: 1; }
.buybar .btn { padding: 14px 22px; white-space: nowrap; }
.buybar-close {
  background: transparent; border: 0; color: #777;
  font-family: var(--mono); font-size: 16px; line-height: 1;
  padding: 8px 4px; flex-shrink: 0;
}
.buybar-close:hover { color: var(--volt); }
@media (max-width: 760px) {
  .buybar { gap: 12px; padding: 10px var(--pad-x); }
  .buybar-meta { display: none; }
  .buybar .btn { padding: 12px 14px; font-size: 11px; }
  .buybar-title { font-size: 16px; }
}

/* ─── Footer ─── */
.foot {
  background: var(--ink); color: var(--paper);
  padding: 48px var(--pad-x) 28px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px;
  padding-bottom: 36px; border-bottom: 1px solid var(--asphalt-2);
}
.foot-brand img { height: 60px; filter: invert(98%) sepia(8%) saturate(91%) brightness(110%); }
.foot-brand-name {
  font-family: var(--display); font-size: 28px; line-height: 1;
  text-transform: uppercase; margin-top: 8px;
}
.foot-brand-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
  color: #888; margin-top: 10px;
}
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  color: var(--volt); margin: 0 0 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--paper); }
.foot-col a:hover { color: var(--volt); }
.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; color: #888;
}

/* ─── Form ─── */
.field {
  display: flex; border: 3px solid var(--ink); background: var(--paper);
}
.field input {
  flex: 1; background: transparent; border: 0; outline: none;
  padding: 16px 18px;
  font-family: var(--mono); font-size: 14px;
  color: var(--ink);
}
.field input::placeholder { color: var(--concrete); }
.field button {
  background: var(--ink); color: var(--volt);
  border: 0; padding: 0 24px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase;
}
.field button:hover { background: var(--volt); color: var(--ink); }

/* ─── Newsletter section ─── */
.newsletter {
  background: var(--volt); color: var(--ink);
  padding: 64px var(--pad-x);
}
.newsletter .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }

/* ─── About blocks ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.about-photo {
  position: relative; aspect-ratio: 4/5; background: var(--ink); overflow: hidden;
}
.about-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(1) contrast(1.1);
}
.about-photo .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 24px 20px;
  background: linear-gradient(0deg, var(--ink), transparent);
}

/* ─── Tables ─── */
.tour-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.tour-table thead tr { background: var(--ink); color: var(--paper); }
.tour-table th {
  text-align: left; padding: 12px 14px;
  font-weight: 500; letter-spacing: 1.4px; font-size: 11px;
}
.tour-table td { padding: 18px 14px; border-bottom: 1px solid rgba(0,0,0,0.15); vertical-align: middle; }
.tour-table tr:hover td { background: rgba(200,242,58,0.18); }
.tour-table tr.featured td { background: rgba(200,242,58,0.35); }
.tour-table .city {
  font-family: var(--display); font-size: 22px; text-transform: uppercase; margin-right: 10px;
}

/* ─── Page header (non-home pages) ─── */
.page-head {
  background: var(--ink); color: var(--paper);
  padding: 60px var(--pad-x) 48px;
  position: relative;
  overflow: hidden;
}
.page-head .kicker { color: var(--volt); }
.page-head h1 { margin: 12px 0 0; color: var(--paper); }
.page-head .lead { color: #bbb; margin-top: 22px; }

/* ─── Shop ─── */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shop-grid .card.featured { grid-column: span 2; grid-row: span 2; }

/* ─── Book detail ─── */
.book-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.book-detail-cover { position: relative; }
.book-detail-cover img { box-shadow: 0 30px 60px rgba(0,0,0,0.3); width: 100%; }
.book-detail-cover .stamp {
  position: absolute; top: 14px; right: 14px;
  background: var(--ink); color: var(--volt);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; font-weight: 700;
  padding: 5px 9px;
}
.spec-list { font-family: var(--mono); font-size: 12.5px; width: 100%; border-collapse: collapse; }
.spec-list td { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
.spec-list td:first-child { color: var(--concrete); letterspacing: 1.2px; text-transform: uppercase; }
.spec-list td:last-child { text-align: right; font-weight: 600; }

/* ─── Quote ─── */
.quote {
  background: var(--ink); color: var(--paper);
  padding: 60px var(--pad-x);
  position: relative; overflow: hidden;
}
.quote .mark {
  position: absolute; right: -30px; top: -30px;
  font-family: var(--display); font-size: 380px; line-height: 1;
  color: #1a1a1a; pointer-events: none; z-index: 0;
}
.quote-text {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 96px); line-height: 0.92;
  text-transform: uppercase; letter-spacing: -1px;
  margin: 18px 0 0;
  position: relative; z-index: 1;
}
.quote-attr {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px;
  margin-top: 24px; color: #bbb;
}

/* ─── Mobile nav toggle ─── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 9px 13px;
}
.nav-toggle:hover { border-color: var(--volt); color: var(--volt); }

/* ─── Mobile breakpoint ─── */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  /* Nav collapses into a toggle-driven dropdown */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--ink);
    border-bottom: 3px solid var(--volt);
    padding: 6px var(--pad-x) 14px;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--asphalt-2); }

  .hero-grid, .about-grid, .book-detail-grid, .newsletter .grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid .card.featured { grid-column: span 2; grid-row: auto; }

  /* Inline multi-column grids stack on small screens */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .shop-grid, .foot-grid { grid-template-columns: 1fr; }
  .quote .mark { font-size: 220px; }
}
