:root {
  --forest: #071826;
  --pine: #12334a;
  --pine-soft: #1f5574;
  --storm: #1d2f44;
  --mist: #f4f1eb;
  --fog: #d8d6cf;
  --paper: #fffaf3;
  --copper: #c8754d;
  --ember: #e6a16c;
  --ink: #13202b;
  --muted: #5d6871;
  --border: rgba(244, 241, 235, 0.18);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

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

img {
  display: block;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--forest);
  background: var(--ember);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 24, 38, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.brand,
.footer-brand {
  text-decoration: none;
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(230, 161, 108, 0.75);
  border-radius: 50%;
  color: var(--ember);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  color: var(--fog);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--fog);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ember);
  border-color: var(--ember);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(244, 241, 235, 0.28);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

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

.hero {
  position: relative;
  min-height: min(680px, calc(100svh - 124px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest);
}

.hero-visual,
.page-hero::before,
.about-image {
  background:
    linear-gradient(rgba(7, 24, 38, 0.4), rgba(7, 24, 38, 0.82)),
    radial-gradient(circle at 70% 35%, rgba(230, 161, 108, 0.24), transparent 28%),
    linear-gradient(145deg, #0b263d 0%, #263f56 48%, #061521 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  opacity: 0.78;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 38, 0.94) 0%, rgba(7, 24, 38, 0.82) 44%, rgba(7, 24, 38, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 24, 38, 0.22), rgba(7, 24, 38, 0.82));
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  height: 46%;
  background:
    linear-gradient(150deg, transparent 0 44%, rgba(7, 24, 38, 0.85) 44.2% 58%, transparent 58.2%),
    linear-gradient(30deg, transparent 0 38%, rgba(12, 48, 75, 0.95) 38.2% 56%, transparent 56.2%),
    linear-gradient(170deg, transparent 0 52%, rgba(25, 79, 108, 0.98) 52.2% 68%, transparent 68.2%);
  opacity: 0.95;
}

.hero-content {
  position: relative;
  padding: 84px 0 96px;
}

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

.home-banner-hero {
  min-height: calc(100svh - 76px);
  background: #07111d;
}

.home-banner-hero .hero-visual img {
  object-fit: contain;
  object-position: center top;
  opacity: 1;
}

.home-banner-hero .hero-visual::before {
  display: none;
}

.home-banner-hero .hero-visual::after {
  background:
    linear-gradient(180deg, rgba(7, 24, 38, 0.12), rgba(7, 24, 38, 0.34)),
    linear-gradient(90deg, rgba(7, 24, 38, 0.06), rgba(7, 24, 38, 0.02));
}

.home-banner-hero .hero-content {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: 0 0 32px;
}

.hero-actions {
  max-width: none;
  margin-top: 0;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--copper);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 500;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 4.85rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  color: rgba(255, 250, 243, 0.88);
  font-size: 1.25rem;
  max-width: 700px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.button.primary {
  color: #27120b;
  background: var(--ember);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #f0b67e;
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 243, 0.44);
  background: rgba(255, 255, 255, 0.04);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--ember);
  color: var(--ember);
}

.hero .button.secondary {
  background: rgba(7, 24, 38, 0.76);
  border-color: rgba(255, 250, 243, 0.54);
}

.section {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 54px;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
}

.feature-panel,
.prequel-card,
.signup-box,
.contact-form,
.contact-aside > div,
.book-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 34px;
  color: var(--paper);
  background: linear-gradient(145deg, var(--pine), var(--storm));
}

.banner-panel {
  overflow: hidden;
  padding: 0;
}

.banner-panel img {
  width: 100%;
  aspect-ratio: 2.7 / 1;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(244, 241, 235, 0.16);
}

.banner-panel .panel-kicker,
.banner-panel h3,
.banner-panel p {
  margin-left: 34px;
  margin-right: 34px;
}

.banner-panel .panel-kicker {
  margin-top: 28px;
}

.banner-panel p:last-child {
  margin-bottom: 34px;
}

.pine-band {
  color: var(--paper);
  background: linear-gradient(180deg, var(--forest), var(--pine));
}

