/* =========================================================
   THE TESLA CODEX
   Main Stylesheet

   File location:
   /books/the-tesla-codex/script.css
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
  --midnight: #07111f;
  --deep-navy: #0b1d33;
  --navy: #102944;
  --blue: #1d5b8f;
  --electric-blue: #58b9ff;
  --pale-blue: #d7efff;

  --gold: #c99a45;
  --light-gold: #e8c57a;
  --bronze: #8f6732;

  --parchment: #f4efe4;
  --cream: #fffaf0;
  --white: #ffffff;

  --text: #202a34;
  --muted: #5f6b76;
  --border: rgba(201, 154, 69, 0.3);

  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.18);
  --shadow-large: 0 24px 65px rgba(0, 0, 0, 0.3);

  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 26px;

  --max-width: 1180px;
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

a:hover,
a:focus {
  color: var(--gold);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--deep-navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

p {
  margin-top: 0;
}

section {
  position: relative;
  padding: 88px 24px;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: var(--radius-small);
  background: var(--gold);
  color: var(--midnight);
  font-weight: 700;
}

.skip-link:focus {
  top: 20px;
}

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 4px;
}


/* =========================================================
   TOP ANNOUNCEMENT BAR
   ========================================================= */

.top-bar {
  padding: 9px 20px;
  background: var(--midnight);
  color: var(--pale-blue);
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.top-bar a {
  color: var(--light-gold);
  font-weight: 700;
}

.top-bar a:hover {
  color: var(--white);
}


/* =========================================================
   HEADER AND NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(232, 197, 122, 0.2);
  background: rgba(7, 17, 31, 0.96);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max-width));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 28px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.site-title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title:hover {
  color: var(--light-gold);
}

.site-subtitle {
  color: var(--light-gold);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #eaf4ff;
  font-size: 0.91rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: rgba(88, 185, 255, 0.11);
  color: var(--light-gold);
}

.nav-buy-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--midnight) !important;
}

.nav-buy-button:hover {
  border-color: var(--light-gold);
  background: var(--light-gold) !important;
  color: var(--midnight) !important;
  transform: translateY(-2px);
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  padding: 92px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 72% 34%,
      rgba(29, 91, 143, 0.38),
      transparent 34%
    ),
    linear-gradient(
      120deg,
      rgba(7, 17, 31, 0.99) 0%,
      rgba(11, 29, 51, 0.97) 52%,
      rgba(16, 41, 68, 0.94) 100%
    );
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(88, 185, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 185, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  z-index: -1;
  width: 640px;
  height: 640px;
  border: 2px solid rgba(232, 197, 122, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(88, 185, 255, 0.03),
    0 0 0 150px rgba(232, 197, 122, 0.02);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 580px;
  margin: 0 auto;
  gap: 70px;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: var(--light-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 48px;
  height: 2px;
  margin-right: 14px;
  background: var(--electric-blue);
  content: "";
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
  color: var(--light-gold);
}

.hero-tagline {
  max-width: 670px;
  margin-bottom: 24px;
  color: var(--pale-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  font-style: italic;
  line-height: 1.5;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 32px;
  color: #d9e5ef;
  font-size: 1.06rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 12px;
}

.hero-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(232, 197, 122, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #edf7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-book {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-book::before {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(88, 185, 255, 0.24),
    rgba(201, 154, 69, 0.08) 46%,
    transparent 72%
  );
  content: "";
  filter: blur(2px);
}

.hero-book img {
  width: min(100%, 430px);
  border-radius: 5px 14px 14px 5px;
  box-shadow:
    -15px 20px 25px rgba(0, 0, 0, 0.34),
    0 34px 80px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(88, 185, 255, 0.12);
  transform: perspective(1100px) rotateY(-7deg) rotateX(1deg);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.hero-book img:hover {
  box-shadow:
    -12px 18px 24px rgba(0, 0, 0, 0.28),
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(88, 185, 255, 0.2);
  transform: perspective(1100px) rotateY(-2deg) translateY(-8px);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.button-primary,
.btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 10px 30px rgba(201, 154, 69, 0.2);
}

.button-primary:hover,
.btn-primary:hover {
  border-color: var(--light-gold);
  background: var(--light-gold);
  color: var(--midnight);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(201, 154, 69, 0.28);
}

.button-secondary,
.btn-secondary {
  border-color: rgba(215, 239, 255, 0.52);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.button-secondary:hover,
.btn-secondary:hover {
  border-color: var(--electric-blue);
  background: rgba(88, 185, 255, 0.12);
  color: var(--white);
  transform: translateY(-3px);
}

.button-dark {
  border-color: var(--deep-navy);
  background: var(--deep-navy);
  color: var(--white);
}

.button-dark:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
}

.text-link::after {
  margin-left: 8px;
  content: "→";
  transition: transform 0.25s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  max-width: 790px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading .eyebrow::after {
  width: 48px;
  height: 2px;
  margin-left: 14px;
  background: var(--electric-blue);
  content: "";
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}


/* =========================================================
   BOOK INTRODUCTION
   ========================================================= */

.book-introduction {
  background:
    linear-gradient(
      rgba(255, 250, 240, 0.96),
      rgba(244, 239, 228, 0.96)
    );
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 70px;
}

.intro-image {
  position: relative;
}

.intro-image img {
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow-large);
}

