/* Kate Renley — site styles. Brand: deep plum / dusty rose / muted gold / warm ivory / espresso. */

:root {
  --plum: #633C52;
  --plum-deep: #4b2d3e;
  --plum-ink: #3d2433;
  --rose: #C9979D;
  --rose-soft: #dfc0c4;
  --gold: #C5A46D;
  --gold-soft: #d9c39c;
  --ivory: #F7F1E8;
  --paper: #FCF8F1;
  --espresso: #352D2B;
  --ink: #3a3230;
  --hairline: rgba(99, 60, 82, 0.18);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Allura', 'Snell Roundhand', cursive;

  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- type utilities ---------- */

.overline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.overline.plum { color: var(--plum); }
.overline.muted { color: var(--rose); }

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--rose);
  line-height: 1.1;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--plum); line-height: 1.15; }

.display {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .overline { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.12em; text-transform: uppercase; }
.section-head .script { display: block; font-size: clamp(26px, 3.4vw, 34px); margin-top: 10px; }
.section-head .rule { margin: 22px auto 0; }

.rule {
  width: 64px; height: 1px; background: var(--gold); position: relative; border: 0;
}
.rule::after {
  content: '❖';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.72);
  color: var(--gold); background: inherit;
  font-size: 12px; background: transparent;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--plum);
  color: var(--plum);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--plum); color: var(--ivory); }
.btn.solid { background: var(--plum); color: var(--ivory); }
.btn.solid:hover { background: var(--plum-deep); border-color: var(--plum-deep); }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.gold:hover { background: var(--gold); color: var(--espresso); }
.btn.onDark { border-color: var(--gold); color: var(--gold-soft); }
.btn.onDark:hover { background: var(--gold); color: var(--espresso); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .monogram {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 26px; color: var(--plum);
  padding-top: 2px;
}
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.brand .wordmark .name {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--plum); font-weight: 500;
}
.brand .wordmark .tag {
  font-family: var(--script); font-size: 16px; color: var(--rose); margin-top: 1px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--plum); }
.site-nav a.active { color: var(--plum); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--plum); line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 8px 0 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 24px; width: 100%; }
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 151, 157, 0.16), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(197, 164, 109, 0.14), transparent 60%),
    var(--ivory);
  overflow: hidden;
}
.hero .inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 96px;
}
.hero .kicker { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: 0.13em; text-transform: uppercase;
}
.hero .tagline { font-size: clamp(34px, 4.4vw, 48px); margin: 14px 0 6px; }
.hero .genre {
  font-size: 13px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 26px;
}
.hero p.promise { max-width: 54ch; color: var(--ink); margin-bottom: 34px; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .cover-side { display: flex; justify-content: center; }
.hero .cover-frame {
  position: relative; width: min(340px, 80vw);
  transform: rotate(1.5deg);
}
.hero .cover-frame::before {
  content: ''; position: absolute; inset: -18px;
  border: 1px solid var(--gold); opacity: 0.55; transform: rotate(-2.2deg);
}
.hero .cover-frame img, .hero .cover-frame svg {
  width: 100%; box-shadow: 0 30px 60px -18px rgba(53, 45, 43, 0.45);
}
.hero .cover-caption {
  text-align: center; margin-top: 26px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--plum);
}

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 48px; }
  .hero .cover-side { order: -1; }
}

/* ---------- generic sections ---------- */

