/* =========================================================
   COLE EVERLY AUTHOR WEBSITE
   Static HTML/CSS site for Bluehost / HostMonster
   ---------------------------------------------------------
   EASY BRAND CONTROLS:
   Change colors, fonts, radii, and spacing in :root below.
   ========================================================= */

:root {
  --midnight-950: #101b24;
  --midnight-900: #152631;
  --midnight-800: #1d3441;
  --charcoal: #263039;
  --pine-700: #3f5b52;
  --pine-500: #6f887c;
  --amber-500: #c9934b;
  --amber-400: #dda85f;
  --amber-200: #f0d3a8;
  --ivory-100: #f7f1e8;
  --ivory-50: #fcf9f4;
  --snow: #fffdf9;
  --mist: #d9e1e2;
  --ink: #1f282e;
  --muted: #667078;
  --line: rgba(21, 38, 49, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 18px 50px rgba(16, 27, 36, 0.10);
  --shadow-cover: 0 22px 55px rgba(16, 27, 36, 0.24);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container: 1180px;
  --header-height: 82px;

  /* Typography uses dependable system fonts—no third-party font loading. */
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
}

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

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.75rem);
}

h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.7rem);
}

h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

p {
  margin: 0 0 1.15em;
}

::selection {
  color: var(--midnight-950);
  background: var(--amber-200);
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.centered {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--snow);
  background: var(--midnight-950);
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  color: var(--snow);
  background: rgba(16, 27, 36, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand-kicker {
  margin-top: 0.35rem;
  color: var(--amber-200);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav a {
  padding: 0.68rem 0.85rem;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--snow);
  background: rgba(255, 255, 255, 0.08);
}

.primary-nav .nav-cta {
  margin-left: 0.5rem;
  color: var(--midnight-950);
  background: var(--amber-400);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta:focus-visible {
  color: var(--midnight-950);
  background: var(--amber-200);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--snow);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  color: var(--snow);
  background: var(--midnight-950);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 18, 24, 0.87) 0%, rgba(9, 18, 24, 0.64) 46%, rgba(9, 18, 24, 0.15) 82%),
    linear-gradient(180deg, rgba(9, 18, 24, 0.05) 38%, rgba(9, 18, 24, 0.72) 100%);
}

.hero-content {
  align-self: center;
  max-width: var(--container);
  padding-block: clamp(5rem, 13vh, 9rem);
}

.hero-content > * {
  max-width: 850px;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--amber-200);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--pine-700);
}

.hero h1 {
  max-width: 870px;
  margin-bottom: 0.32em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}

.hero-lede {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.89);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.button-row,
.card-actions,
.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero .button-row {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.76rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: var(--snow);
  background: var(--midnight-900);
  border-color: var(--midnight-900);
  box-shadow: 0 10px 25px rgba(16, 27, 36, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--midnight-800);
  border-color: var(--midnight-800);
}

.hero .button-primary {
  color: var(--midnight-950);
  background: var(--amber-400);
  border-color: var(--amber-400);
}

.hero .button-primary:hover,
.hero .button-primary:focus-visible {
  background: var(--amber-200);
  border-color: var(--amber-200);
}

.button-secondary {
  color: var(--midnight-950);
  background: transparent;
  border-color: rgba(21, 38, 49, 0.35);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--snow);
  background: var(--midnight-900);
  border-color: var(--midnight-900);
}

.button-ghost {
  color: var(--snow);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.44);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.76);
}

.button-amber {
  color: var(--midnight-950);
  background: var(--amber-400);
  border-color: var(--amber-400);
}

.button-amber:hover,
.button-amber:focus-visible {
  background: var(--amber-200);
  border-color: var(--amber-200);
}

.button-outline {
  color: var(--midnight-900);
  background: transparent;
  border-color: rgba(21, 38, 49, 0.28);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--midnight-900);
}

.hero-scroll-cue {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--container)) / 2));
  bottom: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-scroll-cue span {
  color: var(--amber-200);
  font-size: 1.1rem;
}

/* ---------- Reader promise ---------- */

.reader-promise {
  background: var(--ivory-100);
  border-bottom: 1px solid var(--line);
}

