/* ============================================
   THE GANG SPEAKS — Stylesheet
   ============================================ */

/* ---- LOCAL FONTS ---- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('BebasNeue-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- DESIGN TOKENS ---- */
:root {
  /* surfaces */
  --bg: #07060a;
  --surface: rgba(18, 16, 20, 0.62);
  --surface-strong: rgba(24, 22, 26, 0.82);

  /* text */
  --text: #f5efe5;
  --text-dim: #b2a99b;
  --text-soft: #8e8478;

  /* brand accent (warm copper / amber) */
  --accent: #d97546;
  --accent-bright: #ed8c5b;
  --accent-soft: rgba(217, 117, 70, 0.18);
  --accent-line: rgba(217, 117, 70, 0.42);
  --accent-line-strong: rgba(217, 117, 70, 0.85);

  /* lines */
  --border: rgba(255, 240, 220, 0.08);

  /* typography */
  --display: 'Bebas Neue', 'Arial Narrow', 'Impact', sans-serif;
  --sans: 'Inter Tight', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* shape */
  --radius-card: 14px;

  /* motion */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  /* shadows */
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* ---- BASE / RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

ul {
  list-style: none;
}

/* ---- ATMOSPHERIC BACKDROP ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.backdrop__image {
  position: absolute;
  inset: 0;
  background-image: url('Background.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: contrast(1.05) brightness(0.85) saturate(0.9);
}

.backdrop__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(217, 117, 70, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(0, 0, 0, 0.65) 25%, transparent 75%),
    linear-gradient(180deg, rgba(7, 6, 10, 0.55) 0%, rgba(7, 6, 10, 0.85) 55%, rgba(7, 6, 10, 0.96) 100%);
}

.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---- LAYOUT SHELL ---- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 5vw, 40px) clamp(24px, 4vh, 48px);
  animation: page-fade 700ms var(--ease-smooth) both;
}

@keyframes page-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 0 0 clamp(16px, 3vh, 32px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(13px, 2.55vw, 19px);
}

.hero__rule {
  flex: 0 0 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-line), transparent);
}

.hero__kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  line-height: 1;
}

.hero__logo {
  margin: 0 auto;
  max-width: min(77%, 486px);
  max-height: clamp(200px, 38vh, 340px);
  width: auto;
  height: auto;
  filter:
    drop-shadow(0 6px 22px rgba(0, 0, 0, 0.55))
    drop-shadow(0 1px 0 rgba(217, 117, 70, 0.08));
}

.hero__tagline {
  margin-top: clamp(11px, 2.3vw, 15px);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 0.32em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hero__tagline em {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.4em;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 2.5vh, 26px);
}

.hero__divider-line {
  flex: 0 0 56px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-line-strong), transparent);
}

.hero__divider-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--accent);
}

/* ---- SOCIAL ICONS ---- */
.socials {
  margin-bottom: clamp(18px, 3vh, 32px);
}

.socials__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2.5vw, 18px);
  flex-wrap: nowrap;
}

.social {
  --size: clamp(44px, 10vw, 56px);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.05), transparent 65%),
    rgba(20, 18, 22, 0.7);
  border: 1px solid var(--border);
  isolation: isolate;
  transition:
    transform 320ms var(--ease-smooth),
    color 220ms ease,
    border-color 240ms ease,
    box-shadow 320ms var(--ease-smooth);
}

.social__halo {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 140deg,
    transparent 0deg,
    var(--accent-line) 90deg,
    transparent 180deg,
    var(--accent-line) 280deg,
    transparent 360deg
  );
  opacity: 0.6;
  z-index: -1;
  transition: opacity 320ms var(--ease-smooth), transform 700ms var(--ease-smooth);
}

.social::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.4) 75%);
  z-index: -1;
}

.social__icon {
  width: 44%;
  height: 44%;
  fill: currentColor;
  transition: transform 320ms var(--ease-smooth);
}

.social:hover,
.social:focus-visible {
  color: var(--accent-bright);
  transform: translateY(-2px);
  border-color: var(--accent-line);
  outline: none;
}

.social:hover .social__halo,
.social:focus-visible .social__halo {
  opacity: 1;
  transform: rotate(60deg);
}

.social:hover .social__icon,
.social:focus-visible .social__icon {
  transform: scale(1.08);
}

.social:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ---- ACCORDION CARDS ---- */
.cards {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 16px);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    border-color 320ms var(--ease-smooth),
    background 320ms var(--ease-smooth);
}

.card.is-open {
  background: var(--surface-strong);
  border-color: var(--accent-line-strong);
}

.card__head-wrap {
  margin: 0;
  display: flex;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

.card__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 20px);
  padding: clamp(4px, 0.8vh, 8px) clamp(18px, 4vw, 26px);
  text-align: left;
  position: relative;
  transition: background 220ms ease;
}

.card__head:hover,
.card__head:focus-visible {
  background: linear-gradient(180deg, rgba(217, 117, 70, 0.07), rgba(217, 117, 70, 0));
  outline: none;
}

.card__head:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.card__num {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: rgba(217, 117, 70, 0.06);
  flex-shrink: 0;
  padding-top: 3px;
  transition: background 320ms var(--ease-smooth), color 220ms ease, border-color 220ms ease;
}

