/* =========================================================
   Christina Carlsen – Author Website
   A warm, literary, quietly joyful static site.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream:        #FAF7F2;
  --cream-deep:   #F4EFE6;
  --linen:        #F0EBE1;
  --charcoal:     #2E2E2E;
  --charcoal-60:  rgba(46, 46, 46, 0.60);
  --charcoal-30:  rgba(46, 46, 46, 0.30);
  --charcoal-12:  rgba(46, 46, 46, 0.12);
  --rose:         #D4907A;
  --rose-soft:    #E2AB97;
  --sage:         #8FAF8C;
  --amber:        #E8B560;

  --font-serif:    'Playfair Display', 'Lora', Georgia, serif;
  --font-body:     'Source Serif 4', 'Crimson Pro', 'Source Serif Pro', Georgia, serif;
  --font-script:   'Caveat', 'Patrick Hand', cursive;

  --container-xl:  1320px;
  --container-lg:  1120px;
  --container-md:  920px;
  --container-sm:  680px;

  --ease-out:      cubic-bezier(.2,.7,.2,1);
  --ease-in-out:   cubic-bezier(.65,.05,.36,1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (max-width: 575.98px) {
  html, body { font-size: 17px; line-height: 1.7; }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color .25s var(--ease-out), opacity .25s var(--ease-out);
}
a:hover { color: var(--rose); }

p { margin: 0 0 1.2em; }

::selection { background: var(--rose); color: var(--cream); }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ---------- Typography ---------- */
.heading,
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-script);
  color: var(--sage);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--sage);
  display: inline-block;
}

.section-label {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--sage);
  text-transform: none;
  letter-spacing: .01em;
}

.muted { color: var(--charcoal-60); }

/* ---------- Layout ---------- */
.container-xl { max-width: var(--container-xl); margin: 0 auto; padding: 0 32px; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 32px; }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 32px; }

@media (max-width: 575.98px) {
  .container-xl, .container-lg, .container-md, .container-sm { padding: 0 22px; }
}

section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
section + section { border-top: 1px solid var(--charcoal-12); }

.section-tight { padding: clamp(60px, 8vw, 110px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease-out),
              color .35s var(--ease-out),
              border-color .35s var(--ease-out),
              transform .35s var(--ease-out);
  text-decoration: none;
  background: transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
}

.btn .btn-arrow {
  width: 18px; height: 12px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform .35s var(--ease-out);
}

/* Universal arrow sizing so it always sits inline with its label */
.btn-arrow,
.btn-text .btn-arrow,
.btn-text svg {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  display: inline-block;
}

.btn:hover .btn-arrow { transform: translateX(6px); }

.btn-primary {
  background: var(--rose);
  color: var(--cream);
  border-color: var(--rose);
}
.btn-primary:hover { background: #c47e69; border-color: #c47e69; color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

.btn-text {
  padding: 6px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  color: var(--charcoal);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}
.btn-text:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--charcoal-12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand .brand-mark {
  font-family: var(--font-script);
  color: var(--rose);
  font-size: 1.6rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width .35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--rose); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px 0 8px 12px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.nav-toggle .bars {
  display: inline-flex; flex-direction: column; gap: 5px;
}
.nav-toggle .bars span {
  width: 26px; height: 1.5px; background: var(--charcoal);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
}
.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile overlay menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 60px;
  transform: translateY(-100%);
  transition: transform .65s var(--ease-in-out);
  pointer-events: none;
}
.nav-open .mobile-nav {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 500;
  display: inline-block;
  padding: 6px 0;
  color: var(--charcoal);
  line-height: 1.05;
}
.mobile-nav a:hover { color: var(--rose); }
.mobile-nav .mn-footer {
  margin-top: 50px;
  font-family: var(--font-script);
  color: var(--sage);
  font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
  width: 100%;
}
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}
.hero-title .row { display: block; overflow: hidden; padding: 0 0 .06em; }
.hero-title .row .word,
.hero-title .row > span { display: inline-block; }

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  color: var(--charcoal-60);
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 0 40px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-figure {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out);
}
.hero-figure .figure-mask {
  position: absolute; inset: 0;
  background: var(--cream);
  transform-origin: top;
  transform: scaleY(1);
  z-index: 2;
}
.hero-figure .figure-caption {
  position: absolute;
  bottom: 22px; left: 22px;
  color: var(--cream);
  font-family: var(--font-script);
  font-size: 1.25rem;
  z-index: 3;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .hero { padding-top: 130px; min-height: auto; }
  .hero-figure { aspect-ratio: 4 / 5; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid var(--charcoal-12);
  border-bottom: 1px solid var(--charcoal-12);
  background: var(--linen);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: var(--charcoal);
  will-change: transform;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rose);
  display: inline-block;
}