.intro-image::after {
  position: absolute;
  right: 4%;
  bottom: -28px;
  z-index: -1;
  width: 88%;
  height: 50%;
  border-radius: 50%;
  background: rgba(16, 41, 68, 0.18);
  content: "";
  filter: blur(30px);
}

.intro-content h2 {
  margin-bottom: 22px;
}

.intro-content p {
  color: #3e4953;
}

.intro-content .lead {
  color: var(--deep-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.65;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.features-section {
  background: var(--white);
}

.card-grid {
  display: grid;
  gap: 28px;
}

.card-grid.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  height: 100%;
  padding: 32px 28px;
  overflow: hidden;
  border: 1px solid rgba(16, 41, 68, 0.11);
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: var(--shadow-small);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--electric-blue)
  );
  content: "";
}

.card:hover {
  border-color: rgba(201, 154, 69, 0.35);
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--pale-blue);
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.card h3 {
  margin-bottom: 14px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}


/* =========================================================
   STORY / SYNOPSIS SECTION
   ========================================================= */

/* Story content inside dark sections */

.story-section .story-content h2,
.story-section .story-content h3 {
  color: var(--white);
}

.story-section .story-content p {
  color: #d6e3ee;
}


/* Story content inside light sections */

.features-section .story-content h2,
.features-section .story-content h3,
.themes-section .story-content h2,
.themes-section .story-content h3,
.book-introduction .story-content h2,
.book-introduction .story-content h3 {
  color: var(--deep-navy);
}

.features-section .story-content p,
.themes-section .story-content p,
.book-introduction .story-content p {
  color: #414c56;
}

.story-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    radial-gradient(
      circle at 20% 25%,
      var(--electric-blue) 0,
      transparent 26%
    ),
    radial-gradient(
      circle at 85% 75%,
      var(--gold) 0,
      transparent 25%
    );
  content: "";
}

.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.story-content h2,
.story-content h3 {
  color: var(--white);
}

.story-content p {
  color: #d6e3ee;
}

.story-quote {
  padding: 30px;
  border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-small);
}

.story-quote blockquote {
  margin: 0 0 18px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
  font-style: italic;
  line-height: 1.55;
}