.section { padding: 96px 0; }
.section.tint { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section.dark {
  background:
    radial-gradient(1000px 400px at 90% 0%, rgba(197, 164, 109, 0.12), transparent 55%),
    linear-gradient(160deg, var(--plum-ink), var(--plum-deep));
  color: var(--ivory);
}
.section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.dark p { color: rgba(247, 241, 232, 0.85); }
.section.dark .script { color: var(--rose-soft); }

/* ---------- featured book strip ---------- */

.feature-band { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.feature-band .cover { box-shadow: 0 24px 48px -16px rgba(53, 45, 43, 0.5); }
.feature-band h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: 0.1em; text-transform: uppercase; margin: 12px 0 6px; }
.feature-band .script { font-size: clamp(26px, 3vw, 32px); display: block; margin-bottom: 18px; }
.feature-band p { margin-bottom: 16px; max-width: 60ch; }
@media (max-width: 820px) { .feature-band { grid-template-columns: 1fr; } .feature-band .cover { max-width: 260px; } }

/* ---------- series cards (home) ---------- */

.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.series-grid > * { min-width: 0; }
@media (max-width: 820px) { .series-grid { grid-template-columns: 1fr; } }

.series-card {
  display: block; position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 40px 40px 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.series-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -20px rgba(53, 45, 43, 0.35); }
.series-card .overline { display: block; margin-bottom: 10px; }
.series-card h3 { font-size: 26px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.series-card .script { font-size: 24px; display: block; margin-bottom: 16px; }
.series-card p { font-size: 15.5px; margin-bottom: 22px; }
.series-card .covers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.series-card .covers img, .series-card .covers svg {
  width: 72px; height: 108px; object-fit: cover;
  box-shadow: 0 10px 20px -8px rgba(53, 45, 43, 0.45);
}
.series-card .more {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}

/* ---------- book cards / grids ---------- */

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 28px; }

.book-card { text-align: center; }
.book-card .cover-wrap { position: relative; margin-bottom: 18px; }
.book-card .cover-wrap img, .book-card .cover-wrap svg {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 16px 32px -12px rgba(53, 45, 43, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-card:hover .cover-wrap img, .book-card:hover .cover-wrap svg {
  transform: translateY(-5px);
  box-shadow: 0 24px 42px -14px rgba(53, 45, 43, 0.55);
}
.book-card .badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: var(--espresso); padding: 4px 10px;
}
.book-card .badge.coming { background: var(--rose); color: #fff; }
.book-card .series-line { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.book-card h3 { font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.book-card .hook { font-size: 14px; color: var(--ink); opacity: 0.85; line-height: 1.55; }

.section.dark .book-card h3 a { color: var(--ivory); }
.section.dark .book-card .hook { color: rgba(247, 241, 232, 0.8); }

/* ---------- search / filter ---------- */

.search-tools { max-width: 720px; margin: 0 auto 56px; }
.search-tools .search-box { position: relative; margin-bottom: 24px; }
.search-tools input[type="search"] {
  width: 100%; padding: 16px 22px 16px 54px;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline);
  outline: none;
}
.search-tools input[type="search"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 164, 109, 0.2); }
.search-tools .search-box::before {
  content: ''; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23633C52' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-chips button {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 20px; cursor: pointer;
  background: transparent; color: var(--plum);
  border: 1px solid var(--hairline);
  transition: all 0.2s ease;
}
.filter-chips button:hover { border-color: var(--plum); }
.filter-chips button.active { background: var(--plum); color: var(--ivory); border-color: var(--plum); }
.result-count { text-align: center; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 34px; }
.no-results { text-align: center; padding: 60px 0; }
.no-results .script { font-size: 34px; display: block; margin-bottom: 10px; }

/* ---------- series page ---------- */

.series-hero { text-align: center; padding: 84px 0 64px; }
.series-hero h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: 0.14em; text-transform: uppercase; }
.series-hero .script { display: block; font-size: clamp(30px, 4vw, 42px); margin: 14px 0 26px; }
.series-hero .concept { max-width: 68ch; margin: 0 auto 14px; }

.series-books { display: flex; flex-direction: column; gap: 72px; }
.series-book { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: center; }
.series-book:nth-child(even) { grid-template-columns: 1fr 240px; }
.series-book:nth-child(even) .cover-col { order: 2; }
.series-book .cover-col img, .series-book .cover-col svg {
  width: 100%; box-shadow: 0 20px 40px -14px rgba(53, 45, 43, 0.5);
}
.series-book .num { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.series-book h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.series-book .hook { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--plum-deep); margin-bottom: 16px; }
.series-book p.excerpt { margin-bottom: 22px; max-width: 62ch; }
@media (max-width: 760px) {
  .series-book, .series-book:nth-child(even) { grid-template-columns: 1fr; }
  .series-book:nth-child(even) .cover-col { order: 0; }
  .series-book .cover-col { max-width: 240px; }
}

/* ---------- book page ---------- */

.book-hero { padding: 72px 0 40px; }
.book-hero .grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.book-hero .cover-col img, .book-hero .cover-col svg {
  width: 100%; box-shadow: 0 28px 56px -18px rgba(53, 45, 43, 0.5);
}
.book-hero .crumbs { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; color: var(--rose); }
.book-hero .crumbs a { color: var(--rose); }
.book-hero .crumbs a:hover { color: var(--plum); }
.book-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 8px; }
.book-hero .book-tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--plum-deep); margin: 4px 0 24px; }
.book-hero .status-line { margin-bottom: 28px; }
.book-hero .status-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 14px; background: var(--gold); color: var(--espresso);
}
.book-hero .status-pill.coming { background: var(--rose); color: #fff; }
.book-hero .blurb p { margin-bottom: 16px; max-width: 62ch; }
.book-hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .book-hero .grid { grid-template-columns: 1fr; gap: 44px; }
  .book-hero .cover-col { max-width: 300px; margin: 0 auto; }
}