/* ---------- Featured books strip ---------- */
.featured-books {
  background: var(--cream);
}
.featured-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 70px;
}
.featured-head h2 { max-width: 14ch; margin: 0; }

.book-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 900px) {
  .book-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .featured-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 575.98px) {
  .book-strip { grid-template-columns: 1fr; }
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--charcoal);
}
.book-card .cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--linen);
  aspect-ratio: 2 / 3;
}
.book-card .cover-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1s var(--ease-out);
}
.book-card:hover .cover-wrap img { transform: scale(1.06); }
.book-card .age-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--cream);
  color: var(--charcoal);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: .04em;
}
.book-card .age-tag.soon { background: var(--sage); color: var(--cream); }
.book-card .age-tag.now  { background: var(--rose); color: var(--cream); }
.book-card h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.book-card .meta {
  display: flex; gap: 14px; align-items: center;
  font-size: .92rem; color: var(--charcoal-60);
}
.book-card .desc {
  font-size: .98rem;
  color: var(--charcoal-60);
  margin: 0;
}
.book-card .learn {
  margin-top: 4px;
  font-size: .92rem;
  color: var(--charcoal);
  display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--charcoal-30);
  align-self: flex-start;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.book-card:hover .learn { color: var(--rose); border-bottom-color: var(--rose); }
.book-card .learn svg,
.book-card .learn .btn-arrow {
  width: 16px;
  height: 10px;
  flex-shrink: 0;
  display: inline-block;
}

/* ---------- About teaser ---------- */
.about-teaser {
  background: var(--linen);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
.about-figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.about-body p { font-size: 1.1rem; line-height: 1.75; color: var(--charcoal); max-width: 52ch; }

/* ---------- Pull quote ---------- */
.pull-quote {
  background: var(--cream);
  text-align: center;
}
.pull-quote .quote {
  font-family: var(--font-script);
  color: var(--charcoal);
  font-size: clamp(2rem, 5.8vw, 4rem);
  line-height: 1.18;
  max-width: 24ch;
  margin: 0 auto;
}
.pull-quote .attrib {
  display: block;
  margin-top: 38px;
  font-family: var(--font-body);
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--cream-deep);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 36px; }
}
.newsletter h2 { max-width: 14ch; margin: 0 0 .4em; }
.newsletter p { color: var(--charcoal-60); max-width: 42ch; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-60);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  width: 100%;
  outline: none;
  transition: border-color .3s var(--ease-out);
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--charcoal-30); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 90px 0 36px;
}
.site-footer a { color: var(--cream); opacity: .8; }
.site-footer a:hover { opacity: 1; color: var(--rose-soft); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 70px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 575.98px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-top h4 {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .55;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
  border-top: 1px solid rgba(250,247,242,0.15);
  padding-top: 22px;
  flex-wrap: wrap; gap: 10px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: .65;
  margin-top: 6px;
  max-width: 28ch;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250,247,242,0.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 1;
}
.socials a:hover { background: var(--rose); border-color: var(--rose); }
.socials svg { width: 16px; height: 16px; fill: var(--cream); }

/* Footer dark form */
.footer-form { grid-template-columns: 1fr auto; margin-top: 24px; }
.footer-form .field label { color: rgba(250,247,242,.55); }
.footer-form .field input {
  color: var(--cream);
  border-bottom-color: rgba(250,247,242,.35);
}
.footer-form .field input::placeholder { color: rgba(250,247,242,.35); }
.footer-form .field input:focus { border-bottom-color: var(--rose-soft); }
.footer-btn { color: var(--cream) !important; border-color: rgba(250,247,242,.5) !important; }
.footer-btn:hover { background: var(--rose); border-color: var(--rose) !important; color: var(--cream) !important; }

/* ---------- Generic page hero ---------- */
.page-hero {
  padding: 180px 0 70px;
  background: var(--cream);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  margin: 0 0 18px;
  line-height: 1.04;
}
.page-hero .lede {
  max-width: 56ch;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--charcoal-60);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

/* ---------- About page extras ---------- */
.about-hero-figure {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 6px;
}
.about-hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.bio-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; gap: 44px; } }