.card.is-open .card__num {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.card__title {
  font-family: var(--display);
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.06;
  letter-spacing: 0.025em;
  color: var(--text);
  font-weight: 400;
}

/* +/- indicator */
.card__indicator {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(217, 117, 70, 0.04);
  transition:
    background 360ms var(--ease-smooth),
    border-color 320ms var(--ease-smooth);
}

.card__indicator-bar {
  position: absolute;
  background: var(--accent);
  transition:
    transform 380ms var(--ease-smooth),
    opacity 220ms ease,
    background 240ms ease;
}

.card__indicator-bar--h {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card__indicator-bar--v {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card.is-open .card__indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.card.is-open .card__indicator-bar {
  background: var(--bg);
}

.card.is-open .card__indicator-bar--v {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.card__head:hover .card__indicator,
.card__head:focus-visible .card__indicator {
  border-color: var(--accent);
}

/* Smooth height animation via grid-template-rows */
.card__panel {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  transition: grid-template-rows 520ms var(--ease-smooth);
}

.card.is-open .card__panel {
  grid-template-rows: minmax(0, 1fr);
}

.card__panel > .card__inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 380ms var(--ease-smooth) 60ms,
    transform 520ms var(--ease-smooth) 40ms;
}

.card.is-open .card__panel > .card__inner {
  opacity: 1;
  transform: translateY(0);
}

.card__inner {
  padding: clamp(16px, 2.5vh, 22px) clamp(20px, 4.2vw, 28px) clamp(22px, 4.5vw, 28px);
}

.card__inner-divider {
  display: block;
  height: 1px;
  margin: clamp(16px, 3vw, 22px) 0;
  background: linear-gradient(to right, transparent 0%, var(--accent-line) 20%, var(--accent-line) 80%, transparent 100%);
}

.card__subhead {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card__copy {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0.003em;
}

/* ---- LIBRARY (BOOK CARDS) ---- */
.library {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vw, 16px);
}

.book {
  padding: clamp(16px, 3.4vw, 20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 16, 20, 0.55);
  transition:
    border-color 280ms var(--ease-smooth),
    background 280ms var(--ease-smooth);
}

.book:hover,
.book:focus-within {
  border-color: var(--accent-line);
  background: rgba(22, 18, 20, 0.72);
}

.book__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.book__series {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  position: relative;
  padding-left: 18px;
  line-height: 1;
}

.book__series::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.book__series-meta {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  line-height: 1.4;
}

.book__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(15px, 2.6vw, 16.5px);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.book__author {
  font-family: var(--sans);
  font-weight: 500;
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

/* Format pills (Paperback / Hardcover / Kindle) */
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.format {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(217, 117, 70, 0.05);
  transition:
    background 240ms var(--ease-smooth),
    border-color 240ms var(--ease-smooth),
    color 240ms ease,
    transform 240ms var(--ease-smooth);
  white-space: nowrap;
}

.format:hover,
.format:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  outline: none;
}

.format:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.format__arrow {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform 240ms var(--ease-smooth);
}

.format:hover .format__arrow,
.format:focus-visible .format__arrow {
  transform: translate(1.5px, -1.5px);
}

/* Multi-volume books (e.g. Summoned) */
.volumes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--accent-line);
  list-style: none;
}

.volume {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
  position: relative;
}

.volume::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--accent-line);
}

.volume__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.volume__num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.volume__subtitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.005em;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

/* ---- LINK LIST ---- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(18, 16, 20, 0.55);
  color: var(--text);
  transition:
    transform 260ms var(--ease-smooth),
    border-color 240ms ease,
    background 240ms ease,
    color 240ms ease;
}

.link:hover,
.link:focus-visible {
  border-color: var(--accent-line-strong);
  background: rgba(217, 117, 70, 0.10);
  transform: translateX(2px);
  outline: none;
}

.link:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.link__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.link__icon svg {
  width: 100%;
  height: 100%;
}

.link__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.link__num {
  display: inline-block;
  min-width: 1.7em;
  margin-right: 12px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
  position: relative;
  top: -1px;
}

.link__external {
  width: 15px;
  height: 15px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: color 240ms ease, transform 280ms var(--ease-smooth);
}

.link__external svg {
  width: 100%;
  height: 100%;
}

.link:hover .link__external,
.link:focus-visible .link__external {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ---- FOOTER ---- */
.footer {
  margin-top: clamp(24px, 3.5vh, 44px);
  text-align: center;
}

.footer__rule {
  width: 56px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(to right, transparent, var(--accent-line-strong), transparent);
}

.footer__line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer__sep {
  color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 420px) {
  .hero__kicker {
    font-size: 9.5px;
    letter-spacing: 0.3em;
  }

  .hero__rule {
    flex-basis: 24px;
  }

  .socials__list {
    gap: 7px;
  }

  .social {
    --size: 44px;
  }

  .card__num {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .card__indicator {
    width: 30px;
    height: 30px;
  }

  .card__head {
    gap: 12px;
    padding: 16px;
  }

  .card__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}


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