/* ==========================================================================
   The Wolves Universe — site styles
   Palette drawn from the book covers: fog-black blues, bone-white display
   type, tarnished gold, and a controlled hit of blood red.
   ========================================================================== */

:root {
  --ink: #0a0d13;          /* page background */
  --ink-2: #0d1119;        /* alternating section background */
  --surface: #131926;      /* cards, panels */
  --surface-2: #1a2233;
  --bone: #ddd6c7;         /* display type, from the cover lettering */
  --text: #bcc2cc;         /* body copy */
  --muted: #8a92a3;
  --gold: #c79a4b;         /* author-name gold from the covers */
  --gold-bright: #e0b665;
  --blood: #c5352a;        /* "coming soon" red */
  --line: rgba(221, 214, 199, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lora", Georgia, serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --container: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(199, 154, 75, 0.35); color: var(--bone); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 19, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 214, 199, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.25rem;
}

.nav-logo img {
  width: clamp(150px, 20vw, 210px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  padding: 0.5rem 0;
}

.nav-links a:hover { color: var(--gold-bright); }

.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom: 2px solid var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.55rem 1.1rem !important;
  color: var(--gold-bright) !important;
}
.nav-cta:hover { background: rgba(199, 154, 75, 0.12); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--bone);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a0d13;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(221, 214, 199, 0.07);
  }
  .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--gold); }
  .nav-cta { margin-top: 0.9rem; text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #14100a;
}
.btn-primary:hover { background: var(--gold-bright); color: #14100a; }

.btn-ghost {
  border-color: rgba(221, 214, 199, 0.4);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(92svh, 60rem);
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 13, 19, 0.55) 0%, rgba(10, 13, 19, 0.15) 35%, rgba(10, 13, 19, 0.82) 78%, var(--ink) 100%);
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-block: clamp(3rem, 9vh, 6rem) var(--space-5);
  text-align: center;
}

/* Title rides high in the sky; tagline + CTAs stay anchored at the bottom */
.hero-content picture {
  display: block;
  margin-bottom: auto;
  position: relative;
  z-index: 1; /* below .hero-tower so letters pass behind the bridge tower */
  will-change: transform; /* scroll parallax */
}

.hero-tagline,
.hero .btn-row {
  position: relative;
  z-index: 3; /* above the tower layer's soft fade */
}

/* Soft-masked duplicate of the hero image: only the bridge-tower region is
   revealed, painted above the title. Same image + same darkening gradient as
   .hero-bg, so the seam is invisible. Desktop only — the tower is cropped out
   of frame on narrow viewports. */
.hero-tower {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
  -webkit-mask-image: radial-gradient(
    ellipse 10% 34% at 68.5% 30%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: radial-gradient(
    ellipse 10% 34% at 68.5% 30%,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 100%
  );
}
.hero-tower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-tower::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 13, 19, 0.55) 0%, rgba(10, 13, 19, 0.15) 35%, rgba(10, 13, 19, 0.82) 78%, var(--ink) 100%);
}
@media (min-width: 821px) {
  .hero-tower { display: block; }
}

.hero-logo {
  width: min(22rem, 74vw);
  margin-inline: auto;
  opacity: 0.85;
  /* Screen blend lets the storm clouds bleed through the letterforms */
  mix-blend-mode: screen;
  /* Fog fade: the bottoms of the letters dissolve into the mist */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.82) 70%,
    rgba(0, 0, 0, 0.45) 92%,
    rgba(0, 0, 0, 0.3) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.82) 70%,
    rgba(0, 0, 0, 0.45) 92%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Desktop: single-line logo keeps the figures and bridge in view */
@media (min-width: 821px) {
  .hero-logo {
    width: min(56rem, 66vw);
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 30%,
      rgba(0, 0, 0, 0.75) 68%,
      rgba(0, 0, 0, 0.4) 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 30%,
      rgba(0, 0, 0, 0.75) 68%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  color: var(--bone);
  max-width: 46rem;
  margin: var(--space-3) auto var(--space-1);
}

.hero-sub {
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
}

.hero .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-header {
  background:
    radial-gradient(80rem 30rem at 50% -10rem, rgba(38, 52, 84, 0.55), transparent 70%),
    var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-5) var(--space-4);
  text-align: center;
}

