:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1rem + 4vw, 4.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand palette from the Kind Swagg logo */
  --cream: #FFFAF3;
  --cream-2: #F7EFE3;
  --ink: #2F2721;
  --ink-soft: #5E5248;
  --line: #E6DACB;
  --blue: #3F5BDB;
  --violet: #7B4FCF;
  --violet-deep: #5B35A8;
  --pink: #E7A6CC;
  --gold: #B8862B;
  --gold-bright: #D4A24C;
  --orange: #E8602C;
  --teal: #A0E4D6;
  --sand: #CFC08C;
  --taupe: #6B5E4A;
  --night: #1E1830;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--violet) 50%, #D98BC0 100%);

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }
.wrap { width: min(var(--wrap), 100% - 2 * clamp(var(--space-5), 5vw, var(--space-12))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--ink); color: var(--cream); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: var(--space-2); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
section h2 { font-size: var(--text-2xl); font-weight: 900; margin-bottom: var(--space-5); }
.kicker {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: var(--space-3);
}
.kicker.light { color: var(--gold-bright); }
.section-lede { max-width: 62ch; color: var(--ink-soft); font-size: var(--text-base); margin-bottom: var(--space-12); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btns.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; color: var(--ink); background: transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
.btn.primary { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(91, 53, 168, .7); }
.btn.gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--night); }
.btn.gold:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn.small { min-height: 44px; padding: var(--space-2) var(--space-5); }
.text-link { font-weight: 700; color: var(--violet-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.text-link:hover { color: var(--orange); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand b { color: var(--gold); }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { text-decoration: none; font-weight: 500; font-size: var(--text-sm); color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--violet-deep); }
.nav .nav-cta { color: #fff; background: var(--violet-deep); padding: var(--space-2) var(--space-5); border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); width: 48px; height: 48px; padding: var(--space-3); cursor: pointer; }

/* Brand bar (from the Swagg With A Purpose palette) */
.brand-bar { display: grid; grid-template-columns: 14fr 21fr 28fr 37fr; height: 10px; }
.brand-bar i:nth-child(1) { background: var(--sand); }
.brand-bar i:nth-child(2) { background: var(--teal); }
.brand-bar i:nth-child(3) { background: var(--orange); }
.brand-bar i:nth-child(4) { background: var(--taupe); }

/* Hero */
.hero { padding-block: clamp(var(--space-12), 7vw, var(--space-24)) 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(123, 79, 207, .16), rgba(231, 166, 204, .08) 45%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; padding-bottom: clamp(var(--space-12), 7vw, var(--space-24)); position: relative; }
.hero h1 { font-size: var(--text-3xl); font-weight: 900; margin-bottom: var(--space-6); }
.hero h1 .grad { display: block; }
.lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 40ch; margin-bottom: var(--space-8); line-height: 1.5; }
.hero-logo { margin: 0; }
.hero-logo img { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(91, 53, 168, .12)); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.portrait { margin: 0; position: relative; }
.portrait::before { content: ""; position: absolute; inset: 6% -5% -5% 6%; background: var(--grad); border-radius: var(--radius); z-index: 0; opacity: .9; }
.portrait img { position: relative; z-index: 1; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.about-copy p { color: var(--ink-soft); max-width: 60ch; }
.pull { margin: var(--space-8) 0 0; padding-left: var(--space-6); border-left: 4px solid var(--gold-bright); }
.pull p { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.2; color: var(--ink); margin: 0; }

/* Mission */
.mission { background: var(--night); color: #F4EEF9; padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.mission-title { font-size: var(--text-2xl); text-align: center; margin-bottom: var(--space-12); }
.mission-title::after { content: ""; display: block; width: 120px; height: 4px; background: var(--orange); margin: var(--space-5) auto 0; border-radius: 4px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.pillar { padding: var(--space-8); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.pillar .num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); color: var(--gold-bright); }
.pillar h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); }
.pillar p { color: #CFC6DB; margin: 0; }

/* Books */
.series { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-deep); margin-bottom: var(--space-2); }
.memoir {
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center;
  background: #16120F; color: #EDE6DC; border-radius: calc(var(--radius) + 6px); padding: clamp(var(--space-6), 4vw, var(--space-12));
  margin-bottom: clamp(var(--space-16), 8vw, var(--space-24));
}
.memoir-cover { border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); width: 100%; }
.memoir .series { color: var(--gold-bright); }
.memoir h3 { font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-4); color: #fff; }
.memoir .tag { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--gold-bright); line-height: 1.3; }
.memoir p { color: #CFC5B8; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-6) 0 var(--space-8); }
.meta dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: #9C9184; }
.meta dd { margin: 0; font-weight: 700; color: #fff; }

.kids-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-8); margin-bottom: var(--space-10); }
.kids-head h3 { font-size: var(--text-xl); font-weight: 900; margin-bottom: var(--space-3); }
.kids-head p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.kids-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.kid-book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.kid-book:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(47, 39, 33, .35); }
.kid-book img { border-radius: var(--radius-sm); margin-bottom: var(--space-5); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; background: var(--cream-2); }
.kid-book h4 { font-size: var(--text-lg); font-weight: 800; margin-bottom: var(--space-2); }
.kid-book p { font-size: var(--text-sm); color: var(--ink-soft); }
.kid-book .price { font-weight: 700; color: var(--ink); margin-top: auto; }
.kid-book .btn { align-self: flex-start; }

