/* styles.css — Sage & Elle brand site.
 * Design language: warm watercolor palette (sea, sand, coral, a pop of grape)
 * with an elegant gold + serif brand layer to match the Sage & Elle logo. */

:root {
  --sea:        #4a83a6;
  --sea-deep:   #2f5d79;
  --sand:       #f3e7d3;
  --shell:      #fbf6ec;
  --coral:      #e98b6b;
  --coral-deep: #d96f4f;
  --grape:      #7a5ba6;
  --gold:       #cda13f;
  --gold-deep:  #b1862b;
  --ink:        #2c2a2e;
  --ink-soft:   #5b5660;
  --white:      #fffdf8;

  --radius:     18px;
  --shadow:     0 10px 30px rgba(47, 93, 121, 0.16);
  --shadow-sm:  0 4px 14px rgba(47, 93, 121, 0.12);

  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans:  "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw:  1100px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.65;
}

img { max-width: 100%; }
a { color: var(--sea-deep); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost { background: transparent; color: var(--sea-deep); border-color: var(--sea); }
.btn--ghost:hover { background: var(--sea); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---- Header / nav -------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 91, 166, 0.12);
}
.nav__brand { line-height: 0; margin-right: auto; }
.nav__brand img { height: 46px; width: auto; }

.nav__links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}
.nav__link:hover { color: var(--sea-deep); background: rgba(74, 131, 166, 0.10); }
.nav__link--active { color: var(--gold-deep); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--sea-deep); border-radius: 2px; }

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .site-nav.nav--open .nav__links { max-height: 26rem; padding-top: 0.5rem; }
  .nav__link { padding: 0.65rem 0.5rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 50% -20%, var(--coral) 0%, rgba(233,139,107,0) 48%),
    linear-gradient(180deg, var(--shell), var(--sand));
}
.hero__kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin: 0 0 0.8rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  color: var(--sea-deep);
}
.hero__lede {
  max-width: 46ch;
  margin: 1.1rem auto 1.8rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.hero__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---- Section primitives -------------------------------------------------- */
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--sea-deep);
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.section-title--left { text-align: left; margin-top: 2.4rem; }
.section-lede { max-width: 60ch; margin: 0.6rem auto 0; text-align: center; color: var(--ink-soft); }

.band { background: var(--white); border-block: 1px solid rgba(122,91,166,0.10); }
.band__inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem; }

.featured { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.featured__more { text-align: center; margin: 1.5rem 0 0; }

/* ---- Values -------------------------------------------------------------- */
.values { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.value {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  text-align: center;
  border: 1px solid rgba(122,91,166,0.10);
}
.value__icon { font-size: 2rem; }
.value h3 { font-family: var(--serif); color: var(--sea-deep); margin: 0.6rem 0 0.4rem; }
.value p { margin: 0; color: var(--ink-soft); }

/* ---- Page head (interior pages) ------------------------------------------ */
.page-head {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 2rem;
  background: linear-gradient(180deg, var(--sand), var(--shell));
}
.page-head__title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--sea-deep); margin: 0; }
.page-head__lede { max-width: 54ch; margin: 0.8rem auto 0; color: var(--ink-soft); }

/* ---- Books grid + cards -------------------------------------------------- */
.catalog { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem; }
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}
.book-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(122, 91, 166, 0.10);
}
.book-card__cover {
  position: relative;
  margin: 0;
  background: linear-gradient(160deg, var(--sand), var(--shell));
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.25rem 0;
}
.book-card__cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-sm); }

/* Placeholder cover when no art is available */
.cover-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--sea), var(--grape));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.cover-ph__mark { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.2em; opacity: 0.85; }
.cover-ph__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-top: 0.4rem; }
.cover-ph__loc { font-size: 0.85rem; opacity: 0.85; margin-top: 0.5rem; }

.book-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.book-card__body { padding: 1.25rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.book-card__title { font-family: var(--serif); color: var(--sea-deep); font-size: 1.45rem; margin: 0; line-height: 1.15; }
.book-card__meta { margin: 0; color: var(--gold-deep); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.book-card__subtitle { margin: 0; color: var(--coral-deep); font-style: italic; }
.book-card__blurb { margin: 0.4rem 0 1.1rem; color: var(--ink-soft); flex: 1; }

/* ---- Buy area + format selector ------------------------------------------ */
.buy { position: relative; }
.buy__toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--coral);
  border: none; border-radius: 999px; padding: 0.65rem 1.35rem;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.1s ease;
}
.buy__toggle:hover { background: var(--coral-deep); }
.buy__toggle:active { transform: translateY(1px); }
.buy__toggle:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.buy__chevron {
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid currentColor; transition: transform 0.18s ease;
}
.buy--open .buy__chevron { transform: rotate(180deg); }

