:root {
  color-scheme: light;
  --ink: #141217;
  --ink-soft: #312c3a;
  --muted: #686273;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(20, 18, 23, 0.13);
  --night: #101326;
  --deep-blue: #063b7e;
  --aqua: #19a7a2;
  --green: #0e6b55;
  --gold: #e5b729;
  --amber: #f08b24;
  --crimson: #b9214b;
  --magenta: #9b236d;
  --lavender: #ece6ff;
  --sky: #ddf7ff;
  --shadow: 0 24px 80px rgba(16, 19, 38, 0.22);
  --radius: 8px;
  --max: 1220px;
  --serif: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff8e7 0%, #fffdf7 34%, #edf9ff 68%, #fff6ea 100%);
  font-family: var(--sans);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7.5vw, 7.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: rgba(13, 13, 29, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 18, 23, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a:focus-visible,
.site-header.scrolled .site-nav a[aria-current="page"],
.site-header.nav-open .site-nav a:hover,
.site-header.nav-open .site-nav a:focus-visible,
.site-header.nav-open .site-nav a[aria-current="page"] {
  background: rgba(14, 107, 85, 0.11);
}

.nav-cta {
  color: var(--ink);
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle span:first-child {
  transform: translateY(-5px);
}

.nav-toggle span:last-child {
  transform: translateY(5px);
}

.hero,
.page-hero {
  position: relative;
  color: var(--white);
  background: var(--night);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(100deg, rgba(12, 11, 30, 0.97), rgba(9, 63, 118, 0.88) 48%, rgba(174, 36, 89, 0.85)),
    url("assets/gallery/law-balance-showcase.png") center / cover;
}

.home-hero::after,
.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, rgba(16, 19, 38, 0), rgba(16, 19, 38, 0.58));
  pointer-events: none;
}

.page-hero {
  min-height: 460px;
  padding: clamp(74px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.books-hero {
  background:
    linear-gradient(100deg, rgba(10, 13, 29, 0.97), rgba(13, 96, 112, 0.86), rgba(210, 111, 27, 0.74)),
    url("assets/gallery/law-balance-stack.png") center / cover;
}

.articles-hero {
  background:
    linear-gradient(100deg, rgba(16, 19, 38, 0.98), rgba(155, 35, 109, 0.82), rgba(19, 167, 162, 0.72)),
    url("assets/quotes/sufficiency-quote-2.jpg") center / cover;
}

.podcast-hero {
  background:
    linear-gradient(100deg, rgba(12, 11, 30, 0.98), rgba(6, 59, 126, 0.82), rgba(229, 183, 41, 0.52)),
    url("assets/gallery/sufficiency-book-ad.jpg") center / cover;
}

.gallery-hero {
  background:
    linear-gradient(100deg, rgba(10, 13, 29, 0.98), rgba(6, 59, 126, 0.75), rgba(185, 33, 75, 0.72)),
    url("assets/gallery/age-cover-spread.jpg") center / cover;
}

.about-hero {
  background:
    linear-gradient(100deg, rgba(10, 13, 29, 0.98), rgba(14, 107, 85, 0.82), rgba(155, 35, 109, 0.68)),
    url("assets/gallery/positive-negative-cover-art.png") center / cover;
}

.editor-hero {
  background:
    linear-gradient(100deg, rgba(10, 13, 29, 0.98), rgba(14, 107, 85, 0.86), rgba(229, 183, 41, 0.5)),
    url("assets/gallery/law-balance-cover-spread.jpg") center / cover;
}

.account-hero {
  background:
    linear-gradient(100deg, rgba(10, 13, 29, 0.98), rgba(6, 59, 126, 0.82), rgba(155, 35, 109, 0.72)),
    url("assets/gallery/positive-negative-front-cover.jpg") center / cover;
}

.hero-copy,
.hero-visual,
.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  width: min(880px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-lede,
.page-hero p {
  max-width: 710px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.hero-actions,
.section-action,
.book-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, #fffdf4, #ffe28c);
  box-shadow: 0 16px 36px rgba(229, 183, 41, 0.22);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.button.dark {
  color: var(--white);
  background: var(--night);
}

.button.text {
  color: var(--green);
  border-color: rgba(14, 107, 85, 0.22);
  background: transparent;
}

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

.hero-book,
.feature-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-book img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quote-carousel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}

.quote-carousel-hero {
  min-height: 430px;
}

.quote-carousel-stage {
  min-height: 620px;
}

.quote-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  transition: opacity 700ms ease;
}

.quote-slide.is-active {
  opacity: 1;
}

.quote-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-carousel-hero .quote-slide img,
.quote-carousel-stage .quote-slide img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.94), rgba(6, 59, 126, 0.92)),
    var(--night);
}