.section-heading {
  max-width: 690px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.pine-band .book-card p {
  color: rgba(255, 250, 243, 0.78);
}

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

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

.book-card {
  padding: 18px;
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(244, 241, 235, 0.16);
}

.section:not(.pine-band) .book-card {
  background: var(--paper);
  border-color: rgba(7, 24, 38, 0.12);
}

.book-card h2,
.book-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.cover-placeholder {
  min-height: 310px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--paper);
  background:
    linear-gradient(rgba(7, 24, 38, 0.3), rgba(7, 24, 38, 0.82)),
    linear-gradient(150deg, var(--pine-soft), var(--storm));
  border: 1px solid rgba(255, 250, 243, 0.26);
  border-radius: 6px;
  text-align: center;
}

.cover-placeholder span {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 250, 243, 0.26);
  border-radius: 6px;
  background: var(--storm);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.tall-cover {
  min-height: 420px;
}

.prequel-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(7, 24, 38, 0.12);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.center-link {
  margin-top: 32px;
}

.about-image,
.author-photo {
  min-height: 420px;
  border-radius: var(--radius);
}

.author-photo {
  margin: 0;
  overflow: hidden;
  background: var(--pine);
  box-shadow: var(--shadow);
}

.author-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 28%;
}

.about-image.large,
.author-photo.large,
.author-photo.large img {
  min-height: 520px;
}

.text-link {
  color: var(--pine);
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-underline-offset: 4px;
}

.pine-band .text-link,
.storm-callout .text-link {
  color: var(--ember);
}

.storm-callout {
  color: var(--paper);
  background:
    linear-gradient(rgba(7, 24, 38, 0.94), rgba(7, 24, 38, 0.94)),
    linear-gradient(145deg, #243e58, #061521);
}

.callout-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.series-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-list li {
  padding: 14px 16px;
  border: 1px solid rgba(230, 161, 108, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.page-hero {
  position: relative;
  color: var(--paper);
  background: var(--forest);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
}

.page-hero .shell {
  position: relative;
  padding: 86px 0 94px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
}

.signup-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.prequel-card,
.signup-box,
.contact-form,
.contact-aside > div {
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(7, 24, 38, 0.12);
}

.placeholder-form,
.contact-form {
  display: grid;
  gap: 12px;
}

label {
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(7, 24, 38, 0.22);
  border-radius: 6px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(230, 161, 108, 0.44);
  border-color: var(--copper);
}

.form-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.contact-aside {
  display: grid;
  gap: 22px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 8px 11px;
  border: 1px solid rgba(18, 51, 74, 0.22);
  border-radius: 6px;
  color: var(--pine);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-content {
  max-width: 820px;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 1.7rem;
}

.site-footer {
  color: rgba(255, 250, 243, 0.82);
  background: #06121d;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.7fr 0.8fr;
  gap: 34px;
  padding: 54px 0;
}

.site-footer h2 {
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  color: rgba(255, 250, 243, 0.82);
  text-decoration: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social a {
  color: var(--ember);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ember);
  font-size: 1.5rem;
}

.copyright,
.compact-footer p {
  margin: 0;
  padding: 18px 20px;
  color: rgba(255, 250, 243, 0.62);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.compact-footer a {
  display: inline;
  color: var(--ember);
}

.disabled-link {
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 880px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(7, 24, 38, 0.99);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .hero {
    min-height: min(600px, calc(100svh - 104px));
  }

  .hero-content {
    padding: 70px 0 84px;
  }

  .home-banner-hero {
    min-height: 620px;
  }

  .home-banner-hero .hero-visual img {
    object-fit: cover;
    object-position: 42% top;
  }

  .home-banner-hero .hero-content {
    padding: 0 0 28px;
  }

  .split,
  .split.reverse,
  .signup-layout,
  .contact-grid,
  .callout-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .book-grid,
  .six-books,
  .series-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .brand-tag {
    display: none;
  }

  .hero {
    min-height: min(560px, calc(100svh - 96px));
  }

  .hero-visual img {
    object-position: 58% 42%;
  }

  .home-banner-hero {
    min-height: 560px;
  }

  .home-banner-hero .hero-visual img {
    object-position: 36% top;
  }

  .hero-content,
  .page-hero .shell {
    padding: 58px 0 66px;
  }

  .home-banner-hero .hero-content {
    padding: 0 0 22px;
  }

  .lead {
    font-size: 1.08rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .book-grid,
  .six-books,
  .series-list {
    grid-template-columns: 1fr;
  }

  .cover-placeholder {
    min-height: 260px;
  }

  .tall-cover {
    min-height: 360px;
  }

  .feature-panel,
  .prequel-card,
  .signup-box,
  .contact-form,
  .contact-aside > div {
    padding: 22px;
  }
}