.page-header p {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: var(--space-6); }
.section-alt { background: var(--ink-2); border-block: 1px solid rgba(221, 214, 199, 0.06); }

.section-head {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto var(--space-5);
}
.section-head p { color: var(--muted); }
.section-head .rule { margin-bottom: var(--space-3); }

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: var(--space-2) auto 0;
}

/* Series dividers on the Books page: hairline + diamond, then the
   character's name in large display type with an italic tagline */
.series-head { max-width: 54rem; }

.series-rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.series-rule span {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
}
.series-rule::before,
.series-rule::after {
  content: "";
  flex: 1;
  height: 1px;
}
.series-rule::before {
  background: linear-gradient(to right, transparent, rgba(199, 154, 75, 0.55));
}
.series-rule::after {
  background: linear-gradient(to left, transparent, rgba(199, 154, 75, 0.55));
}

.series-name {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.series-tagline {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Character cards (home teaser)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
}

.character-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.character-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.character-card:hover img,
.character-card:focus-visible img { transform: scale(1.04); }

.character-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 4.5rem 1.4rem 1.5rem;
  background: linear-gradient(to top, rgba(8, 10, 15, 0.96) 35%, transparent);
}

.character-card h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}
.character-card:hover h3,
.character-card:focus-visible h3 { color: var(--gold-bright); }

.card-tag {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* Wrapper that hosts fog layers over standalone images (Characters page) */
.fog-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.fog-frame img {
  display: block;
  box-shadow: none; /* shadow moves to the frame so the fog clips cleanly */
}

/* Fog drift: two blurred mist layers moving at different speeds */
.card-fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.card-fog::before,
.card-fog::after {
  content: "";
  position: absolute;
  inset: -25% -60%;
  filter: blur(16px);
}
.card-fog::before {
  background:
    radial-gradient(22% 13% at 20% 64%, rgba(190, 202, 220, 0.85), transparent 68%),
    radial-gradient(16% 9% at 48% 50%, rgba(165, 180, 202, 0.6), transparent 68%),
    radial-gradient(26% 14% at 78% 74%, rgba(185, 198, 216, 0.75), transparent 68%),
    radial-gradient(14% 8% at 38% 24%, rgba(175, 188, 208, 0.5), transparent 68%),
    radial-gradient(20% 11% at 92% 38%, rgba(180, 193, 212, 0.55), transparent 68%);
  opacity: 0.55;
  animation: fog-drift-a 14s ease-in-out infinite alternate;
}
.card-fog::after {
  background:
    radial-gradient(18% 11% at 72% 28%, rgba(184, 196, 214, 0.7), transparent 68%),
    radial-gradient(28% 15% at 30% 82%, rgba(170, 184, 205, 0.7), transparent 68%),
    radial-gradient(14% 8% at 12% 30%, rgba(190, 202, 220, 0.55), transparent 68%),
    radial-gradient(20% 12% at 55% 65%, rgba(160, 175, 198, 0.5), transparent 68%);
  opacity: 0.46;
  animation: fog-drift-b 23s ease-in-out infinite alternate;
}
@keyframes fog-drift-a {
  from { transform: translate3d(-24%, 0, 0); }
  to   { transform: translate3d(24%, 4%, 0); }
}
@keyframes fog-drift-b {
  from { transform: translate3d(20%, -4%, 0); }
  to   { transform: translate3d(-20%, 4%, 0); }
}

/* "Coming Soon" overlay, applied uniformly to every unreleased cover.
   Sized in container-query units so the label is always the same size
   relative to its cover, wherever the cover appears. */
.character-card,
.feature-media.cover {
  container-type: inline-size;
}

.card-soon {
  position: absolute;
  top: 4.5%;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.5vw, 0.95rem); /* fallback for old browsers */
  font-size: 4.4cqw;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  padding-left: 0.42em; /* recenters letter-spaced text */
  color: #c8241f;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.character-card .role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Feature rows (books, characters, authors)
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: var(--space-5);
}
.feature + .feature { border-top: 1px solid rgba(221, 214, 199, 0.08); }

.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-media { order: 2; }

@media (max-width: 820px) {
  .feature,
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { width: 100%; max-width: 24rem; margin-inline: auto; }
}