.quote-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 3px;
  padding: 54px 18px 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 19, 38, 0), rgba(16, 19, 38, 0.92));
}

.quote-caption strong {
  font-size: 0.98rem;
}

.quote-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
}

.quote-dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  max-width: calc(100% - 32px);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.quote-dot.is-active {
  background: var(--gold);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border-block: 1px solid var(--line);
}

.signal-strip div {
  display: grid;
  gap: 4px;
  min-height: 120px;
  align-content: center;
  padding: 24px clamp(20px, 5vw, 58px);
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  color: var(--crimson);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}

.signal-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.58fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.single {
  display: block;
  max-width: 820px;
}

.feature-band {
  color: var(--ink);
}

.gold-band {
  background:
    linear-gradient(135deg, rgba(255, 246, 207, 0.96), rgba(221, 247, 255, 0.92) 46%, rgba(255, 231, 239, 0.96));
}

.crimson-band {
  color: var(--white);
  background:
    linear-gradient(135deg, #220f21 0%, #a51f4f 48%, #073f62 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.feature-panel {
  display: grid;
  min-height: 0;
  aspect-ratio: 4 / 5;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(229, 183, 41, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(221, 247, 255, 0.42));
}

.feature-panel img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.feature-panel.tall,
.feature-panel.wide {
  grid-row: auto;
  grid-column: auto;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.88fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.split-copy {
  max-width: 620px;
}

.split-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.book-grid,
.article-grid,
.video-grid,
.gallery-grid,
.editor-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-grid.compact,
.video-grid.compact,
.article-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card,
.article-card,
.video-card,
.gallery-card,
.editor-card,
.auth-panel,
.checkout-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(16, 19, 38, 0.1);
}

.book-card {
  display: grid;
  grid-template-rows: clamp(320px, 34vw, 430px) 1fr;
  min-height: 100%;
  min-width: 0;
}

.book-card * {
  min-width: 0;
}

.book-card.is-hidden {
  display: none;
}

.book-media {
  display: grid;
  min-height: clamp(310px, 34vw, 430px);
  height: clamp(310px, 34vw, 430px);
  place-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, var(--sky), #fff2bc);
  overflow: hidden;
}

.book-card:nth-child(3n + 2) .book-media {
  background: linear-gradient(135deg, #ffe9ef, #eff2ff);
}

.book-card:nth-child(3n) .book-media {
  background: linear-gradient(135deg, #e6fff8, #fff2d2);
}

.book-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 320px);
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(20, 18, 23, 0.18);
}

.book-card .book-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  border-top: 1px solid var(--line);
}

.book-card h3 {
  max-width: 100%;
  font-family: var(--sans);
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
  line-height: 1.16;
}

.book-content,
.article-card,
.editor-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
}

.book-meta,
.article-meta,
.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--green);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.badge.preorder,
.badge.featured {
  background: var(--crimson);
}

.book-summary,
.article-summary,
.video-summary {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.price-line {
  display: grid;
  gap: 4px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.price-line strong {
  color: var(--deep-blue);
  font-size: 1.55rem;
  line-height: 1.1;
}

.price-line span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.book-actions .button {
  flex: 1 1 160px;
  justify-content: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: var(--max);
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--white);
  background: var(--night);
  outline: none;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.checkout-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.97), rgba(6, 59, 126, 0.94)),
    var(--night);
}

.checkout-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.checkout-panel select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.checkout-price {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 1;
}

.checkout-note {
  color: rgba(255, 255, 255, 0.72);
}

.article-card {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.94)),
    var(--white);
}

.article-card h3,
.editor-card h3 {
  color: var(--ink);
}

.article-card .button,
.editor-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.article-featured-quote {
  margin: 4px 0 0;
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 16px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.42;
}

.article-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 183, 41, 0.16), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(25, 167, 162, 0.16), transparent 28%),
    linear-gradient(180deg, #fffdf8, #f8fbff);
}

.article-detail {
  display: grid;
  gap: 24px;
  max-width: 920px;
  margin-inline: auto;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.article-detail h1 {
  font-size: clamp(2.8rem, 6vw, 6.6rem);
}

.article-detail-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.article-content {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(16, 19, 38, 0.08);
}

.article-content p {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.78;
}

.article-pullquote {
  margin: 10px 0;
  border-block: 1px solid rgba(229, 183, 41, 0.48);
  padding: clamp(22px, 4vw, 34px) 0;
  color: var(--deep-blue);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.18;
}

.comment-panel {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(14, 107, 85, 0.18);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(221, 247, 255, 0.84), rgba(255, 250, 240, 0.96)),
    var(--white);
  box-shadow: 0 18px 52px rgba(16, 19, 38, 0.08);
}

