:root {
  --bg: #07111f;
  --paper: rgba(10, 24, 43, 0.78);
  --ink: #f5fbfe;
  --muted: #D6E2EE;
  --line: rgba(163, 201, 255, 0.16);
  --accent: #8fd3ff;
  --accent-deep: #4c8fcb;
  --gold: #FFD84D;
  --shadow: 0 24px 70px rgba(2, 9, 20, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(76, 143, 203, 0.35), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(143, 211, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #081120 0%, #0b1c33 52%, #0f2745 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 211, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.floating-buy-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  text-decoration: none;
  color: #03111f;
  background: linear-gradient(135deg, #f4fbff 0%, var(--accent) 100%);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 44px rgba(4, 16, 33, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-buy-button:hover,
.floating-buy-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 48px rgba(4, 16, 33, 0.48);
}

.utility-banner {
  position: absolute;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  z-index: 900;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem max(calc((100vw - 1120px) / 2), 1rem);
  background: #030b15;
  border-bottom: 1px solid rgba(163, 201, 255, 0.14);
}

.homepage-utility-banner {
  visibility: hidden;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.homepage-buy-button {
  position: static;
}

.homepage-scrolled .homepage-utility-banner {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.logo-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  height: 3rem;
  border: 1px dashed rgba(163, 201, 255, 0.36);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.site-header,
main,
.site-footer,
.privacy-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 5.5rem 0 2rem;
  display: grid;
  gap: 1.5rem;
}

.homepage-header {
  width: 100%;
  padding: 0 0 2rem;
  gap: 0;
}

.homepage-header .main-nav,
.homepage-header .search-panel {
  width: min(1120px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.newsletter-bar {
  width: min(620px, 100%);
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(163, 201, 255, 0.24);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.newsletter-bar label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.newsletter-bar button {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(250, 253, 254, 0.82);
}

.newsletter-bar button:hover,
.newsletter-bar button:focus-visible {
  background: rgba(250, 253, 254, 0.08);
  border-color: var(--ink);
}

.homepage-header .main-nav {
  width: 100%;
  margin: 0;
  padding:
    1.1rem
    max(calc((100vw - 1120px) / 2), 1rem);
  background: #030b15;
  border-top: 1px solid rgba(163, 201, 255, 0.12);
  border-bottom: 1px solid rgba(163, 201, 255, 0.12);
}

.site-header--compact {
  padding-bottom: 1.25rem;
}

.brand-lockup h1,
.hero-copy h2,
.section-heading h2,
.privacy-page h1,
.hero-card h3,
.site-footer h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 200;
}

.brand-lockup h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
}

.brand-lockup--compact h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}

.homepage-banner {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 460px;
  padding:
    clamp(5.5rem, 10vw, 8rem)
    max(calc((100vw - 1120px) / 2), 1rem)
    clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
  border-bottom: 0;
  background: #03070c;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.homepage-banner > * {
  max-width: min(640px, 48vw);
}

.homepage-banner::before,
.homepage-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.homepage-banner::before {
  z-index: -2;
  inset: -12% 0;
  background-image: url("homepage-background.jpg");
  background-position: center;
  background-size: cover;
  filter: brightness(1.52) contrast(1.54) saturate (1.58);
  transform: translate3d(0, var(--homepage-parallax-y, 0px), 0) scale(1.04);
  will-change: transform;
}

.homepage-banner::after {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 12, 0.82) 0%,
      rgba(3, 7, 12, 0.58) 42%,
      rgba(3, 7, 12, 0.14) 66%,
      rgba(3, 7, 12, 0.03) 100%
    );
}

.homepage-quote {
  max-width: 720px;
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--gold);
}

.homepage-quote p {
  margin: 0 0 0.4rem;
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.15;
}

.homepage-quote cite {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.card-label,
.event-date {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.tagline,
.section-intro,
.book-copy,
.site-footer p,
.privacy-page p {
  color: var(--ink);
  line-height: 1.7;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.main-nav a,
.footer-meta a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.main-nav a.active {
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-toggle {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(245, 251, 255, 0.08);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1;
}

.nav-dropdown-toggle::before {
  content: "▾";
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 100;
  display: grid;
  min-width: 250px;
  padding: 0.5rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem);
  background: #030b15;
  border: 1px solid rgba(163, 201, 255, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown-menu a {
  padding: 0.75rem;
  border-radius: 10px;
  color: var(--muted);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(245, 251, 255, 0.08);
  color: var(--ink);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.search-panel,
.hero-card,
.content-section,
.site-footer,
.privacy-page,
.info-card,
.note-card {
  background: var(--paper);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.search-panel,
.content-section,
.privacy-page {
  border-radius: 28px;
}

.site-footer {
  border-radius: 0px;
}


.search-panel {
  padding: 1.2rem;
}

.search-label,
.signup-form label,
.download-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.search-input-row,
.signup-row,
.support-row,
.button-row,
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

input,
button {
  font: inherit;
}

input[type="search"],
input[type="email"],
input[type="number"],
select {
  flex: 1 1 240px;
  min-width: 0;
  border: 1px solid rgba(163, 201, 255, 0.24);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(245, 251, 255, 0.08);
  color: var(--ink);
}

input[type="search"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder {
  color: rgba(183, 201, 222, 0.82);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) 52%,
    calc(100% - 0.9rem) 52%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

select option {
  background: #FAFDFE;
  color: #07111f;
}

button,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0.95rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

button,
.primary-link {
  background: linear-gradient(135deg, #f5fbff 0%, #bbdefe 100%);
  color: #07111f;
}

.secondary-link {
  color: var(--ink);
  background: rgba(245, 251, 255, 0.08);
  border: 1px solid rgba(163, 201, 255, 0.18);
}

main {
  padding-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

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

.hero-copy {
  padding: 1rem 0.25rem 1rem 0;
}

.book-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: center;
}

.book-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 320px;
  border: 1px dashed rgba(163, 201, 255, 0.42);
  border-radius: 24px;
  background: rgba(245, 251, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.book-image-frame {
  overflow: hidden;
  border-style: solid;
  box-shadow: var(--shadow);
}

.book-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-author
.book-synopsis-placeholder {
  padding: 1rem 0;
}

.press-author
.book-synopsis-placeholder p:last-child {
  color: var(--ink);
  line-height: 1.7;
}

.featured-book-quote {
  width: 100%;
  margin: 0 0 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.featured-book-quote p {
  max-width: 850px;
  margin: 0 auto 0.75rem;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.5;
}

.featured-book-quote cite {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
}

.meet-author {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.meet-author-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.author-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  border: 1px dashed rgba(163, 201, 255, 0.42);
  border-radius: 24px;
  background: rgba(245, 251, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.about-biography {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: start;
}

.long-biography-placeholder {
  color: var(--muted);
  line-height: 1.8;
}

.long-biography-placeholder p:first-child {
  margin-top: 1.5rem;
}

.educational-philosophy {
  position: relative;
  margin: 0 0 1.5rem;
  padding: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 55, 91, 0.98), rgba(7, 17, 31, 0.98));
  border: 1px solid rgba(143, 211, 255, 0.34);
  border-top: 6px solid var(--accent);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(2, 9, 20, 0.58);
  text-align: center;
}

.educational-philosophy p:last-child {
  max-width: 950px;
  margin: 2rem auto 0;
  font-family: "Raleway", serif;
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 200;
  line-height: 1.4;
}

.my-story-placeholder {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.8;
}

.my-story-quote {
  margin: 1rem 0 2rem;
}

.my-story-placeholder p:last-child {
  margin-bottom: 0;
}

.long-synopsis-placeholder {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.85;
}

.long-synopsis-placeholder p:first-child {
  margin-top: 1.5rem;
}

.long-synopsis-placeholder p:last-child {
  margin-bottom: 0;
}

.book-image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.press-image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.book-strip-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  min-height: 340px;
  border: 1px dashed rgba(163, 201, 255, 0.42);
  border-radius: 24px;
  background: rgba(245, 251, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.contents-placeholder ol {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style-position: inside;
}

.contents-placeholder li {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(163, 201, 255, 0.14);
}

.contents-placeholder li:first-child {
  border-top: 1px solid rgba(163, 201, 255, 0.14);
}

.contents-placeholder span {
  color: var(--muted);
  line-height: 1.6;
}

.chapter-list {
  margin-top: 0.75rem;
  padding: 0;
  border-left: 2px solid rgba(143, 211, 255, 0.28);
}

.contents-placeholder .chapter-list li {
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr);
  padding: 0.75rem 0 0.75rem 1rem;
  border-top: 1px solid rgba(163, 201, 255, 0.1);
  border-bottom: 0;
}

.contents-placeholder .chapter-list li:first-child {
  border-top: 1px solid rgba(163, 201, 255, 0.1);
}

.chapter-list strong {
  color: var(--accent);
}

.audience-placeholder {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.7;
}

.audience-placeholder > p {
  margin-top: 1.5rem;
}

.metaphor-origin-placeholder {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.85;
}

.metaphor-origin-placeholder p:first-child {
  margin-top: 1.5rem;
}

.metaphor-origin-placeholder p:last-child {
  margin-bottom: 0;
}

.resource-descriptions-placeholder {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.85;
}

.resource-descriptions-placeholder p:first-child {
  margin-top: 1.5rem;
}

.resource-descriptions-placeholder p:last-child {
  margin-bottom: 0;
}

.coming-soon-banner {
  display: grid;
  place-items: center;
  width: auto;
  min-height: 50px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 49.5vw);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: transparent;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  border-radius: 0;
  box-shadow: 0 28px 80px rgba(2, 9, 20, 0.5);
  color: var(--ink);
  text-align: center;
}

.coming-soon-banner p {
  margin: 0;
  font-family: "Raleway", serif;
  font-size: clamp(1rem, 2vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
}


.hero-copy h2,
.book-synopsis-placeholder h2,
.meet-author-copy h2,
.section-heading h2,
.privacy-page h1,
.site-footer h2 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2rem, 3vw, 2rem);
  line-height: 0.95;  
}


.hero-card,
.info-card,
.note-card {
  border-radius: 24px;
  padding: 1.5rem;
}

.feature-list {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.content-section {
  padding: 1.7rem;
  margin-bottom: 1.5rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.search-results-list {
  display: grid;
  gap: 0.85rem;
}

.search-result-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(245, 251, 255, 0.06);
  border: 1px solid rgba(163, 201, 255, 0.12);
}

.search-result-item a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.card-grid,
.buy-layout,
.downloads-layout {
  display: grid;
  gap: 1rem;
}

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

.buy-layout,
.downloads-layout {
  grid-template-columns: 1.4fr 0.8fr;
}

.accent-panel {
  background:
    linear-gradient(135deg, rgba(13, 33, 58, 0.95), rgba(17, 47, 80, 0.92)),
    var(--paper);
}

.support-row {
  align-items: center;
}

.currency {
  font-size: 1.3rem;
  font-weight: 800;
}

.site-footer {
  padding: 1.7rem;
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(163, 201, 255, 0.12);
}

.homepage-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  background: #050e1a;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.homepage-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold) 0%, #050e1a 100%);
}
.homepage-footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 7vw, 5rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.homepage-footer-newsletter {
  max-width: 650px;
}

.footer-subscribe-button {
  margin-top: 0.75rem;
}

.homepage-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.homepage-footer-links h3 {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.homepage-footer-links a {
  display: block;
  width: fit-content;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.homepage-footer-links a:hover,
.homepage-footer-links a:focus-visible {
  color: var(--accent);
}

.homepage-footer-copyright {
  width: 100%;
  padding: 0.55rem 1rem;
  background: rgba(2, 7, 13, 0.62);
  border-top: 1px solid rgba(163, 201, 255, 0.08);
  text-align: center;
}

.homepage-footer-copyright p {
  margin: 0;
  color: rgba(183, 201, 222, 0.56);
  font-size: 0.75rem;
  line-height: 1.4;
}

.newsletter-modal[hidden],
.newsletter-step[hidden] {
  display: none;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 13, 0.74);
  backdrop-filter: blur(8px);
}

.newsletter-modal__panel {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background:
    linear-gradient(135deg, rgba(13, 33, 58, 0.98), rgba(7, 17, 31, 0.98)),
    var(--paper);
  border: 1px solid rgba(163, 201, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(2, 7, 13, 0.58);
}

.newsletter-modal__panel h2 {
  margin: 0 2rem 0.75rem 0;
  font-family: "Raleway", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.newsletter-modal__panel p {
  color: var(--ink);
  line-height: 1.7;
}

.newsletter-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(245, 251, 255, 0.08);
  border: 1px solid rgba(163, 201, 255, 0.18);
}

.newsletter-age-form,
.newsletter-email-form {
  margin-top: 1.25rem;
}

.birthdate-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(120px, 0.75fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.newsletter-age-form label,
.newsletter-email-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.newsletter-age-form label select,
.newsletter-age-form label input {
  width: 100%;
  margin-top: 0.5rem;
}

.privacy-body {
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.privacy-page {
  padding: 2rem;
  color: var(--ink);
  line-height: 1.85;
}
}

.privacy-page .primary-link {
  margin-top: 0.75rem;
}

.search-hit {
  outline: 3px solid rgba(143, 211, 255, 0.42);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero,
  .book-intro,
  .meet-author,
  .about-biography,
  .card-grid,
  .buy-layout,
  .downloads-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 6rem;
  }

  .homepage-header {
    padding-top: 0;
  }
  .homepage-footer-main {
    grid-template-columns: 1fr;
  }
  
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer,
  .privacy-page {
    width: min(100% - 2rem, 1120px);
  }

  .homepage-header {
    width: 100%;
  }

  .homepage-header .main-nav,
  .homepage-header .search-panel {
    width: calc(100% - 2rem);
  }

  .main-nav {
    width: 100%;
	flex-wrap: nowrap;
    overflow-x: auto;
	overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 1rem;
	scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav a,
  .nav-dropdown {
    flex: 0 0 auto;
	white-space: nowrap;
  }
  
  .homepage-header .main-nav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

 .main-nav--strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .homepage-footer-main {
    width: calc(100% - 2rem);
  }

  .homepage-footer {
    width: 100%;
  }

  .homepage-footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .birthdate-fields {
    grid-template-columns: 1fr;
  }

  .floating-buy-button {
    left: 0.75rem;
    right: 0.75rem;
    text-align: center;
  }

  .utility-banner {
    min-height: 5rem;
    align-items: center;
    padding: 0.75rem;
  }

  .logo-placeholder {
    width: 120px;
  }

  .utility-banner + .site-header {
    padding-top: 6rem;
  }

  .brand-lockup h1 {
    font-size: 3.4rem;
  }

  .homepage-banner {
    min-height: 430px;
    padding: 6rem 1rem 2rem;
  }
  
  .homepage-banner > * {
    max-width: min(100%, 24rem);
  }

  .contents-placeholder li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contents-placeholder .chapter-list li {
    grid-template-columns: 1fr;
  }

  .content-section,
  .site-footer,
  .privacy-page,
  .search-panel {
    border-radius: 22px;
  }
  .homepage-footer {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-banner::before {
    transform: scale(1.04);
    will-change: auto;
  }

  .homepage-utility-banner {
    transition: none;
  }
}