/* ============================================================
   Carolyn McDonald — carolynmcdonaldja.com
   Brand system drawn from the Dolly House with the Devil cover:
   deep rose, plum dusk, gilded lettering, and the lightning seam.
   Built by Ezy Web Pro.
   ============================================================ */

:root {
  --rose: #c63f6b;
  --rose-deep: #a32950;
  --plum: #3e0f27;
  --plum-2: #571a38;
  --gold: #c6942f;
  --gold-2: #e7c36b;
  --blush: #faf0f3;
  --cream: #fffbf7;
  --ink: #33121f;
  --muted: #7d5f6b;
  --line: #efdbe2;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(62, 15, 39, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; }
a:hover { color: var(--rose); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--plum);
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.h-gold em, h1 em, h2 em { font-style: italic; color: var(--rose); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.lead { font-size: 1.16rem; color: var(--muted); }
.section { padding: 84px 0; }
.section--blush { background: var(--blush); }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.center .eyebrow::before { display: none; }

/* ---- the seam: gilded lightning divider (signature) ---- */
.seam {
  height: 26px;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.seam svg { width: min(560px, 80vw); height: 18px; display: block; }
.seam--onplum { background: var(--plum); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--rose { background: var(--rose); color: #fff; box-shadow: 0 8px 22px rgba(198, 63, 107, 0.35); }
.btn--rose:hover { background: var(--rose-deep); color: #fff; }
.btn--gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 55%, var(--gold) 100%);
  color: var(--plum);
  box-shadow: 0 8px 22px rgba(198, 148, 47, 0.35);
}
.btn--gold:hover { color: var(--plum); filter: brightness(1.05); }
.btn--ghost { border-color: var(--rose); color: var(--rose-deep); background: transparent; }
.btn--ghost:hover { background: var(--rose); color: #fff; }
.btn--ghost-light { border-color: var(--gold-2); color: var(--gold-2); background: transparent; }
.btn--ghost-light:hover { background: var(--gold-2); color: var(--plum); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---- header ---- */
.topline { height: 4px; background: linear-gradient(90deg, var(--rose), var(--gold-2), var(--rose)); }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.5rem; color: var(--plum); letter-spacing: 0.01em;
}
.brand .brand-name span { color: var(--gold); }
.brand .brand-tag {
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a.nav-link {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a.nav-link:hover { color: var(--rose-deep); }
.site-nav a.nav-link[aria-current="page"] { color: var(--rose-deep); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--rose);
  border-radius: 10px; padding: 7px 11px; cursor: pointer; color: var(--rose-deep);
  font-weight: 700; font-size: 0.9rem;
}

/* ---- hero ---- */
.hero { background: radial-gradient(1100px 600px at 85% -10%, #f6dbe4 0%, var(--blush) 45%, var(--cream) 100%); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr auto 0.85fr;
  gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero-seam { width: 3px; align-self: stretch; position: relative; }
.hero-seam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy h1 { margin: 6px 0 18px; }
.hero-copy .lead { margin-bottom: 28px; max-width: 34rem; }
.arch {
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  outline: 1px solid var(--gold-2);
  box-shadow: var(--shadow);
  background: #fff;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { max-width: 380px; margin-left: auto; }

/* ---- cards ---- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 6px 24px rgba(62, 15, 39, 0.06);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { color: var(--plum); }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card .btn { align-self: flex-start; }
.card--feature { border-top-color: var(--rose); }

/* ---- dark plum band ---- */
.band-dark { background: linear-gradient(150deg, var(--plum) 0%, var(--plum-2) 100%); color: #f6e4ea; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--gold-2); }
.band-dark .lead { color: #e8c9d4; }
.band-dark a { color: var(--gold-2); }

/* ---- testimonials ---- */
.quote {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(231, 195, 107, 0.35);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.quote p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.quote footer { margin-top: 16px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }

/* ---- lists ---- */
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { padding-left: 30px; position: relative; color: var(--ink); }
.tick-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-size: 0.95rem;
}
.tick-list--muted li { color: var(--muted); font-size: 0.97rem; }

/* ---- panels / pricing ---- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow);
}
.panel--gold { border: 2px solid var(--gold-2); position: relative; }
.panel--gold::before {
  content: attr(data-flag);
  position: absolute; top: -14px; left: 28px;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: var(--plum); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--rose-deep); }
.price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; }
.price-note { font-size: 0.9rem; color: var(--muted); }

/* ---- detail rows / definition blocks ---- */
.def { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.def:last-child { border-bottom: none; }
.def dt { font-weight: 700; color: var(--plum); font-size: 0.95rem; letter-spacing: 0.03em; }
.def dd { color: var(--muted); font-size: 0.97rem; }

/* ---- notice boxes ---- */
.notice {
  border-left: 4px solid var(--gold);
  background: var(--blush);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  font-size: 0.95rem; color: var(--ink);
}
.notice--crisis { border-left-color: var(--rose); }
.notice strong { color: var(--plum); }

/* ---- forms ---- */
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--plum); letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(198, 63, 107, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-msg { font-size: 0.92rem; color: var(--rose-deep); min-height: 1.2em; }
.span-2 { grid-column: 1 / -1; }

/* contact selector chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.chip.is-active { background: var(--rose); border-color: var(--rose); color: #fff; }
.contact-form { display: none; }
.contact-form.is-active { display: block; }

/* ---- page hero (interior) ---- */
.page-hero {
  background: radial-gradient(900px 400px at 15% -20%, #f6dbe4 0%, var(--blush) 55%, var(--cream) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 6px; }
.page-hero .lead { margin-top: 14px; max-width: 46rem; }

/* ---- book page ---- */
.book-hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.book-cover-img { max-width: 400px; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(62, 15, 39, 0.35)); }

/* ---- Ezy Cart storefront overrides (brand skin) ---- */
.ezy-store { font-family: var(--font-body); color: var(--ink); }
.ezy-store .ezy-btn {
  background: var(--rose); color: #fff; border: none; border-radius: 999px;
  padding: 13px 26px; font-weight: 700; font-family: var(--font-body); font-size: 0.95rem;
  cursor: pointer; transition: background 0.15s ease;
}
.ezy-store .ezy-btn:hover { background: var(--rose-deep); }
.ezy-store .ezy-btn--sm { padding: 9px 18px; }
.ezy-store .ezy-name { font-family: var(--font-display); color: var(--plum); }
.ezy-store .ezy-price { color: var(--rose-deep); font-weight: 700; font-size: 1.2rem; }
.ezy-store .ezy-strike { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 8px; }
.ezy-store input, .ezy-store select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: var(--font-body); font-size: 1rem;
}
.ezy-store .ezy-field { display: grid; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--plum); margin-bottom: 14px; }
.ezy-store .ezy-summary { background: var(--blush); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.ezy-store .ezy-summary h3 { font-family: var(--font-display); margin-bottom: 12px; }
.ezy-store .ezy-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.ezy-store .ezy-grand { font-weight: 700; color: var(--plum); border-bottom: none; font-size: 1.05rem; }
.ezy-store .ezy-checkout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: start; }
.ezy-store .ezy-error { background: #fdecec; border: 1px solid #f2b8b8; color: #8c2626; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.ezy-store .ezy-ok { color: #1e7d4f; font-weight: 600; }
.ezy-store .ezy-muted { color: var(--muted); }
.ezy-store .ezy-empty, .ezy-store .ezy-done { background: var(--blush); border-radius: var(--radius); padding: 40px; text-align: center; }
.ezy-store .ezy-done h2 { font-family: var(--font-display); color: var(--plum); margin-bottom: 10px; }
.ezy-store .ezy-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.ezy-flash {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--plum); color: var(--gold-2); font-weight: 700;
  padding: 12px 26px; border-radius: 999px; z-index: 99; box-shadow: var(--shadow);
}

/* ---- footer ---- */
.site-foot { background: var(--plum); color: #dcb9c6; font-size: 0.93rem; }
.site-foot .foot-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 64px 0 44px;
}
.site-foot h4 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px;
}
.site-foot ul { list-style: none; display: grid; gap: 9px; }
.site-foot a { color: #e9cdd8; }
.site-foot a:hover { color: var(--gold-2); }
.foot-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.foot-brand span { color: var(--gold-2); }
.foot-mission { max-width: 30rem; }
.foot-news input {
  width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(231,195,107,0.4);
  color: #fff; border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); margin-bottom: 10px;
}
.foot-news input::placeholder { color: #c39aa9; }
.foot-crisis {
  border-top: 1px solid rgba(231, 195, 107, 0.25);
  padding: 22px 0; font-size: 0.87rem; color: #cfa8b7;
}
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: space-between; align-items: center; font-size: 0.83rem; color: #b78a9b;
}
.foot-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---- legal pages ---- */
.legal h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 0.98rem; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-seam { display: none; }
  .hero-photo { margin: 0 auto; max-width: 320px; }
  .book-hero .wrap { grid-template-columns: 1fr; }
  .site-foot .foot-main { grid-template-columns: 1fr 1fr; }
  .ezy-store .ezy-checkout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--2, .form-grid--2 { grid-template-columns: 1fr; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
  .site-foot .foot-main { grid-template-columns: 1fr; }
}
