/* Lucy Merrow — author site
   Brand: Cover Brand Brief v3 (2026-10-09) — flat parchment, navy, gold rule + scrollwork.
   Fonts: self-hosted SIL OFL (licenses in /fonts), no third-party requests. */

@font-face { font-family: "Dancing Script"; src: url("../fonts/DancingScript.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/PlayfairDisplay.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --parchment: #f9ebd1;
  --parchment-light: #fcf5e8;
  --navy: #1b2a4a;
  --navy-soft: #34405c;
  --gold: #a9853c;
  --gold-light: #d7bd84;
  --blue-accent: #6f9bd1;   /* Margins sash */
  --rose-accent: #d9776b;   /* Three Weeks sash */
  --script: "Dancing Script", cursive;
  --display: "Playfair Display", Georgia, serif;
  --body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--gold-light); background: var(--parchment-light); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--display); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: 1.15rem; text-decoration: none; padding: 14px 0;
}
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { font-family: var(--display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--gold); }

/* ---------- framed panel (echoes the cover border) ---------- */
.frame {
  position: relative;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  margin: 8px;
}
.frame::before, .frame::after, .frame > .c3, .frame > .c4 {
  content: ""; position: absolute; width: 46px; height: 46px;
  background: url("../images/corner.svg") no-repeat center / contain;
}
.frame::before { top: -14px; left: -14px; }
.frame::after  { top: -14px; right: -14px; transform: scaleX(-1); }
.frame > .c3   { bottom: -14px; left: -14px; transform: scaleY(-1); }
.frame > .c4   { bottom: -14px; right: -14px; transform: scale(-1, -1); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .frame { padding: 48px 24px 44px; background: var(--parchment-light); }
.hero-logo { width: 220px; margin: 0 auto 10px; }
.tagline { font-family: var(--script); font-weight: 600; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; margin: 18px 0 8px; }
.lede { max-width: 34em; margin: 0 auto 26px; font-size: 1.3rem; }

.btn {
  display: inline-block; background: var(--navy); color: var(--parchment-light);
  font-family: var(--display); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 15px 28px; border: 1px solid var(--navy); border-radius: 2px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--parchment-light); border-color: var(--navy); }

/* ---------- section headings ---------- */
section { padding: 48px 0; }
.eyebrow { font-family: var(--display); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 6px; }
h2 { font-family: var(--script); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.1; text-align: center; margin: 0 0 8px; }
.rule { display: block; width: 180px; height: 18px; margin: 4px auto 34px; background: url("../images/rule.svg") no-repeat center / contain; }
h3 { font-family: var(--script); font-weight: 600; font-size: 2.2rem; line-height: 1.1; margin: 0 0 4px; }
.subtitle { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 0 0 18px; }

/* ---------- books ---------- */
.book { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 44px; align-items: start; margin: 0 0 56px; }
.book:last-child { margin-bottom: 0; }
.book .cover img { box-shadow: 0 10px 28px rgba(27, 42, 74, .22); border-radius: 2px; }
.book p { margin: 0 0 14px; }
.hook { font-style: italic; font-size: 1.4rem; }
.badge {
  display: inline-block; font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid currentColor; border-radius: 2px; margin-bottom: 14px;
}
.badge.free { color: #3f6a9e; }
.badge.soon { color: #a8483d; }
.book .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.promise { font-style: italic; color: var(--navy-soft); }

/* ---------- newsletter band ---------- */
.band { background: var(--navy); color: var(--parchment-light); text-align: center; }
.band h2 { color: var(--parchment-light); }
.band .eyebrow { color: var(--gold-light); }
.band p { max-width: 32em; margin: 0 auto 24px; }
.band .btn { background: var(--parchment-light); color: var(--navy); border-color: var(--parchment-light); }
.band .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; max-width: 860px; margin: 0 auto; }
.about p { margin: 0 0 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--gold-light); padding: 34px 0 40px; text-align: center; font-size: 1.05rem; }
.site-footer p { margin: 4px 0; }
.site-footer .small { font-size: .95rem; color: var(--navy-soft); }

/* ---------- long-form page (privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-family: var(--script); font-weight: 600; font-size: clamp(2.4rem, 6vw, 3.4rem); text-align: center; margin: 0 0 6px; }
.prose p { margin: 0 0 16px; }

@media (max-width: 720px) {
  body { font-size: 1.15rem; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; gap: 16px; }
  .book, .about { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .book .cover, .about img { max-width: 240px; margin: 0 auto; }
  .book .actions { justify-content: center; }
  .hero { padding-top: 32px; }
  .hero .frame { padding: 36px 16px; }
}
.prose .updated { text-align: center; color: var(--navy-soft); margin-bottom: 28px; }
.prose h2.policy { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-align: left; letter-spacing: .02em; margin: 30px 0 8px; }