.formats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; animation: formats-in 0.16s ease both; }
@keyframes formats-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.format-btn {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  text-decoration: none; background: var(--white); color: var(--sea-deep);
  border: 2px solid var(--sea); border-radius: 12px; padding: 0.5rem 0.9rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.format-btn:hover { background: var(--sea); color: #fff; }
.format-btn:active { transform: translateY(1px); }
.format-btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.format-btn--ebook { border-color: var(--grape); color: var(--grape); }
.format-btn--ebook:hover { background: var(--grape); color: #fff; }
.format-btn__label { font-weight: 600; }
.format-btn__price { font-size: 0.9em; opacity: 0.8; }

.buy__soon {
  display: inline-block; font-family: var(--serif); color: var(--ink-soft);
  background: var(--sand); border-radius: 999px; padding: 0.5rem 1.1rem;
}

/* ---- Peek gallery -------------------------------------------------------- */
.peek { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 3.5rem; }
.peek .section-title { margin-bottom: 1.5rem; }
.peek__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.peek__item { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(122,91,166,0.10); }
.peek__item img { display: block; width: 100%; height: auto; background: var(--sand); }
.peek__item figcaption { padding: 0.85rem 1rem 1.1rem; color: var(--ink-soft); font-style: italic; font-size: 0.95rem; }

/* ---- Prose pages --------------------------------------------------------- */
.prose { max-width: 70ch; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; font-size: 1.05rem; }
.prose p { color: var(--ink); }
.prose strong { color: var(--sea-deep); }
.prose__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }

.pull-quote {
  margin: 2rem 0; padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--gold);
  background: var(--white); border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--sea-deep);
}

.callout {
  background: var(--white); border: 1px solid rgba(122,91,166,0.12);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 1.8rem 0;
  box-shadow: var(--shadow-sm);
}
.callout--gold { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, var(--white)); }
.callout h2 { font-family: var(--serif); color: var(--sea-deep); margin: 0 0 0.5rem; }
.callout p { margin: 0.4rem 0; }

.ticks { list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; }
.ticks li { position: relative; padding-left: 1.8rem; margin: 0.5rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.feature { background: var(--white); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,91,166,0.10); }
.feature h3 { font-family: var(--serif); color: var(--sea-deep); margin: 0 0 0.4rem; }
.feature p { margin: 0; color: var(--ink-soft); }

.factsheet { margin: 1rem 0 2rem; }
.factsheet > div { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(122,91,166,0.12); }
.factsheet dt { font-weight: 700; color: var(--sea-deep); }
.factsheet dd { margin: 0; color: var(--ink-soft); }

.assets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.2rem; margin: 1.2rem 0 1rem; }
.asset { text-decoration: none; color: var(--ink); background: var(--white); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,91,166,0.10); display: flex; flex-direction: column; gap: 0.6rem; }
.asset img { border-radius: 8px; }
.asset__logo { background: var(--shell); border-radius: 8px; padding: 1rem; display: flex; justify-content: center; }
.asset span:last-child { font-weight: 600; color: var(--sea-deep); font-size: 0.9rem; }

/* ---- Blog / excerpts ----------------------------------------------------- */
.excerpt { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(122,91,166,0.10); margin-bottom: 1.6rem; }
.excerpt h2 { font-family: var(--serif); color: var(--sea-deep); margin: 0 0 0.6rem; }
.excerpt--muted { background: var(--sand); }
.excerpt__intro { color: var(--ink-soft); }
.abc { list-style: none; padding: 0; margin: 1rem 0; }
.abc li { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 1px dashed rgba(122,91,166,0.18); }
.abc__letter { font-family: var(--serif); font-size: 1.4rem; color: var(--grape); width: 1.4rem; flex: none; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: #241f1b; color: #cfc7ba; margin-top: 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3.2rem 1.25rem 2rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 2.2rem;
}

.footer__logo { width: 200px; max-width: 70%; display: block; }
.footer__culture { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; margin: 0.6rem 0 0.5rem; }
.footer__blurb { margin: 0 0 1.1rem; color: #a59c8e; font-size: 0.92rem; max-width: 32ch; }

.footer__cols { display: contents; }            /* let columns sit in the parent grid */
.footer__heading {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--gold); margin: 0 0 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col a { color: #ddd5c8; text-decoration: none; line-height: 2.2; font-family: var(--serif); font-size: 1.02rem; }
.footer__col a:hover { color: #fff; }
.footer__col--cta .btn { margin-top: 0.1rem; }

.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px; color: #ddd5c8; text-decoration: none; font-weight: 700; font-size: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer__social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.footer__legal { text-align: center; padding: 1.3rem; margin: 0; color: #8a8174; font-size: 0.83rem; border-top: 1px solid rgba(255,255,255,0.10); }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
}

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