:root {
  --bg: #0b0d14;
  --bg-alt: #121624;
  --text: #e9e6df;
  --muted: #a9a6a0;
  --accent: #e8863a;
  --accent-hover: #ffa05a;
  --orange: #ee9a3a;          /* hero button */
  --orange-glass: rgba(232, 150, 45, .5);    /* hero title box */
  --header-h: 64px;
  --fade: 1.5s;               /* hero crossfade duration */
  --display: "Exo 2", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --sans: Lato, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Consolas, "DejaVu Sans Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .01em; }
h3 { font-size: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* anchors land below the fixed header */
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(11, 13, 20, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--sans);
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.site-header nav { display: flex; gap: 22px; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--accent); }
.nav-buy { border: 1px solid var(--accent); padding: 6px 14px; border-radius: 4px; color: var(--accent) !important; }
.nav-buy:hover { background: var(--accent); color: #111 !important; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  background: var(--accent); color: #111; text-decoration: none;
  font-family: var(--sans); font-weight: 700; letter-spacing: .02em;
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); color: #111; }

/* ---------- Parallax ----------
   .parallax__bg is positioned and sized by script.js (see the comment there).
   These are the no-JS / reduced-motion defaults: image anchored to its top. */
.parallax { position: relative; overflow: hidden; }
.parallax__bg {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background-size: cover; background-position: center top;
  will-change: transform;
}
.parallax__shade { position: absolute; inset: 0; background: rgba(8,10,18,.55); }
.parallax__shade--light { background: rgba(255,255,255,.3); }
.parallax__content { position: relative; }
/* Where To Buy: heading, sentence and buttons over the picture. There is no dark
   overlay: the heading gets a soft shadow, and the sentence sits in a solid black box. */
.parallax--band { background: #1b2a44; }
.parallax--band .parallax__content { max-width: 1200px; padding-top: 110px; padding-bottom: 110px; }   /* wide enough for all three buttons in one row */
.parallax--band h2 { text-shadow: 0 2px 12px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6); }
.parallax--band p {
  display: inline-block; max-width: 100%;          /* the box hugs the text instead of spanning the row */
  margin: 0;
  padding: .2em .5em;                              /* the box's padding: top/bottom, left/right */
  background: rgba(0,0,0,.5); color: #fff;                   /* solid black; use rgba(0,0,0,.8) for slightly see-through */
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; height: 100vh; height: 100svh; min-height: 560px; background: #000; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  /* Outgoing slide stays fully opaque underneath until the incoming one has
     finished fading in, so the crossfade never dips to black. */
  opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity 0s linear var(--fade), visibility 0s linear var(--fade);
}
.slide.is-active {
  opacity: 1; visibility: visible; z-index: 2;
  transition: opacity var(--fade) ease;
}
.slide__text {
  position: relative; width: 100%;
  padding-top: var(--header-h);
  display: flex; flex-direction: column; align-items: flex-start;
}
/* translucent orange title box, flush with the left edge */
.slide__title {
  display: inline-block; max-width: 100%; margin: 0;
  background: var(--orange-glass); color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 4.2rem); font-weight: 700; line-height: 1.25;
  padding: .06em .4em .06em 18px;
}
/* black box + white box */
.slide__sub { display: flex; flex-wrap: wrap; margin: 4.5vh 0 0; max-width: 100%; }
.sub {
  font-family: var(--mono); font-size: clamp(.8rem, 1.3vw, 1.5rem);
  letter-spacing: .07em; line-height: 1.2; padding: .95em 16px;
}
.sub--dark  { background: #0a0a0a; color: #fff; padding-left: 18px; }
.sub--light { background: rgba(236,236,236,.95); color: #111; }
/* button hugs the right edge */
.btn--hero {
  align-self: flex-end; margin-top: 6.5vh;
  border-radius: 0; background: var(--orange); color: #fff;
  padding: 16px clamp(22px, 3.2vw, 46px);
  font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.btn--hero:hover { background: #ffb256; color: #fff; }

.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 28px; height: 66px; padding: 0; border: 0; border-radius: 0;
  display: grid; place-items: center;
  background: rgba(30, 42, 52, .72); color: #fff; cursor: pointer;
  transition: background .2s;
}
.arrow:hover { background: var(--orange); }
.arrow--prev { left: 0; }
.arrow--next { right: 0; }

/* ---------- Bands ---------- */
.band { padding: 80px 0; background: var(--bg); }
.band--dark { background: var(--bg-alt); }
.buy-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 1.6em; }

/* Buy buttons.
   At rest: tinted glass that also darkens and softens whatever is behind it, so the
   white text stays readable. --glass = tint (raise the last number for more solid,
   lower for more see-through).
   On hover / keyboard focus: a 2px orange edge, orange text, and a translucent black
   fill (--hover-tint) inside it; the picture still shows through. */
.btn--glass {
  --glass: rgba(238, 154, 58, .5);
  --hover-tint: rgba(0, 0, 0, .45);
  display: inline-flex; align-items: center; justify-content: center;
  height: 41px; padding: 0 38px; border-radius: 0;
  background: var(--glass); border: 1px solid rgba(255, 196, 120, .95);
  -webkit-backdrop-filter: blur(3px) brightness(.72);
          backdrop-filter: blur(3px) brightness(.72);
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--glass:hover,
.btn--glass:focus-visible {
  background: var(--hover-tint);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);       /* 1px border + 1px inset = a 2px edge, with no layout shift */
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  color: var(--orange);
  outline: none;
}

/* Quotes (the .arrow buttons are positioned against this band, same style as the hero's) */
#testimonials { position: relative; }
.quotes { position: relative; max-width: 820px; margin: 0 auto; padding: 0 24px; min-height: 190px; }
.quote { position: absolute; inset: 0 24px; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; display: flex; flex-direction: column; justify-content: center; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0 0 .8em; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-style: italic; }
.quote figcaption { font-family: var(--sans); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.quote-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.quote-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); cursor: pointer; }
.quote-dots button.is-active { background: var(--accent); }

/* ---------- Tabbed sections (white) ---------- */
.tabbed { background: #fff; color: #222; font-family: var(--sans); padding: 80px 0 90px; }
.tabbed--alt { padding-top: 20px; }               /* second white section follows the first */
.tabbed .wrap { max-width: 1100px; }
.tabbed h2 { text-align: left; color: #2b2b2b; font-size: clamp(2rem, 3.4vw, 3.4rem); }
.tabbed .lead { text-align: left; max-width: 820px; margin: 0 0 2.2em; font-size: 1.15rem; color: #333; }
.tabbed h2 + .tabs { margin-top: 1.6em; }

.tabs { display: flex; flex-wrap: wrap; border: 1px dotted #999; padding: 2px; margin: 0 0 32px; }
.tab {
  display: inline-flex; align-items: center; height: 44px; padding: 0 24px;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #222; text-decoration: none;
}
.tab:hover { color: var(--accent); }
.tab.is-active { background: #2b2b2b; color: #fff; }

/* Without JS every panel shows; with JS only the active one does. */
.js .panel { display: none; }
.js .panel.is-active { display: grid; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: start; }
.panel--book { grid-template-columns: 220px 1fr; gap: 40px; }   /* narrow cover column: the text sits right beside the cover */
.panel + .panel { margin-top: 56px; }
.js .panel + .panel { margin-top: 0; }
.panel__media img { height: auto; }
.panel--book .panel__media img { width: 220px; }
.panel--lore .panel__media img { width: 100%; max-width: 480px; }
.panel__title { border-bottom: 1px dotted #999; margin: 0 0 1.3em; }
.panel__title h3 {
  display: inline-block; margin: 0; padding: 14px 16px 13px;
  background: #2b2b2b; color: #fff;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.panel__text p { margin: 0 0 1.2em; font-size: 1.05rem; line-height: 1.7; }
.panel__text .praise { margin-bottom: .2em; }
.panel__text .praise-by { text-align: center; margin-bottom: 1.8em; }

/* ---------- Team ---------- */
#team { background: #fff; }
.section-head { background: #fff; padding: 70px 0 38px; }
.section-head .wrap { max-width: 1100px; }
.section-head h2 { margin: 0; color: #2b2b2b; font-size: clamp(2rem, 3.4vw, 3.4rem); }
.team__band { background: #e8e2d9; color: #333; min-height: 540px; }
.team__band .parallax__content { max-width: 1100px; padding: 130px 20px 110px; }
.team { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: flex-start; gap: 8px; }
.team li {
  flex: 0 0 160px; width: 160px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  will-change: transform, opacity;     /* script.js animates these on scroll */
}
.team img { width: 128px; height: auto; margin-bottom: 12px; }
.team em { font-size: 1.05rem; color: #333; }
.team span { font-size: .95rem; line-height: 1.4; color: #555; }

/* ---------- Blog ---------- */
.post { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4em; margin-top: 1.8em; }
.post h3 { margin-bottom: .2em; }
.meta { color: var(--muted); font-family: var(--sans); font-size: .85rem; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 36px 20px 50px; font-family: var(--sans); font-size: .9rem; color: var(--muted); background: #070910; }
.site-footer p { margin: .3em 0; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .team { flex-wrap: wrap; gap: 28px 12px; }
  .team__band .parallax__content { padding-top: 80px; padding-bottom: 70px; }
}
@media (max-width: 760px) {
  .site-header { padding: 0 14px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: .85rem; }
  .brand { font-size: .9rem; }
  .slide__sub { margin-top: 3vh; }
  .sub { padding: .8em 12px; }
  .sub--dark { padding-left: 18px; }
  .btn--hero { margin-top: 4vh; }
  .tabbed { padding: 60px 0 70px; }
  .tabbed--alt { padding-top: 10px; }
  .tab { padding: 0 14px; letter-spacing: .12em; }
  .panel { grid-template-columns: 1fr; gap: 24px; }
  .panel--book .panel__media img { margin: 0 auto; }
  .panel--lore .panel__media img { margin: 0 auto; }
  .quotes { min-height: 260px; }
  .quote { inset: 0 40px; }                       /* keep the text clear of the edge arrows */
  .parallax--band .parallax__content { padding-top: 80px; padding-bottom: 80px; }
  .btn--glass { padding: 0 24px; letter-spacing: .14em; }
  .section-head { padding: 50px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active, .quote { transition: none; }
}
