:root {
  --navy: #15233e;
  --navy-deep: #0f1a30;
  --gold: #a8884c;
  --gold-soft: #c6a35b;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --ink: #15120e;
  --muted: #6f675d;
  --line: rgba(168, 136, 76, 0.3);
  --shadow: 0 24px 70px rgba(21, 35, 62, 0.1);
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.62), rgba(244, 239, 228, 0.92)),
    var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(168, 136, 76, 0.2);
  background: rgba(244, 239, 228, 0.95);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-link img {
  width: 174px;
  display: block;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.45rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: rgba(21, 35, 62, 0.78);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fffdf8;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.button.dark {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--navy);
}

.button.full {
  width: 100%;
}

.hero {
  padding: 74px 0 76px;
}

.mirror-hero {
  padding-bottom: 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: 60px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 800px;
  font-family: var(--sans);
  font-size: 4.35rem;
  font-weight: 600;
}

h2 {
  font-family: var(--sans);
  font-size: 3.1rem;
  font-weight: 600;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}

.lead {
  max-width: 780px;
  margin: 26px 0 0;
  color: #494138;
  font-size: 1.24rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.event-strip span,
.event-strip small {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-strip strong {
  display: block;
  margin: 8px 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.1rem;
}

.book-optin-form {
  margin-top: 28px;
  padding: 24px;
}

.mirror-night-form {
  padding: 24px;
}

.mirror-video-layout {
  align-items: center;
}

.mirror-video-shell {
  overflow: hidden;
  border: 1px solid rgba(168, 136, 76, 0.28);
  border-top: 6px solid var(--gold);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.mirror-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  object-fit: contain;
}

.mirror-video:focus-visible {
  outline: 3px solid rgba(168, 136, 76, 0.72);
  outline-offset: 4px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  font-family: var(--sans);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  border: 1px solid rgba(21, 35, 62, 0.2);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

.field input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(168, 136, 76, 0.18);
}

.segment-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.segment-field legend {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
}

.segment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.segment-options label {
  cursor: pointer;
}

.segment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-options span {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid rgba(21, 35, 62, 0.2);
  background: #fff;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.segment-options input:checked + span {
  border-color: var(--gold);
  background: rgba(168, 136, 76, 0.12);
  box-shadow: inset 0 0 0 2px rgba(168, 136, 76, 0.32);
}

.segment-options input:focus-visible + span {
  outline: 3px solid rgba(168, 136, 76, 0.24);
  outline-offset: 3px;
}

.button.full {
  width: 100%;
  justify-content: center;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-note {
  margin: 10px 0 0;
  color: #665d51;
  font-size: 0.92rem;
}

.success-note {
  display: none;
  margin-top: 18px;
  border: 1px solid rgba(168, 136, 76, 0.26);
  background: rgba(244, 239, 228, 0.72);
  padding: 16px;
}

.success-note.visible {
  display: block;
}

.success-note.error {
  border-color: rgba(133, 36, 36, 0.35);
  background: rgba(255, 238, 238, 0.9);
}

.success-note p {
  margin: 0;
}

.hero-media {
  position: relative;
}

.book-frame,
.portrait-frame,
.navy-panel,
.quote-panel,
.form-panel,
.embed-panel {
  border-top: 6px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.book-frame {
  padding: 24px;
}

.book-frame img {
  display: block;
  width: 100%;
}

.book-tour {
  --book-width: 330px;
  --book-height: 495px;
  --book-depth: 60px;
  overflow: hidden;
  padding: 28px 18px 22px;
  background: linear-gradient(145deg, #faf5eb, #eee3d0);
}

.book-stage {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  height: 535px;
  margin: 0 auto;
  place-items: center;
  perspective: 1200px;
  perspective-origin: 50% 45%;
  outline: 0;
}

.book-stage::after {
  position: absolute;
  z-index: 0;
  bottom: 3%;
  left: 50%;
  width: 72%;
  height: 8%;
  border-radius: 50%;
  background: rgba(34, 25, 17, 0.2);
  content: "";
  filter: blur(16px);
  transform: translateX(-50%);
}

.book-stage:focus-visible {
  outline: 3px solid rgba(168, 136, 76, 0.7);
  outline-offset: 8px;
}

.book-object {
  position: relative;
  z-index: 1;
  width: var(--book-width);
  height: var(--book-height);
  transform: rotateX(2deg) rotateY(-18deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.book-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background: #162a4a;
  box-shadow: 0 18px 32px rgba(16, 26, 45, 0.16);
}

.book-face img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

.book-face-front {
  transform: translateZ(calc(var(--book-depth) / 2));
  border-radius: 2px 5px 5px 2px;
  box-shadow: -2px 18px 32px rgba(16, 26, 45, 0.2), 2px 0 0 rgba(197, 157, 78, 0.3);
}

.book-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--book-depth) / 2));
  border-radius: 5px 2px 2px 5px;
}

.book-face-back picture {
  display: block;
  width: 100%;
  height: 100%;
}

.book-face-back img {
  transform: none;
}

.book-face-spine,
.book-face-pages,
.book-face-top,
.book-face-bottom {
  overflow: hidden;
  backface-visibility: visible;
}

.book-face-spine,
.book-face-pages {
  inset: 0 auto 0 50%;
  width: var(--book-depth);
  height: 100%;
  box-shadow: none;
}

.book-face-spine {
  background-color: #162a4a;
  background-image: url("assets/Exit-Queen-Book-Cover-spine-v1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translateX(-50%) rotateY(-90deg) translateZ(calc((var(--book-width) - var(--book-depth)) / 2));
}

.book-face-pages {
  background:
    repeating-linear-gradient(90deg, rgba(116, 87, 48, 0.12) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #e5d4b8, #fffaf0 30%, #d8c29f);
  transform: translateX(-50%) rotateY(90deg) translateZ(calc((var(--book-width) - var(--book-depth)) / 2));
}

.book-face-top,
.book-face-bottom {
  display: none;
  inset: 50% auto auto 0;
  width: 100%;
  height: var(--book-depth);
  box-shadow: none;
  background:
    repeating-linear-gradient(0deg, rgba(116, 87, 48, 0.1) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #dcc8a7, #fffaf0 12% 88%, #d4bd98);
}

.book-face-top {
  transform: translateY(-50%) rotateX(90deg) translateZ(calc((var(--book-height) - var(--book-depth)) / 2));
}

.book-face-bottom {
  transform: translateY(-50%) rotateX(-90deg) translateZ(calc((var(--book-height) - var(--book-depth)) / 2));
}

.book-tour-controls {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 24px;
  text-align: center;
}

.book-view-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.book-tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--gold);
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 11px 18px;
  text-transform: uppercase;
}

.book-tour-button:hover,
.book-tour-button:focus-visible {
  background: #263c60;
  outline: 3px solid rgba(168, 136, 76, 0.24);
  outline-offset: 3px;
}

.book-tour-button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--navy);
}

.book-tour-status {
  max-width: 34rem;
  margin: 0;
  color: #665d51;
  font-size: 0.88rem;
  line-height: 1.45;
}

.diamond-row {
  display: flex;
  gap: 12px;
  margin: 28px 0 0;
}

.diamond-row span {
  width: 14px;
  height: 14px;
  display: block;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: rgba(168, 136, 76, 0.12);
}

.section {
  padding: 76px 0;
}

.section.split {
  background: var(--paper);
  border-block: 1px solid rgba(168, 136, 76, 0.22);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 58px;
  align-items: start;
}

.copy-block p {
  margin: 22px 0 0;
  color: #4b443c;
}

.copy-block p:first-child {
  margin-top: 0;
}

.navy-panel {
  padding: 38px;
  background: var(--navy);
  color: rgba(244, 239, 228, 0.88);
}

.navy-panel h2,
.navy-panel h3 {
  color: var(--cream);
}

.navy-panel .eyebrow,
.navy-panel strong {
  color: var(--gold-soft);
}

.shift-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.shift-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.shift-number {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.shift-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.score-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.band {
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.band b {
  display: block;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.band span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.band-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.band-link em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.band-link:hover,
.band-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: #fffdf8;
  box-shadow: 0 14px 30px rgba(14, 32, 51, 0.12);
}

.band-link:focus-visible {
  outline: 3px solid rgba(195, 151, 63, 0.45);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .band-link {
    transition: none;
  }

  .band-link:hover,
  .band-link:focus-visible {
    transform: none;
  }
}

.portrait-frame {
  overflow: hidden;
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quote-panel {
  padding: 40px;
}

.quote-panel blockquote {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1.5;
}

.quote-panel cite {
  display: block;
  margin-top: 20px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.story-rail {
  display: grid;
  gap: 22px;
}

.story-point {
  padding-left: 28px;
  border-left: 3px solid var(--gold);
}

.story-point p {
  margin: 8px 0 0;
  color: #4b443c;
}

.page-hero {
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 880px;
}

.book-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.form-panel {
  padding: 34px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 35, 62, 0.22);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note,
.microcopy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.success-note {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 136, 76, 0.36);
  background: rgba(168, 136, 76, 0.1);
  color: var(--navy);
}

.success-note.visible {
  display: block;
}

.embed-panel {
  overflow: hidden;
}

.embed-panel iframe {
  width: 100%;
  min-height: 860px;
  display: block;
  border: 0;
  background: #fff;
}

.wall-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 44px;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}

.wall-placeholder p {
  max-width: 560px;
  margin: 0;
}

.contact-methods {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-method {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-method p {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 52px 0;
  background: var(--navy);
  color: rgba(244, 239, 228, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
}

.footer-logo {
  width: 178px;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-note {
  margin: 12px 0 0;
}

@media (max-width: 960px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-grid,
  .two-column,
  .book-showcase {
    grid-template-columns: 1fr;
  }

  .score-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-wrap,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 640px);
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav .button {
    margin-top: 12px;
  }

  .hero,
  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 54px 0 36px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .shift-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .score-band,
  .event-strip,
  .field-grid,
  .segment-options,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .book-frame,
  .navy-panel,
  .quote-panel,
  .form-panel {
    padding: 24px;
  }

  .book-tour {
    --book-width: 250px;
    --book-height: 375px;
    --book-depth: 44px;
    padding: 24px 12px 20px;
  }

  .book-stage {
    height: 410px;
  }

  .embed-panel iframe {
    min-height: 980px;
  }
}
