/* ==========================================================
   Super Hairo — theme stylesheet
   Palette drawn from the book cover + original site:
   ink navy, primary blue, comic yellow, spot red, sky tints
   ========================================================== */

:root {
  --ink: #1e293b;
  --ink-soft: #334155;
  --slate: #475569;
  --blue: #046bd2;
  --blue-deep: #045cb4;
  --sky: #eaf3fc;
  --paper: #ffffff;
  --alt: #f0f5fa;
  --yellow: #ffd234;
  --yellow-deep: #e6bd2f;
  --red: #e23b4e;
  --line: #d1d5db;
  --purple: #7d568b;

  --font-display: "Roboto Slab", Georgia, serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Be Vietnam Pro", "Roboto", sans-serif;

  --radius: 10px;
  --shadow-panel: 8px 8px 0 rgba(30, 41, 59, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; color: #fff;
}
.brand span { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--yellow); }
.nav-links a.nav-cta {
  background: var(--yellow); color: #000; padding: 9px 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-links a.nav-cta:hover { background: var(--yellow-deep); border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #d9ecfd 0%, var(--sky) 55%, #fff 100%);
  border-bottom: 2px solid var(--ink);
}
.hero-halftone {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(4, 107, 210, 0.16) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(105deg, rgba(0,0,0,0.9), transparent 55%);
  -webkit-mask-image: linear-gradient(105deg, rgba(0,0,0,0.9), transparent 55%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 56px;
}
.eyebrow {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 0 0 18px;
}
.hero-text { font-size: 1.12rem; max-width: 34em; }
.hero-art { position: relative; }
.hero-img { filter: drop-shadow(10px 12px 0 rgba(30, 41, 59, 0.14)); }

.buy-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.buy-row img { border: 2px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); background: #fff; transition: transform 0.15s; }
.buy-row a:hover img { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--purple); color: #e9def0; }
.section-title {
  font-family: var(--font-display); font-weight: 900; color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 22px;
  position: relative; display: inline-block;
}
/* comic marker underline */
.section-title::after {
  content: ""; position: absolute; left: -4px; right: -10px; bottom: 4px; height: 0.42em;
  background: var(--yellow); z-index: -1; transform: skew(-12deg) rotate(-1deg);
}
.section-title.on-dark { color: #fff; }
.section-intro { max-width: 46em; margin-bottom: 34px; }
.section-intro.on-dark { color: #cbd5e1; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split-reverse { grid-template-columns: 1.1fr 0.9fr; }
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }
.panel-frame {
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-panel); overflow: hidden; background: #fff;
  transform: rotate(-1.2deg);
}
.panel-frame-yellow { box-shadow: 8px 8px 0 var(--yellow); transform: rotate(1.2deg); }
.split-img { width: 100%; }
.book-cover-img { max-width: 420px; margin: 0 auto; filter: drop-shadow(8px 10px 0 rgba(30, 41, 59, 0.15)); }

.btn {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  padding: 12px 26px; border: 2px solid var(--ink);
}
.btn-primary { background: var(--yellow); color: #000; box-shadow: 3px 3px 0 var(--ink); margin-top: 16px; }
.btn-primary:hover { background: var(--yellow-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-small { padding: 8px 18px; font-size: 0.8rem; background: #fff; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); margin-top: 10px; }
.btn-small:hover { background: var(--yellow); }

/* ---------- Reviews ---------- */
.reviews-shell { display: flex; align-items: stretch; gap: 14px; }
.reviews-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 18px; scrollbar-width: thin; flex: 1;
}
.review-card {
  flex: 0 0 min(400px, 86%); scroll-snap-align: start; margin: 0;
  background: #fff; color: var(--ink-soft);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--yellow);
  padding: 26px 26px 20px; position: relative;
}
.review-quote { margin: 0 0 14px; font-size: 1.02rem; }
.review-author { font-family: var(--font-ui); font-weight: 700; color: var(--blue); }
.rev-arrow {
  align-self: center; background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.35); flex: 0 0 auto; color: var(--ink);
}
.rev-arrow:hover { background: #ffdd5e; }
@media (max-width: 640px) { .rev-arrow { display: none; } }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.event-card {
  display: flex; gap: 20px; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-panel); padding: 24px;
}
.event-date-badge {
  flex: 0 0 auto; align-self: flex-start; text-align: center;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 14px; font-family: var(--font-ui); color: var(--ink); line-height: 1.1;
}
.ed-month { display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ed-day { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; }
.ed-year { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.event-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.25rem; margin: 0 0 8px; }
.event-desc p { margin: 0 0 10px; }
.event-meta { list-style: none; margin: 0 0 10px; padding: 0; font-size: 0.95rem; }
.event-meta li { margin-bottom: 3px; }
.event-highlights-label { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 10px 0 4px; }
.event-highlights { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.events-empty { font-size: 1.05rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; max-width: 46em; }
.past-events { margin-top: 40px; }
.past-events summary {
  cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}
.past-list { list-style: none; padding: 0; margin: 16px 0 0; }
.past-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.past-date { font-family: var(--font-ui); font-weight: 700; color: var(--blue); margin-right: 10px; font-size: 0.9rem; }
.past-title { font-weight: 700; color: var(--ink); }
.past-venue { color: var(--slate); }

/* ---------- Media ---------- */
.media-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.media-tab {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--ink);
  border-radius: 999px; padding: 9px 20px; box-shadow: 2px 2px 0 var(--ink);
}
.media-tab:hover { background: var(--sky); }
.media-tab.is-active { background: var(--blue); color: #fff; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.media-card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-panel); padding: 20px; position: relative;
}
.media-card[hidden] { display: none; }
.media-badge {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
  background: var(--yellow); color: var(--ink);
}
.media-badge-podcast { background: #cdeccd; }
.media-badge-video { background: #cfe3fb; }
.media-badge-interview { background: #ffd7dc; }
.media-embed { margin: 0 0 14px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #000; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x9 iframe, .ratio-16x9 video { width: 100%; height: 100%; border: 0; display: block; }
.media-embed-audio { background: #fff; }
.media-embed-audio iframe { width: 100%; height: 152px; border: 0; display: block; }
.media-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: 0 0 8px; }
.media-desc { font-size: 0.95rem; }
.media-desc p { margin: 0 0 10px; }
.media-link { font-family: var(--font-ui); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.media-link:hover { text-decoration: underline; }
.media-none { font-size: 1rem; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-media { display: flex; flex-direction: column; gap: 30px; }
.buy-strip { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--yellow); padding: 20px 22px; }
.buy-strip-label { font-family: var(--font-display); font-weight: 900; color: var(--ink); font-size: 1.15rem; margin: 0 0 12px; }
.buy-row-compact { margin-top: 0; }

.contact-form form { margin-top: 8px; }
.contact-form .form-group, .contact-form .form-field { margin-bottom: 16px; }
.contact-form label {
  display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px;
}
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 11px 14px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--blue); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button[type="submit"], .contact-form .button, .contact-form input[type="submit"] {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: #000; background: var(--yellow);
  border: 2px solid var(--ink); border-radius: 999px; padding: 12px 30px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
}
.contact-form button[type="submit"]:hover { background: var(--yellow-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.contact-form .form-errors, .contact-form .alert { color: var(--red); font-weight: 600; }
.contact-form .form-message, .contact-form .notice { background: #e7f6e7; border: 2px solid #2e7d32; color: #1b5e20; border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.contact-form .required { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: #fff; padding: 44px 0; border-top: 4px solid var(--yellow); }
.footer-row { text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--yellow); }
.footer-contact { margin: 0 0 8px; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .dot { margin: 0 10px; color: rgba(255, 255, 255, 0.5); }
.footer-legal { font-size: 0.85rem; margin: 0; }

/* ---------- Plain pages ---------- */
.plain-page .section-title::after { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .split-reverse { grid-template-columns: 1fr; gap: 34px; }
  .split-reverse .split-media, .split-reverse .split-copy { order: initial; }
  .hero-art { max-width: 480px; }
  .section { padding: 56px 0; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--purple); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 14px;
  }
  .nav-links.is-open { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .event-card { flex-direction: column; }
}
