/* ==========================================================
   Beyond the Plate — Jessica Mahadik
   Palette: warm cream, blush peach, soft sage, butter, olive
   Type: Cormorant Garamond (display) + DM Sans (text) + Caveat (notes)
   ========================================================== */
:root {
  --cream: #FFFCF7;
  --cream-2: #FFF4E9;
  --sand: #FCEBDD;
  --mint: #EAF6E1;
  --mint-2: #D3EBC2;
  --sage-soft: #E2F3D4;
  --leaf: #5FA14B;
  --leaf-deep: #2F4A2E;
  --lime: #FFA57A;
  --mango: #FF8F5E;
  --mango-soft: #FFEADB;
  --tomato: #FF5F4B;
  --peach: #FFD6BF;
  --blush: #FFEADF;
  --butter: #FFF0BC;
  --rose: #E5603F;
  --berry: #F0507E;
  --ink: #23301F;
  --muted: #6B6A60;
  --line: rgba(47, 74, 46, .1);
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --r-sm: 12px;
  --r-md: 24px;
  --r-lg: 38px;
  --shadow: 0 24px 60px -28px rgba(80, 60, 45, .38);
  --shadow-sm: 0 10px 28px -16px rgba(80, 60, 45, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* soft paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the smoothie jar replaces the scrollbar on desktop */
@media (pointer: fine) and (min-width: 900px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--peach); color: var(--leaf-deep); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
section { position: relative; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.012em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(3.3rem, 7.6vw, 6.8rem); line-height: .98; }
h2 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); }
h3 { font-size: clamp(1.65rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.12; }
em, .italic { font-style: italic; font-weight: 500; }
h1 em, h2 em { font-weight: 500; }
.green { color: var(--leaf); }
.tomato { color: var(--tomato); }
.mango { color: #D9774A; }
.rose { color: var(--rose); }
.hand { font-family: var(--hand); font-size: 1.55em; line-height: 1; color: var(--leaf); }
.lede { font-size: clamp(1.06rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 48ch; line-height: 1.75; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--rose);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 14px 0 0 -1px var(--lime); margin-right: 14px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* split-word heading reveal (words wrapped by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split-in .w > span { transform: none; }

/* underline squiggle */
.squiggle { position: relative; display: inline-block; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.squiggle path { stroke: var(--mango); stroke-width: 6; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease) .9s; }
.is-in .squiggle path, .squiggle.is-in path { stroke-dashoffset: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 16px 16px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  will-change: transform; position: relative;
}
.btn .arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); transition: transform .4s var(--ease), background .3s; }
.btn:hover .arrow { transform: translateX(3px) rotate(-12deg); }
.btn-primary, .btn-sun { background: var(--leaf-deep); color: var(--cream); box-shadow: 0 16px 32px -14px rgba(47,74,46,.7); }
.btn-primary:hover, .btn-sun:hover { background: #2C3327; }
.btn-primary:hover .arrow, .btn-sun:hover .arrow { background: var(--lime); color: var(--leaf-deep); }
.btn-ghost { border: 1.5px solid rgba(47,74,46,.25); color: var(--leaf-deep); background: rgba(255,255,255,.5); }
.btn-ghost .arrow { background: var(--peach); }
.btn-ghost:hover { background: var(--white); border-color: var(--leaf-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  width: min(var(--wrap), 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(255, 250, 244, .78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-130%); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.logo-mark { width: 36px; height: 36px; flex: none; transition: transform .8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-20deg) scale(1.06); }
.logo b { font-weight: 600; color: var(--leaf); font-style: italic; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: background .3s, color .3s; }
.nav-links a:hover { background: var(--blush); color: var(--leaf-deep); }
.nav-links a[aria-current="page"] { background: var(--leaf-deep); color: var(--cream); }
.nav .btn { padding: 10px 10px 10px 20px; font-size: .9rem; }
.nav .btn .arrow { width: 28px; height: 28px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--leaf-deep); border-radius: 2px; box-shadow: 0 6px 0 var(--leaf-deep), 0 -6px 0 var(--leaf-deep); }

@media (max-width: 1120px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav.open { border-radius: 26px; flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; padding: 8px 0 6px; }
  .nav.open .nav-links a { display: block; font-size: 1.05rem; padding: 12px 14px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 180px 0 90px; overflow: hidden; }
.page-hero h1 { max-width: 14ch; margin: 22px 0 26px; }
.page-hero .blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(4px); }

/* ---------- Marquee ---------- */
.marquee { background: var(--leaf-deep); color: var(--cream); overflow: hidden; padding: 18px 0; transform: rotate(-1.4deg); margin: 0 -10px; position: relative; z-index: 2; }
.marquee.alt { background: var(--sage-soft); color: var(--leaf-deep); transform: rotate(1.2deg); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 42px; font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-style: italic; font-weight: 500; white-space: nowrap; }
.marquee span::after { content: "✿"; font-style: normal; color: var(--lime); font-size: .75em; }
.marquee.alt span::after { color: var(--mango); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(90px, 11vw, 160px) 0; }
.section-head { margin-bottom: 60px; }
.section-head h2 { margin-top: 18px; max-width: 18ch; }
.section-head.center h2 { margin-inline: auto; }
.section-head .lede { margin-top: 20px; }
.bg-mint { background: var(--mint); }
.bg-blush { background: var(--blush); }
.bg-sand { background: var(--cream-2); }
.bg-cream2 { background: var(--cream-2); }
/* the soft accent section (was dark) */
.bg-deep {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(255,165,122,.28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(214,240,196,.9), transparent 70%),
    var(--blush);
  color: var(--ink);
}
.bg-deep .lede { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--r-md); padding: 32px; border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sage-soft); color: var(--leaf-deep); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }

/* ---------- Floating decor ---------- */
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 9s; }
.float.d1 { animation-delay: -2s; }
.float.d2 { animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(3deg); } }
.spin-slow { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(100px, 12vw, 160px) 0; text-align: center; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(45% 70% at 15% 20%, rgba(255,234,170,.9), transparent 70%),
    radial-gradient(45% 70% at 85% 80%, rgba(255,165,122,.35), transparent 70%),
    var(--blush);
}
.cta-band h2 { max-width: 15ch; margin: 20px auto 22px; }
.cta-band .lede { margin: 0 auto 38px; }
.cta-band .deco { position: absolute; opacity: .95; pointer-events: none; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed rgba(229,96,63,.18); pointer-events: none; animation: spin 80s linear infinite; }
.cta-band::before { width: 720px; height: 720px; left: 50%; top: 50%; margin: -360px 0 0 -360px; }
.cta-band::after { width: 480px; height: 480px; left: 50%; top: 50%; margin: -240px 0 0 -240px; animation-direction: reverse; }

/* ---------- Footer ---------- */
.footer { background: #33302A; color: rgba(255,250,244,.72); padding: 90px 0 34px; position: relative; overflow: hidden; }
.footer .logo { color: var(--cream); font-size: 1.9rem; }
.footer-big { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; color: rgba(255,250,244,.07); white-space: nowrap; margin-top: 50px; letter-spacing: -.02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer-note { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .84rem; }
.footer-disclaimer { font-size: .82rem; max-width: 62ch; margin-top: 18px; opacity: .65; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* placeholder flag (for things Jessica still needs to confirm) */
.todo { background: #FFF1A8; color: #6B5300; padding: 0 4px; border-radius: 4px; font-size: .92em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .w > span { transform: none; }
}
