:root {
  --teal: #0e3d47;
  --teal-mid: #1a5a66;
  --teal-soft: #2a7380;
  --gold: #c4a35a;
  --gold-light: #e3c98a;
  --cream: #f6f0e6;
  --cream-dark: #ece3d4;
  --paper: #fbf7f0;
  --ink: #1c2326;
  --ink-soft: #4a5558;
  --sage: #4d6b5c;
  --terracotta: #c15a32;
  --navy: #12324a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(14, 61, 71, 0.12);
  --radius: 18px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-mid); text-decoration: none; }
a:hover { color: var(--teal); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
}
.site-header .brand { color: #e8d7a3; }
.site-header .brand-sub { color: #e8d7a3; }
.site-header .nav a { color: #f3efe6; }
.site-header .nav a:hover, .site-header .nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.site-header .nav .cta {
  background: var(--terracotta);
  color: #fff !important;
}
.site-header .menu-toggle { color: #f3efe6; border-color: rgba(255,255,255,.3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 90, 0.45);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav a:hover, .nav a.active {
  color: var(--teal);
  background: var(--cream-dark);
}

.nav .cta {
  background: var(--teal);
  color: var(--cream) !important;
  margin-left: 8px;
  padding: 8px 16px;
}

.nav .cta:hover { background: var(--teal-mid); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  color: #f3efe6;
  font-size: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  background: #f3efe6;
  border-radius: 2px;
}
.menu-toggle {
  background-image: linear-gradient(#f3efe6, #f3efe6);
  background-size: 18px 2px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  color: var(--cream);
}

.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,61,71,.18) 0%, rgba(14,61,71,.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 16px;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 38ch;
  color: rgba(246,240,230,.9);
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--teal);
}
.btn-gold:hover { background: var(--gold-light); color: var(--teal); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246,240,230,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--cream); }

.btn-teal {
  background: var(--teal);
  color: var(--cream);
}
.btn-teal:hover { background: var(--teal-mid); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: rgba(14,61,71,.28);
}
.btn-outline:hover { background: var(--cream-dark); color: var(--teal); }

/* Sections */
section { padding: 88px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.book-card, .post-card, .author-card, .shop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,61,71,.06);
}

.book-card img, .shop-card img { aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.book-card .body, .shop-card .body, .post-card .body, .author-card .body { padding: 20px 20px 22px; }
.book-card h3, .shop-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 10px; }
.price { font-weight: 700; color: var(--teal); margin: 8px 0 14px; }

.author-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }

.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card .date { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* Band */
.band {
  background: var(--teal);
  color: var(--cream);
}
.band h2 { color: var(--cream); }
.band p { color: rgba(246,240,230,.86); }

.quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 28ch;
}

/* Page hero */
.page-hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 280px at 90% -10%, rgba(196,163,90,.18), transparent 60%),
    var(--cream);
  border-bottom: 1px solid rgba(14,61,71,.08);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero p { max-width: 58ch; color: var(--ink-soft); margin-top: 12px; font-size: 1.08rem; }

/* Forms */
form { display: grid; gap: 14px; }
label { font-size: .86rem; font-weight: 600; color: var(--teal); }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(14,61,71,.18);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(196,163,90,.55);
  border-color: var(--gold);
}

.notice {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .95rem;
}

/* Blog article */
article.post { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
article.post h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin: 10px 0 18px; }
article.post p { margin-bottom: 1.1em; }
article.post h2 { font-size: 1.8rem; margin: 1.4em 0 .5em; }