.bio-grid .prose p {
  font-size: 1.15rem;
  line-height: 1.85;
  max-width: 56ch;
}
.bio-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.bio-list li {
  padding-left: 26px;
  position: relative;
  font-size: 1.05rem;
}
.bio-list li::before {
  content: ''; position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 1px;
  background: var(--rose);
}

/* ---------- Books page ---------- */
.book-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
  border-top: 1px solid var(--charcoal-12);
}
.book-group:first-of-type { border-top: 0; }
.book-group h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.book-group .group-meta {
  font-family: var(--font-script);
  color: var(--sage);
  font-size: 1.25rem;
  margin-top: 8px;
  display: block;
}
.book-group .group-desc { color: var(--charcoal-60); margin-top: 14px; max-width: 30ch; }
.book-group-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (max-width: 900px) {
  .book-group { grid-template-columns: 1fr; gap: 28px; }
  .book-group-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .book-group-items { grid-template-columns: 1fr; }
}

/* ---------- Individual book page ---------- */
.book-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .book-detail { grid-template-columns: 1fr; gap: 44px; } }
.book-detail .cover-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2/3;
  box-shadow: 0 30px 60px -30px rgba(46,46,46,0.4);
}
.book-detail .cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.themes-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; padding: 0; list-style: none; }
.themes-list li {
  padding: 6px 14px;
  border: 1px solid var(--charcoal-30);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--charcoal);
}
.purchase-list { display: flex; gap: 10px; flex-wrap: wrap; }
.purchase-list a {
  padding: 12px 20px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-size: .9rem;
}
.purchase-list a:hover { background: var(--charcoal); color: var(--cream); }

.educator-note {
  background: var(--linen);
  padding: 28px 32px;
  border-radius: 8px;
  font-style: italic;
  color: var(--charcoal);
  margin: 20px 0 28px;
  position: relative;
}
.educator-note::before {
  content: 'Educator’s note';
  display: block;
  font-style: normal;
  font-family: var(--font-script);
  color: var(--sage);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ---------- Educators page ---------- */
.edu-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 30px;
}
@media (max-width: 900px) { .edu-cols { grid-template-columns: 1fr; } }
.edu-card {
  background: var(--linen);
  padding: 30px 28px;
  border-radius: 8px;
}
.edu-card .ico {
  width: 42px; height: 42px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.edu-card .ico svg { width: 20px; height: 20px; stroke: var(--rose); fill: none; }
.edu-card h3 { font-size: 1.3rem; margin: 0 0 .35em; }
.edu-card p { color: var(--charcoal-60); margin: 0; font-size: .98rem; }

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr; } }
.download-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--charcoal-12);
  border-radius: 8px;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
  background: var(--cream);
}
.download-card:hover { background: var(--linen); border-color: var(--rose); }
.download-card .dc-title { font-family: var(--font-serif); font-size: 1.1rem; }
.download-card .dc-meta { display: block; font-size: .82rem; color: var(--charcoal-60); margin-top: 2px; }
.download-card svg { width: 22px; height: 22px; stroke: var(--rose); fill: none; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; gap: 40px; } }