.characters { padding: 56px 0 8px; }
.characters .cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; }
.character {
  background: var(--paper); border: 1px solid var(--hairline); padding: 30px 32px;
}
.character h3 { font-size: 20px; letter-spacing: 0.06em; margin-bottom: 8px; }
.character p { font-size: 15px; }

.also-in { padding-top: 72px; }
.also-in h2 { text-align: center; font-size: 26px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 40px; }

/* ---------- about page ---------- */

.about-hero { padding: 84px 0 20px; text-align: center; }
.about-hero .medallion {
  width: 120px; height: 120px; margin: 0 auto 30px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 58px; color: var(--plum); padding-top: 6px;
  background: var(--paper);
}
.about-body { max-width: 68ch; margin: 0 auto; padding-bottom: 40px; }
.about-body p { margin-bottom: 22px; font-size: 17.5px; }
.about-body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 54px; line-height: 0.8;
  float: left; padding: 8px 10px 0 0; color: var(--plum);
}

/* ---------- news page ---------- */

.news-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.news-item { background: var(--paper); border: 1px solid var(--hairline); padding: 38px 42px; }
.news-item .date { margin-bottom: 10px; display: block; }
.news-item h3 { font-size: 22px; letter-spacing: 0.06em; margin-bottom: 12px; }
.news-item p { margin-bottom: 16px; }
.news-item a.more { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* ---------- newsletter ---------- */

.newsletter { text-align: center; }
.newsletter .script { display: block; font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.newsletter h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.newsletter p { max-width: 56ch; margin: 0 auto 34px; }
.newsletter form { display: flex; gap: 0; max-width: 520px; margin: 0 auto; }
.newsletter input[type="email"] {
  flex: 1; padding: 16px 20px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--gold); border-right: none; background: rgba(247, 241, 232, 0.08);
  color: var(--ivory); outline: none;
}
.newsletter input[type="email"]::placeholder { color: rgba(247, 241, 232, 0.5); }
.newsletter input[type="email"]:focus { background: rgba(247, 241, 232, 0.14); }
.newsletter button { border-left: none; }
.newsletter .form-note { font-size: 13px; margin-top: 16px; color: rgba(247, 241, 232, 0.6); }
.newsletter .form-msg { margin-top: 18px; font-size: 15px; color: var(--gold-soft); min-height: 24px; }
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; gap: 12px; }
  .newsletter input[type="email"] { border-right: 1px solid var(--gold); }
}

/* ---------- footer ---------- */

.site-footer { background: var(--espresso); color: rgba(247, 241, 232, 0.75); padding: 64px 0 40px; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px 44px;
}
.site-footer .monogram {
  width: 54px; height: 54px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--script); font-size: 30px; color: var(--gold-soft); margin-bottom: 18px; padding-top: 3px;
}
.site-footer .name { font-family: var(--serif); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); margin-bottom: 6px; }
.site-footer .tag { font-family: var(--script); font-size: 20px; color: var(--rose-soft); margin-bottom: 16px; }
.site-footer h4 { font-size: 12px; font-weight: 700; font-family: var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(247, 241, 232, 0.75); font-size: 15px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .legal {
  border-top: 1px solid rgba(247, 241, 232, 0.12);
  max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(247, 241, 232, 0.45);
}
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- universe band ---------- */

.universe p { max-width: 68ch; margin: 0 auto 18px; text-align: center; }

/* ---------- misc ---------- */

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.hidden { display: none !important; }