.feature-media img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.feature-media.cover {
  position: relative; /* anchors .card-soon overlays */
}

.feature-media.cover img {
  border: 1px solid rgba(221, 214, 199, 0.1);
}

.series-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
  display: block;
}

.badge-soon {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e8695e;
  border: 1px solid rgba(197, 53, 42, 0.6);
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
  margin-bottom: var(--space-2);
}

.hook {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--bone);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}

.link-list a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(199, 154, 75, 0.4);
  padding-bottom: 2px;
}

/* Placeholder cover for unreleased books */
.cover-placeholder {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(221, 214, 199, 0.18);
  border-radius: 4px;
  background:
    radial-gradient(24rem 18rem at 50% 0%, rgba(38, 52, 84, 0.5), transparent 70%),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cover-placeholder .title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone);
  line-height: 1.2;
}

.cover-placeholder .note {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* "Start here if you love" callout */
.start-here {
  background: rgba(199, 154, 75, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 1.1rem 1.4rem;
  margin: var(--space-3) 0;
  font-size: 1rem;
}
.start-here strong {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   World section
   -------------------------------------------------------------------------- */

.world {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}
.world p { text-align: left; }
.world p.lede {
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--bone);
}

/* Homepage intro: tighter leading between the lede and the "Pick a character" line */
.intro p {
  line-height: 1.3;
}
.intro p.lede {
  margin-bottom: 0.15rem;
}
.intro p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Author extras
   -------------------------------------------------------------------------- */

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
@media (max-width: 600px) { .photo-pair { grid-template-columns: 1fr; } }

.photo-pair figure { margin: 0; }
.photo-pair img {
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.photo-pair figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

.portrait-frame {
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}
.portrait-frame img { width: 100%; }

/* --------------------------------------------------------------------------
   Excerpt (first-chapter reading pages)
   -------------------------------------------------------------------------- */

.excerpt-body {
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  font-size: 1.125rem;
  line-height: 1.85;
}

.chapter-heading {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: 0.28em;
  margin-bottom: var(--space-4);
}

/* Optional chapter subtitle, shown directly under the chapter heading */
.chapter-subtitle {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin: calc(-1 * var(--space-4) + 0.5rem) 0 var(--space-4);
}

.excerpt-body p {
  margin: 0 0 1.15rem;
}

.excerpt-body p.first::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: 0.85;
  float: left;
  padding-right: 0.12em;
  color: var(--gold);
}

.scene-break {
  text-align: center;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 1em;
  padding-left: 1em; /* recenters the letter-spaced glyph */
  margin: var(--space-4) 0;
  opacity: 0.7;
}

.excerpt-cta {
  max-width: 38rem;
  margin: var(--space-5) auto 0;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.excerpt-cta .rule { margin-bottom: var(--space-4); }
.excerpt-cta p { color: var(--muted); }
.excerpt-note { margin-top: var(--space-3); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  background:
    radial-gradient(70rem 26rem at 50% 120%, rgba(53, 33, 24, 0.55), transparent 70%),
    var(--ink-2);
  border-top: 1px solid rgba(221, 214, 199, 0.08);
  padding-block: var(--space-6);
  text-align: center;
}

.newsletter-inner { max-width: 42rem; margin-inline: auto; }
.newsletter p { color: var(--muted); }
.newsletter p.pitch { color: var(--text); }

.newsletter-form {
  display: flex;
  gap: var(--space-1);
  max-width: 30rem;
  margin: var(--space-3) auto 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(221, 214, 199, 0.06);
  border: 1px solid rgba(221, 214, 199, 0.25);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
}

.newsletter-note {
  font-size: 0.85rem;
  margin-top: var(--space-2);
  color: var(--muted);
}

.newsletter-success {
  display: none;
  margin-top: var(--space-3);
  color: var(--gold-bright);
  font-style: italic;
  font-size: 1.05rem;
}

@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(221, 214, 199, 0.08);
  padding-block: var(--space-4);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-inner img { width: 150px; opacity: 0.85; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-copy {
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll (progressively enhanced)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* No-JS and reduced motion: content always visible, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .character-card img { transition: none; }
  * { animation: none !important; }
}