.promise-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: start;
}

.promise-grid h2 {
  max-width: 620px;
}

.promise-copy {
  color: #424d54;
  font-size: 1.08rem;
}

.promise-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- Section heading ---------- */

.section-heading {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.section-heading h2 {
  margin-bottom: 0.35em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Featured books ---------- */

.featured-books {
  background: var(--snow);
}

.book-grid {
  display: grid;
  gap: 1.5rem;
}

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

.book-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ivory-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(16, 27, 36, 0.06);
}

.book-cover-wrap {
  display: block;
  padding: 2rem 2rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 147, 75, 0.12), transparent 52%),
    linear-gradient(180deg, #e9eeec 0%, #f9f5ef 100%);
}

.book-cover {
  width: min(100%, 330px);
  margin-inline: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.32rem;
  box-shadow: var(--shadow-cover);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.book-cover-wrap:hover .book-cover,
.book-cover-wrap:focus-visible .book-cover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 30px 62px rgba(16, 27, 36, 0.29);
}

.book-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem;
}

.book-status {
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.62rem;
  color: #6b4a21;
  background: #f8ead5;
  border: 1px solid #e8c896;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.book-card h3 {
  margin-bottom: 0.3em;
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
}

.book-card h3 a {
  text-decoration: none;
}

.book-card h3 a:hover,
.book-card h3 a:focus-visible {
  color: var(--pine-700);
}

.book-hook,
.book-detail-hook {
  color: var(--pine-700);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
}

.trope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  padding: 0;
  margin: 0 0 1.3rem;
  list-style: none;
}

.trope-list li {
  padding: 0.36rem 0.58rem;
  color: var(--midnight-800);
  background: #e6eeeb;
  border: 1px solid #c9d9d3;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
}

.book-blurb {
  color: #535e64;
  font-size: 0.98rem;
  line-height: 1.7;
}

.card-actions {
  margin-top: auto;
  padding-top: 0.65rem;
}

.text-link {
  color: var(--pine-700);
  font-size: 0.9rem;
  font-weight: 800;
}

.disabled-link[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
  cursor: default;
}

.section-cta {
  margin-top: var(--space-6);
}

/* ---------- Signature ---------- */

.signature-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 12vw, 10rem);
  color: var(--snow);
  background:
    radial-gradient(circle at 76% 18%, rgba(221, 168, 95, 0.22), transparent 33%),
    linear-gradient(125deg, var(--midnight-950) 0%, var(--midnight-800) 55%, #496358 100%);
  isolation: isolate;
}

.signature-section::before,
.signature-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.signature-section::before {
  width: 360px;
  height: 360px;
  top: -170px;
  right: -80px;
}

.signature-section::after {
  width: 560px;
  height: 560px;
  bottom: -390px;
  left: -160px;
}

.signature-inner {
  max-width: 980px;
  text-align: center;
}

.signature-inner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- About ---------- */

.about-section {
  background: var(--ivory-100);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.author-mark {
  position: relative;
}

.author-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 82%;
  height: 82%;
  background: var(--amber-200);
  border-radius: var(--radius-lg);
}

.author-mark img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-intro {
  color: var(--pine-700);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.editor-note {
  padding: 0.95rem 1rem;
  color: #655238;
  background: rgba(240, 211, 168, 0.34);
  border: 1px solid rgba(201, 147, 75, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.newsletter-section {
  padding-block: var(--space-8);
  color: var(--snow);
  background:
    radial-gradient(circle at 90% 10%, rgba(221, 168, 95, 0.14), transparent 28%),
    var(--midnight-900);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.newsletter-copy h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.65rem);
}

.newsletter-copy > p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-form {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
}

.newsletter-form label {
  display: block;
  margin-bottom: 1rem;
}

.newsletter-form label > span {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
}

.newsletter-form input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--snow);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(221, 168, 95, 0.22);
}

.newsletter-form .button {
  width: 100%;
  margin-top: 0.15rem;
}