/* Speaking */
.speaking { background: linear-gradient(160deg, #241B3D 0%, var(--night) 60%); color: #F4EEF9; }
.speaking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.speaking-intro { position: sticky; top: 110px; }
.speaking-intro p { color: #CFC6DB; max-width: 48ch; margin-bottom: var(--space-8); }
.speaking-art { margin: var(--space-10) 0 0; max-width: 300px; }
.speaking-art img { border-radius: var(--radius); transform: rotate(-3deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: t; }
.topics li { position: relative; padding: var(--space-6) var(--space-6) var(--space-6) calc(var(--space-6) + 56px); border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.topics li::before { counter-increment: t; content: counter(t, decimal-leading-zero); position: absolute; left: var(--space-6); top: var(--space-6); font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.3); }
.topics .aud { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.topics h3 { font-size: var(--text-lg); margin: var(--space-2) 0; color: #fff; }
.topics p { color: #CFC6DB; margin: 0; font-size: var(--text-sm); }

/* Shop */
.shop { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.shop-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: center; background: var(--cream-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(var(--space-8), 4vw, var(--space-12)); }
.shop-icon { width: clamp(90px, 12vw, 150px); }
.shop h2 { margin-bottom: var(--space-3); font-size: var(--text-xl); }
.shop p { color: var(--ink-soft); margin: 0; max-width: 48ch; }

/* Community */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.community-grid > div > p { color: var(--ink-soft); max-width: 54ch; }
.community .btn { margin-top: var(--space-2); }
.fine { font-size: var(--text-xs); color: var(--ink-soft); margin-top: var(--space-6); }
.outreach { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.outreach li { padding: var(--space-6); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--teal); }
.outreach li:nth-child(2) { border-left-color: var(--orange); }
.outreach li:nth-child(3) { border-left-color: var(--sand); }
.outreach h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.outreach p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

/* Contact */
.contact { background: var(--cream-2); border-top: 1px solid var(--line); text-align: center; }
.contact-inner { max-width: 760px; }
.contact .section-lede { margin-inline: auto; margin-bottom: var(--space-8); }
.socials { list-style: none; padding: 0; margin: var(--space-10) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-8); }
.socials a { font-size: var(--text-sm); font-weight: 700; color: var(--violet-deep); text-underline-offset: 4px; }
.socials a:hover { color: var(--orange); }

/* Footer */
.footer { background: var(--ink); color: #D9CFC3; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-8); }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; color: #fff; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer p { margin: 0; font-size: var(--text-xs); }

/* Responsive */
@media (max-width: 1024px) {
  .kids-grid { grid-template-columns: repeat(2, 1fr); }
  .speaking-grid { grid-template-columns: 1fr; }
  .speaking-intro { position: static; }
  .speaking-art { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .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: var(--space-2) var(--space-5) var(--space-5);
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) 0; font-size: var(--text-base); border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: var(--space-4); text-align: center; border-bottom: 0; padding: var(--space-3); }
  .hero-grid, .about-grid, .community-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 360px; }
  .portrait { max-width: 380px; }
  .pillars { grid-template-columns: 1fr; }
  .memoir { grid-template-columns: 1fr; }
  .memoir-cover { max-width: 280px; }
  .kids-head { flex-direction: column; align-items: start; }
  .shop-inner { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 520px) {
  .kids-grid { grid-template-columns: 1fr; }
  .kid-book img { aspect-ratio: auto; }
  .topics li { padding-left: var(--space-6); padding-top: calc(var(--space-6) + 32px); }
  .btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.contact-form { text-align: left; display: grid; gap: var(--space-4); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); margin-bottom: var(--space-10); box-shadow: 0 20px 40px -30px rgba(47,39,33,.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; min-height: 48px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-deep); box-shadow: 0 0 0 3px rgba(91,53,168,.18); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: var(--text-sm); min-height: 1.4em; }
.form-status.ok { color: #1F7A4D; font-weight: 600; }
.form-status.err { color: #B3261E; font-weight: 600; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }
