@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600&display=swap");

:root {
  --paper: #fbf8f1;
  --paper-deep: #f1eadf;
  --ink: #10243e;
  --teal: #2f6f73;
  --teal-dark: #23575a;
  --gold: #b68a3a;
  --sand: #ddd2c1;
  --body: #445365;
  --white: #fff;
  --shadow: 0 24px 60px rgba(16, 36, 62, .16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); }
.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; top: 10px; left: 10px; z-index: 99; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16,36,62,.13);
  background: rgba(251,248,241,.94);
}
.header-inner {
  max-width: 1320px;
  min-height: 88px;
  margin: auto;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: var(--ink); font-size: 1.65rem; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
nav { display: flex; gap: 48px; }
nav a { color: var(--ink); font-weight: 700; text-decoration: none; position: relative; }
nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -8px; background: var(--gold); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 290px;
  height: 16px;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dropdown-toggle span { color: var(--gold); font-size: .75em; transition: transform .2s ease; }
.dropdown-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 290px;
  padding: 12px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(16,36,62,.16);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu.open { display: block; }
.dropdown-menu a { display: block; padding: 9px 11px; border-radius: 7px; font-size: .9rem; line-height: 1.35; }
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--paper-deep); }
.menu-toggle { display: none; }

.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 24px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,111,115,.2); }
.button-outline { background: transparent; color: var(--teal); }
.button-outline:hover, .button-outline:focus-visible { color: white; }
.button-disabled { background: var(--paper-deep); border-color: var(--sand); color: var(--body); cursor: default; }
.status {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 7px;
  color: white;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.status.soon { background: var(--gold); }
.status.available { background: var(--teal); }
.text-link { color: var(--teal); font-weight: 800; text-underline-offset: 5px; }
.center { text-align: center; }

.hero {
  min-height: 760px;
  max-width: 1440px;
  margin: auto;
  padding: 72px 5vw 84px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 56px;
  overflow: hidden;
}
.hero-copy { max-width: 620px; }
.hero-copy h1 { margin: 14px 0 26px; }
.hero-lede { max-width: 680px; color: var(--body); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.hero-copy .button { margin-top: 18px; }
.hero-books { min-height: 610px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-book { position: absolute; text-align: center; text-decoration: none; }
.hero-book img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 540px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-book img:hover { transform: translateY(-7px); box-shadow: 0 30px 70px rgba(16,36,62,.22); }
.hero-book.signal { z-index: 2; width: min(330px, 38vw); left: 7%; top: 5%; transform: rotate(-1.5deg); }
.hero-book.seo { width: min(285px, 33vw); right: 5%; top: 12%; transform: rotate(1.5deg); }
.hero-book .status { position: relative; z-index: 3; margin-bottom: -12px; }
.hero-book.seo .button { margin-top: 22px; }

.section { max-width: 1240px; margin: auto; padding: 100px 42px; }
.intro-section { border-top: 1px solid var(--sand); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 48px; }
.book-card { border: 1px solid var(--sand); border-radius: var(--radius); background: rgba(255,255,255,.42); overflow: hidden; }
.cover-link { padding: 28px; display: flex; min-height: 450px; align-items: center; justify-content: center; background: var(--paper-deep); }
.cover-link img {
  width: 100%;
  height: auto;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(16,36,62,.16);
  transition: transform .2s ease;
}
.cover-link:hover img { transform: translateY(-5px); }
.book-card-copy { padding: 28px; }
.book-card-copy .eyebrow { margin-top: 18px; }
.book-card-copy h2 { font-size: 1.55rem; letter-spacing: -.025em; }
.book-card-copy h2 a { text-decoration: none; }
.book-card-copy .subtitle { color: var(--ink); font-weight: 600; }
.book-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; padding-top: 30px; }
.book-list .book-card { display: grid; grid-template-columns: .82fr 1.18fr; }
.book-list .cover-link { min-height: 500px; }

.author-strip { max-width: 1160px; margin: 20px auto 110px; padding: 56px; display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; background: var(--ink); border-radius: 24px; color: #dfe5ec; }
.author-strip h2 { color: white; }
.author-photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 5px solid rgba(255,255,255,.16); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-strip .text-link { color: #8fd1d2; }

.page-hero { max-width: 1080px; margin: auto; padding: 105px 42px 60px; text-align: center; }
.page-hero h1 { margin: 12px 0 24px; }
.page-hero > p:last-child { max-width: 760px; margin: auto; font-size: 1.2rem; }
.page-hero.narrow { padding-bottom: 25px; }
.about-hero { max-width: 1180px; margin: auto; padding: 90px 42px 60px; display: grid; grid-template-columns: 360px 1fr; gap: 70px; align-items: center; }
.about-photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--paper-deep); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.prose-grid h2 { font-size: 2.5rem; }
.contact-card { padding: 38px; border: 1px solid var(--sand); border-radius: var(--radius); background: white; }
.contact-card .button { word-break: break-word; }

.book-hero { max-width: 1180px; margin: auto; padding: 80px 42px 70px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.single-cover { padding: 34px; border: 1px solid var(--sand); border-radius: 20px; background: var(--paper-deep); }
.single-cover img { width: 100%; height: auto; max-width: 380px; margin: auto; box-shadow: var(--shadow); }
.book-intro h1 { margin: 14px 0 18px; font-size: clamp(3rem, 5.7vw, 5.3rem); }
.book-subtitle { color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: 1.65rem; line-height: 1.35; }
.book-intro .button { margin-top: 12px; }
.book-details { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; border-top: 1px solid var(--sand); }
.book-details ul { padding: 0; list-style: none; }
.book-details li { position: relative; padding: 15px 0 15px 38px; border-bottom: 1px solid var(--sand); }
.book-details li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.book-details aside { align-self: start; padding: 34px; border-radius: var(--radius); background: var(--paper-deep); }
.legal { max-width: 840px; margin: auto; padding: 20px 42px 100px; }
.legal h2 { margin-top: 42px; font-size: 1.65rem; }

.site-footer { background: #0b1d33; color: #cbd4de; padding: 70px 42px 28px; }
.footer-grid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1.7fr .7fr 1fr; gap: 60px; }
.footer-brand { color: white; }
.footer-grid h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-underline-offset: 4px; }
.footer-bottom { max-width: 1200px; margin: 52px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 30px; font-size: .78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; text-align: center; }
  .hero-copy { margin: auto; }
  .hero-books { min-height: 640px; }
  .hero-book.signal { left: 13%; }
  .hero-book.seo { right: 12%; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .book-list { grid-template-columns: 1fr; }
  .about-hero, .book-hero { gap: 45px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  main { width: 100%; max-width: 100%; overflow-x: hidden; }
  .header-inner { min-height: 72px; padding: 0 22px; }
  .brand { font-size: 1.35rem; }
  .menu-toggle { display: grid; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
  .menu-toggle span:not(.sr-only) { height: 2px; background: var(--ink); }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--sand); flex-direction: column; gap: 22px; text-align: center; }
  nav.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown::after { display: none; }
  .dropdown-toggle { justify-content: center; width: 100%; }
  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
    text-align: left;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu { display: none; }
  .nav-dropdown .dropdown-menu.open { display: block; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .hero-copy h1 { font-size: clamp(2.55rem, 11.5vw, 3.5rem); }
  .hero { min-height: auto; padding: 54px 22px 65px; gap: 45px; }
  .hero-books { min-height: 500px; }
  .hero-book.signal { width: 58vw; left: 0; }
  .hero-book.seo { width: 47vw; right: 0; top: 15%; }
  .hero-book.seo .button { min-height: 44px; padding: 10px 13px; font-size: .78rem; }
  .section, .page-hero, .book-hero, .about-hero, .legal {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
  }
  .section-heading, .prose-grid, .book-details, .about-hero, .book-hero { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { align-items: start; }
  .mini-grid { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .mini-grid .book-card { width: 100%; min-width: 0; }
  .book-card-copy { min-width: 0; overflow-wrap: anywhere; }
  .book-list .book-card { grid-template-columns: 1fr; }
  .cover-link, .book-list .cover-link { min-height: 420px; }
  .center { width: 100%; display: flex; justify-content: center; }
  .center .button { max-width: 100%; }
  .author-strip {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    min-width: 0;
    margin: 0 auto 70px;
    padding: 32px 24px;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    text-align: center;
  }
  .author-strip > * { min-width: 0; }
  .author-photo { max-width: 220px; margin: auto; }
  .about-photo { max-width: 290px; margin: auto; }
  .single-cover { max-width: 430px; margin: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