.form-note,
.form-message {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-message:not(:empty) {
  color: var(--amber-200);
}

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

.site-footer {
  padding-block: 3rem;
  color: rgba(255, 255, 255, 0.73);
  background: var(--midnight-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.55fr) minmax(250px, 0.9fr);
  gap: 2.5rem;
}

.footer-brand {
  color: var(--snow);
}

.footer-tagline {
  max-width: 370px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-nav a,
.footer-meta a,
.social-links a {
  color: inherit;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--snow);
}

.footer-meta {
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-meta p {
  margin-bottom: 0.65rem;
}

.privacy-note {
  color: rgba(255, 255, 255, 0.47);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

/* ---------- Books page ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 13vw, 10rem);
  color: var(--snow);
  background:
    radial-gradient(circle at 74% 15%, rgba(221, 168, 95, 0.21), transparent 30%),
    radial-gradient(circle at 15% 100%, rgba(111, 136, 124, 0.34), transparent 35%),
    linear-gradient(125deg, #0f1b23 0%, #1c3441 60%, #385046 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -310px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.page-hero h1 {
  font-size: clamp(3.4rem, 7.8vw, 7rem);
}

.page-hero-inner > p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
}

.books-library {
  background: var(--snow);
}

.library-heading {
  margin-bottom: var(--space-7);
}

.book-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.8rem, 7vw, 6rem);
  align-items: center;
  padding-block: var(--space-7);
  border-top: 1px solid var(--line);
}

.book-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.book-detail:nth-of-type(even) .book-detail-cover {
  order: 2;
}

.book-detail-cover {
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 147, 75, 0.15), transparent 56%),
    linear-gradient(180deg, #edf1ef 0%, #f8f3ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.book-detail-cover img {
  width: min(100%, 380px);
  margin-inline: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.35rem;
  box-shadow: var(--shadow-cover);
}

.book-detail-copy h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
}

.series-line {
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.book-detail-hook {
  max-width: 760px;
  color: var(--pine-700);
  font-size: clamp(1.3rem, 2.2vw, 1.78rem);
}

.trope-list-large li {
  font-size: 0.8rem;
}

.book-description {
  max-width: 780px;
  color: #4b565c;
}

.book-actions {
  margin-top: 1.75rem;
}

.hidden-action {
  display: none;
}

.books-closing {
  padding-block: var(--space-8);
  color: var(--snow);
  background:
    radial-gradient(circle at 15% 15%, rgba(221, 168, 95, 0.17), transparent 30%),
    linear-gradient(125deg, var(--midnight-950), var(--midnight-800));
}

.books-closing-inner {
  max-width: 820px;
  text-align: center;
}

.books-closing-inner h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.books-closing-inner > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- Focus states ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root {
    --space-8: 5.2rem;
  }

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

  .book-grid-featured .book-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 0.75rem));
    justify-self: center;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1.5rem;
    color: var(--snow);
    background: rgba(16, 27, 36, 0.985);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav a {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .primary-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .hero {
    min-height: 780px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(9, 18, 24, 0.36) 0%, rgba(9, 18, 24, 0.8) 62%, rgba(9, 18, 24, 0.96) 100%);
  }

  .hero-content {
    align-self: end;
    padding-bottom: 7.5rem;
  }

  .promise-grid,
  .about-grid,
  .book-detail {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 3rem;
  }

  .author-mark {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .book-detail {
    gap: 2.7rem;
  }

  .book-detail:nth-of-type(even) .book-detail-cover {
    order: initial;
  }

  .book-detail-cover {
    width: min(100%, 520px);
    margin-inline: auto;
  }

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

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  :root {
    --header-height: 74px;
    --space-7: 3.7rem;
    --space-8: 4.4rem;
  }

  body {
    font-size: 1rem;
  }

  .container {
    width: min(calc(100% - 1.6rem), var(--container));
  }

  .brand-name {
    font-size: 1.45rem;
  }

  .brand-kicker {
    font-size: 0.59rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 6.8rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .hero-scroll-cue {
    right: 1rem;
    bottom: 1.15rem;
  }

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

  .book-grid-featured .book-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .book-cover-wrap,
  .book-detail-cover {
    padding: 1.4rem;
  }

  .book-card-body {
    padding: 1.35rem;
  }

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

  .footer-meta {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