/* Footer */
.site-footer {
  background: #0b3038;
  color: rgba(246,240,230,.82);
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.site-footer a { color: rgba(246,240,230,.82); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.legal {
  border-top: 1px solid rgba(246,240,230,.12);
  padding-top: 18px;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sample-flag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .grid-3, .grid-4, .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #12324a;
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    align-items: stretch;
    z-index: 80;
    box-shadow: 0 16px 30px rgba(0,0,0,.28);
  }
  .nav.open a { padding: 12px 12px; color: #f3efe6; }
  .menu-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-header { overflow: visible; }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4, .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
  section { padding: 64px 0; }
  .author-profile { grid-template-columns: 1fr; }
}

.author-profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.buy-card { position: relative; border-radius: 10px; overflow: hidden; background: #111; color: #fff; }
.buy-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.buy-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--terracotta); color: #fff; padding: 10px 12px;
}
.buy-card .cap strong { display: block; font-size: .95rem; }
.buy-card .cap span { font-size: .78rem; opacity: .9; }
.badge-soon {
  position: absolute; top: 10px; right: 10px;
  background: #12324a; color: #fff; font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; font-weight: 700;
}
.author-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid rgba(14,61,71,.1);
  align-items: start;
}
.author-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.genre { letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--terracotta); }
.pronouns { color: var(--ink-soft); font-size: .9rem; margin: 2px 0 10px; }
.link-profile { color: var(--terracotta); font-weight: 600; }
.chip { display: inline-block; background: var(--cream-dark); padding: 4px 10px; border-radius: 6px; font-size: .85rem; margin: 8px 0 12px; }
.book-mini { display: grid; grid-template-columns: 160px 1fr; gap: 18px; background: #fff; border: 1px solid rgba(14,61,71,.08); border-radius: 14px; overflow: hidden; }
.book-mini img { width: 160px; height: 240px; object-fit: cover; }
@media (max-width: 980px) {
  .buy-grid { grid-template-columns: 1fr 1fr; }
  .author-row { grid-template-columns: 140px 1fr; }
}
.author-profile img.portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.more-pages { display: grid; gap: 8px; }

/* Catalog yearbook */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px 28px;
  padding: 28px 0 64px;
}
.catalog-item {
  color: inherit;
  text-align: center;
}
.catalog-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center center;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(18,50,74,.16);
  background: #ddd;
}
.catalog-item:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18,50,74,.22);
}
.catalog-item img { transition: transform .15s ease, box-shadow .15s ease; }
.catalog-item .ctitle {
  display: block;
  margin-top: 8px;
  font-size: .86rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
}
.ocean-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  color: #f7f1e6;
  background:
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(180deg, rgba(10,36,62,.25), rgba(8,28,48,.55)),
    linear-gradient(180deg, #1c4d78 0%, #163e66 42%, #0e2c4a 100%);
  overflow: hidden;
}
#netlify-drawer-container, .netlify-drawer { display: none !important; }
.ocean-hero .wrap { position: relative; z-index: 1; text-align: center; padding: 72px 0; }
.ocean-hero .eyebrow {
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.ocean-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .95;
  font-weight: 500;
  color: #fff;
}
.ocean-hero p {
  max-width: 38rem;
  margin: 18px auto 0;
  font-size: 1.08rem;
  line-height: 1.5;
}
.ocean-hero .actions { justify-content: center; margin-top: 28px; }
.btn-coral {
  background: #d4653a;
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 700;
}
.btn-ghost {
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 700;
}
.home-footer {
  background: #12324a;
  color: #f3efe6;
  padding: 48px 0 28px;
}
.home-footer h3 { color: #e8d7a3; letter-spacing: .12em; font-size: .82rem; }
.home-footer a { color: #f3efe6; }
.home-footer p { max-width: 28rem; line-height: 1.5; }
.company-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--navy);
}
.company-hero p.lead {
  max-width: 36rem;
  margin: 16px 0 28px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.cover-blurb {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.45;
}
.library { position: relative; }
.library > summary {
  list-style: none;
  cursor: pointer;
  color: #f3efe6;
  font-weight: 600;
}
.library > summary::-webkit-details-marker { display: none; }
.library-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  color: var(--ink);
  min-width: 260px;
  max-height: 70vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  padding: 8px;
  z-index: 90;
}
.library-panel a {
  display: block;
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .92rem;
}
.library-panel a:hover { background: var(--cream); }
@media (max-width: 980px) {
  .nav.open .library-panel {
    position: static;
    max-height: 240px;
    box-shadow: none;
    margin-top: 6px;
  }
}

/* Category titles page */
.cat-jump { display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 12px; }
.cat-jump a {
  border: 1px solid rgba(14,61,71,.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--navy);
}
.cat-block { padding: 28px 0 8px; }
.cat-block h2 { font-size: 1.8rem; margin-bottom: 6px; }
.cat-block .empty { color: var(--ink-soft); margin: 8px 0 16px; }
.cat-block .catalog-grid { padding: 16px 0 24px; }

.cat-sub { margin: 20px 0 4px; font-size: 1.25rem; }
.series-num { display:block; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin-top:4px; }
.catalog-item.soon { opacity:.55; pointer-events:none; }
.catalog-item.soon .cover-soon {
  min-height: 180px;
  background: var(--cream-dark);
  border-radius: 8px;
  display:grid;
  place-items:center;
  color: var(--ink-soft);
  font-size: .9rem;
  text-align:center;
  padding: 12px;
}

.editions { margin-top: 40px; }
.editions h2 { font-size: 1.6rem; margin-bottom: 8px; }
.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.edition {
  background: var(--white);
  border: 1px solid rgba(14,61,71,.12);
  border-radius: 12px;
  padding: 10px;
}
.edition img { border-radius: 8px; width: 100%; }
.edition .ename { display:block; margin-top: 8px; font-weight: 600; }
.edition .isbn { display:block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.buy-note {
  margin: 14px 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.buy-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 8px;
}
.buy-opt {
  border: 1px solid rgba(14,61,71,.16);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.buy-opt strong { display:block; font-size: .92rem; }
.buy-opt .buy-soon {
  display:block;
  margin-top: 4px;
  font-size: .8rem;
  color: var(--ink-soft);
}
.buy-opt a.buy-live {
  display:inline-block;
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 700;
}
.edition .buy-row {
  grid-template-columns: 1fr;
  margin: 10px 0 0;
  gap: 8px;
}
.edition lulu-buy-button,
.buy-opt lulu-buy-button {
  display: block;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin-top: 8px;
  box-sizing: border-box;
}
.buy-opt a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 217px;
  max-width: 100%;
  height: 46px;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.buy-opt lulu-buy-button {
  max-width: none;
  overflow: visible;
}
.buy-facts {
  margin: 6px 0 2px;
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.buy-facts.is-odd { color: #8a3b12; }
.size-warn {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  font-weight: 600;
}
.ctmeta {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.ctmeta.warn { color: #8a3b12; font-weight: 650; }

.buy-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 8px;
}
.cover-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.play-pick {
  grid-template-columns: repeat(2, minmax(0, 140px));
}
.buy-opt lulu-buy-button {
  display: block;
  margin-top: 8px;
  width: 100%;
  height: auto;
  min-height: 48px;
  max-width: 100%;
  overflow: visible;
}
.cover-choice {
  background: #fff;
  border: 2px solid rgba(14,61,71,.12);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  color: inherit;
  text-align: center;
}
.cover-choice img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.cover-choice span {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  font-weight: 600;
}
.cover-choice.is-on {
  border-color: var(--navy);
}
@media (max-width: 680px) {
  .buy-row { grid-template-columns: 1fr; }
}
.cover-meta {
  margin: 8px 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
}