.story-quote cite {
  color: var(--light-gold);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   THEMES SECTION
   ========================================================= */

.themes-section {
  background: var(--parchment);
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.theme-item {
  display: flex;
  align-items: flex-start;
  padding: 23px;
  border: 1px solid rgba(201, 154, 69, 0.23);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.65);
}

.theme-number {
  flex: 0 0 auto;
  margin-right: 17px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.theme-item h3 {
  margin-bottom: 7px;
  font-size: 1.2rem;
}

.theme-item p {
  margin-bottom: 0;
  color: var(--muted);
}


/* =========================================================
   EDITORIAL / REVIEW QUOTE
   ========================================================= */

.editorial-section {
  background:
    linear-gradient(
      125deg,
      var(--midnight),
      var(--navy)
    );
  text-align: center;
}

.editorial-quote {
  max-width: 920px;
  margin: 0 auto;
}

.editorial-quote .quote-mark {
  display: block;
  height: 70px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
}

.editorial-quote blockquote {
  margin: 0 0 22px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.55;
}

.editorial-quote cite {
  color: var(--light-gold);
  font-style: normal;
  font-weight: 700;
}


/* =========================================================
   AUTHOR SECTION
   ========================================================= */

.author-section {
  background: var(--white);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 58px;
}

.author-image img {
  width: min(100%, 360px);
  margin: 0 auto;
  border: 8px solid var(--white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
}

.author-content h2 {
  margin-bottom: 10px;
}

.author-label {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.author-content p {
  color: var(--muted);
}


/* =========================================================
   FUTURE PAGE / RESOURCE CARDS
   ========================================================= */

.explore-section {
  background: #edf3f7;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(16, 41, 68, 0.12);
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.explore-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.explore-card h3 {
  margin-bottom: 13px;
}

.explore-card p {
  flex-grow: 1;
  color: var(--muted);
}

.explore-card.coming-soon {
  opacity: 0.82;
}

.status-label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 15px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pale-blue);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta-section {
  padding: 80px 24px;
  background:
    linear-gradient(
      120deg,
      rgba(7, 17, 31, 0.98),
      rgba(16, 41, 68, 0.96)
    );
}

.cta-box {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 54px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 122, 0.35);
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(88, 185, 255, 0.18),
      transparent 28%
    ),
    rgba(255, 255, 255, 0.045);
  text-align: center;
  box-shadow: var(--shadow-large);
}

.cta-box h2 {
  margin-bottom: 18px;
  color: var(--white);
}

.cta-box p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #d9e7f1;
  font-size: 1.06rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

.breadcrumbs {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(16, 41, 68, 0.09);
  background: #f1f4f6;
}

.breadcrumbs .container {
  font-size: 0.88rem;
}

.breadcrumbs a {
  font-weight: 700;
}

.breadcrumbs span {
  margin: 0 7px;
  color: #87919a;
}


/* =========================================================
   STANDARD INNER PAGE HERO
   ========================================================= */

.page-hero {
  padding: 85px 24px;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(88, 185, 255, 0.2),
      transparent 28%
    ),
    linear-gradient(
      125deg,
      var(--midnight),
      var(--navy)
    );
  text-align: center;
}

.page-hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.page-hero p {
  margin-bottom: 0;
  color: var(--pale-blue);
  font-size: 1.12rem;
}


/* =========================================================
   ARTICLE PAGES
   ========================================================= */

.article-section {
  background: var(--white);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 58px;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin-top: 48px;
  margin-bottom: 18px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 34px;
}

.article-content p,
.article-content li {
  color: #414c56;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content blockquote {
  margin: 35px 0;
  padding: 26px 30px;
  border-left: 5px solid var(--gold);
  background: var(--parchment);
  color: var(--deep-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
}

.sidebar {
  position: sticky;
  top: 108px;
  padding: 25px;
  border: 1px solid rgba(16, 41, 68, 0.12);
  border-radius: var(--radius-medium);
  background: var(--parchment);
  box-shadow: var(--shadow-small);
}

.sidebar h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar-nav a:hover {
  background: var(--white);
  color: var(--blue);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 66px 24px 25px;
  background: #050c15;
  color: #b9c7d2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.7fr));
  width: min(100%, var(--max-width));
  margin: 0 auto 42px;
  gap: 40px;
}

.footer-brand h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.55rem;
}

.footer-brand p {
  max-width: 420px;
  color: #aebdca;
  font-size: 0.94rem;
}

.footer-column h3 {
  margin-bottom: 16px;
  color: var(--light-gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin-bottom: 9px;
  color: #c8d5df;
  font-size: 0.92rem;
}

.footer-column a:hover {
  color: var(--light-gold);
}

.footer-bottom {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #8797a5;
  font-size: 0.84rem;
  text-align: center;
}


/* =========================================================
   UTILITIES
   ========================================================= */

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.text-light {
  color: var(--white);
}

.bg-white {
  background: var(--white);
}

.bg-parchment {
  background: var(--parchment);
}

.bg-navy {
  background: var(--deep-navy);
}

.narrow {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.divider {
  width: 80px;
  height: 3px;
  margin: 22px auto;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--electric-blue)
  );
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 1000px) {
  .nav-container {
    flex-direction: column;
    min-height: auto;
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .site-branding {
    align-items: center;
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grid,
  .intro-grid,
  .story-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .hero-content .eyebrow {
    justify-content: center;
  }

  .hero-content .eyebrow::after {
    width: 48px;
    height: 2px;
    margin-left: 14px;
    background: var(--electric-blue);
    content: "";
  }

  .hero-description,
  .hero-tagline {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-meta,
  .hero-actions {
    justify-content: center;
  }

  .hero-book {
    margin-top: 10px;
  }

  .intro-content,
  .author-content {
    text-align: center;
  }

  .card-grid.four-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three-column,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 68px 20px;
  }

  .nav-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 72px 20px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-book img {
    width: min(88%, 390px);
  }

  .card-grid.three-column,
  .card-grid.four-column,
  .explore-grid,
  .theme-list {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-right: auto;
    margin-left: auto;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.76rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .site-subtitle {
    font-size: 0.65rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-tagline {
    font-size: 1.18rem;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .button,
  .btn {
    width: 100%;
  }

  .hero-book::before {
    width: 320px;
    height: 320px;
  }

  .card,
  .explore-card {
    padding: 26px 22px;
  }

  .story-quote {
    padding: 24px 21px;
  }

  .cta-box {
    padding: 34px 20px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}