.comment-heading {
  display: grid;
  gap: 8px;
}

.comment-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.comment-form,
.auth-panel form {
  display: grid;
  gap: 14px;
}

.comment-form label,
.auth-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 850;
}

.comment-form input,
.comment-form textarea,
.auth-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.comment-item time,
.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.account-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 183, 41, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf8, #f3fbff);
}

.backend-notice {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(229, 183, 41, 0.34);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 12% 10%, rgba(229, 183, 41, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(221, 247, 255, 0.72));
  box-shadow: 0 22px 70px rgba(16, 19, 38, 0.1);
}

.backend-notice h2 {
  max-width: 680px;
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.backend-notice p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.auth-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
}

.auth-panel.accent {
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.98), rgba(255, 231, 239, 0.96)),
    var(--white);
}

.auth-panel.owner {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.98), rgba(6, 59, 126, 0.94)),
    var(--night);
}

.auth-panel.owner h3,
.auth-panel.owner label,
.auth-panel.owner .form-note {
  color: var(--white);
}

.auth-panel h3 {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
}

.account-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 24px auto 0;
  border: 1px solid rgba(14, 107, 85, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.contact-band,
.slogan-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(229, 183, 41, 0.36);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.97), rgba(6, 59, 126, 0.93) 50%, rgba(155, 35, 109, 0.88)),
    var(--night);
  box-shadow: var(--shadow);
}

.slogan-band {
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 10% 10%, rgba(229, 183, 41, 0.28), transparent 28%),
    linear-gradient(135deg, #101326, #0e6b55 48%, #9b236d);
}

.slogan-inner {
  max-width: var(--max);
  margin-inline: auto;
  border-radius: var(--radius);
}

.slogan-inner strong,
.contact-band h2,
.contact-band h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.06;
}

.slogan-inner p:not(.eyebrow),
.contact-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-band.compact {
  grid-template-columns: 1fr;
  box-shadow: 0 18px 52px rgba(16, 19, 38, 0.12);
}

.contact-band.compact .button {
  justify-self: start;
}

.contact-band .button {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.video-card {
  display: grid;
  background: var(--white);
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: var(--night);
}

.video-frame::before {
  display: block;
  content: "";
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-content {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.drive-library {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 54px);
}

.drive-library-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.drive-library-frame iframe {
  display: block;
  width: 100%;
  min-height: min(70svh, 680px);
  border: 0;
  background: var(--white);
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  background: var(--night);
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: auto;
  flex: 1;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-card.quote img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--night);
}

.gallery-card.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card.feature img {
  aspect-ratio: 16 / 11;
}

.gallery-card figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 16px 16px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 19, 38, 0.92), rgba(16, 19, 38, 1));
}

.gallery-card strong {
  line-height: 1.15;
}

.gallery-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 800;
}

.rich-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.98), rgba(14, 107, 85, 0.9), rgba(229, 183, 41, 0.68));
}

.rich-band .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.media-plan,
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
}

.about-panel {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 19, 38, 0.96), rgba(6, 59, 126, 0.9)),
    var(--night);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-panel-copy {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.about-panel-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.about-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 950;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--night);
}

.site-footer p {
  max-width: 520px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.empty-state,
.error-state {
  max-width: var(--max);
  margin-inline: auto;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.backend-disabled {
  opacity: 0.58;
}

.saved-list {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.saved-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.saved-item strong {
  line-height: 1.2;
}

.saved-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .hero,
  .split-showcase,
  .checkout-section,
  .media-plan,
  .about-panel,
  .slogan-inner,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .book-grid,
  .book-grid.compact,
  .article-grid,
  .article-grid.compact,
  .video-grid,
  .video-grid.compact,
  .editor-grid,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: 8px;
  }

  .hero,
  .page-hero,
  .section,
  .split-showcase {
    padding-inline: 18px;
  }

  .hero {
    min-height: auto;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .book-grid,
  .book-grid.compact,
  .article-grid,
  .article-grid.compact,
  .video-grid,
  .video-grid.compact,
  .gallery-grid,
  .editor-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.feature,
  .feature-panel.tall,
  .feature-panel.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .quote-carousel,
  .quote-carousel-hero,
  .quote-carousel-stage {
    min-height: 520px;
  }

  .book-media {
    min-height: 320px;
    height: 320px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