.blog-card .blog-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 22px;
}
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-card .blog-meta {
  display: flex; gap: 18px; align-items: center;
  font-size: .82rem; color: var(--charcoal-60); margin-bottom: 12px;
  letter-spacing: .04em; text-transform: uppercase;
}
.blog-card .blog-meta .cat { color: var(--rose); }
.blog-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0 0 .4em; }
.blog-card p { color: var(--charcoal-60); margin: 0; }

.blog-categories {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 26px;
}
.blog-categories button,
.blog-categories a {
  border: 1px solid var(--charcoal-30);
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.blog-categories button.is-active,
.blog-categories button:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* Blog post article */
.post-article {
  max-width: 720px;
  margin: 0 auto;
}
.post-article h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 16px 0 24px;
}
.post-article .post-meta {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal-60);
  display: flex; gap: 16px;
}
.post-article .post-meta .cat { color: var(--rose); }
.post-article p { font-size: 1.12rem; line-height: 1.85; }
.post-article .post-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
  margin: 28px 0 36px;
}
.post-article .post-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info p { color: var(--charcoal-60); }
.contact-info a { border-bottom: 1px solid var(--charcoal-30); padding-bottom: 1px; }

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}
.contact-form .form-grid .full { grid-column: span 2; }
@media (max-width: 700px) { .contact-form .form-grid { grid-template-columns: 1fr; } .contact-form .form-grid .full { grid-column: span 1; } }

.events-list {
  display: grid; gap: 16px; margin-top: 30px;
}
.event-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--charcoal-12);
}
.event-item .date {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.event-item .ev-title { font-family: var(--font-serif); font-size: 1.2rem; }
.event-item .ev-loc { font-size: .9rem; color: var(--charcoal-60); display: block; margin-top: 4px; }
@media (max-width: 700px) {
  .event-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Reveal & animation utility classes ---------- */
.reveal-up { opacity: 0; transform: translateY(28px); }
.reveal-fade { opacity: 0; }
.split-mask { overflow: hidden; }
.split-mask .line,
.split-mask .word { will-change: transform; }

/* image reveal mask (curtain) */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal .curtain {
  position: absolute; inset: 0;
  background: var(--cream);
  transform-origin: top;
  z-index: 1;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transition: opacity .3s var(--ease-out);
  mix-blend-mode: multiply;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--rose);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--charcoal);
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s var(--ease-out), opacity .3s var(--ease-out);
}
.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--rose); }
@media (max-width: 1024px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Loader ---------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.page-loader .pl-inner {
  font-family: var(--font-script);
  color: var(--rose);
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}
.page-loader.is-done {
  opacity: 0;
  transition: opacity .8s var(--ease-out);
  pointer-events: none;
}

/* ---------- Thank you page ---------- */
.thanks-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 32px;
}
.thanks-wrap h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .35em; }
.thanks-wrap p { max-width: 48ch; margin: 0 auto 32px; color: var(--charcoal-60); font-size: 1.1rem; }

/* ---------- Misc utility ---------- */
.flow > * + * { margin-top: 1.2em; }
.mt-0  { margin-top: 0 !important; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.inline-block { display: inline-block; }
.text-center { text-align: center; }
.bg-linen { background: var(--linen); }
.max-14ch { max-width: 14ch; }
.max-18ch { max-width: 18ch; }
.rose-script { font-size: 1.6rem; color: var(--rose); }
.label-mt { display: inline-block; margin-top: 24px; }
.divider {
  height: 1px;
  background: var(--charcoal-12);
  width: 100%;
  margin: 0;
}

/* ---------- Print fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-up, .reveal-fade { opacity: 1 !important; transform: none !important; }
}
