/* The Enchanted Nanny
   Warm paper, deep-teal ink, apricot clay. Fraunces for voice, Figtree for reading. */

:root {
  --paper: #fbf5ec;
  --paper-2: #f4e9da;
  --paper-3: #ecdcc7;
  --ink: #0e3f49;
  --ink-deep: #0a2f37;
  --ink-soft: #3d5f67;
  --clay: #b24a25;
  --clay-bright: #d9764a;
  --blush: #f5d6c6;
  --honey: #e9b54f;
  --line: rgb(14 63 73 / 0.16);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.94rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.7rem, 1.8rem + 4vw, 5.2rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 1.25rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-color: var(--ink-soft) var(--paper-2);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--honey); color: var(--ink-deep); }

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

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: normal;
  color: var(--clay);
}
p { margin: 0; text-wrap: pretty; max-width: 62ch; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 245 236 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem;
}
.logo img { width: clamp(9.5rem, 16vw, 12rem); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a:not(.btn) {
  font-size: var(--step--1); font-weight: 600; text-decoration: none;
  padding-block: 0.4rem;
  background: linear-gradient(var(--clay), var(--clay)) left bottom / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { background-size: 100% 2px; }

.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
}
.menu-btn span, .menu-btn span::before {
  display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative;
  transition: transform 0.35s var(--ease-out);
}
.menu-btn span::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-btn[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font: 600 var(--step--1)/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, box-shadow 0.35s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-deep); box-shadow: 0 10px 24px -12px rgb(10 47 55 / 0.6); transform: translateY(-2px); }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-clay:hover { background: #983d1b; border-color: #983d1b; box-shadow: 0 10px 24px -12px rgb(152 61 27 / 0.7); transform: translateY(-2px); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn-paper { background: var(--paper); color: var(--ink-deep); border-color: var(--paper); }
.btn-paper:hover { background: var(--blush); border-color: var(--blush); transform: translateY(-2px); }
.btn-line-paper { background: transparent; color: var(--paper); border-color: rgb(251 245 236 / 0.6); }
.btn-line-paper:hover { background: var(--paper); color: var(--ink-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.2rem; }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--clay);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section); overflow: clip; }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}
.hero h1 { font-size: var(--step-4); }
.hero-lede { margin-top: 1.75rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-art { position: relative; isolation: isolate; }
.hero-art .moon {
  position: absolute; z-index: -1; right: -14%; top: -12%; width: 78%;
  color: var(--blush);
}
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 30px 50px -28px rgb(14 63 73 / 0.45);
  background: var(--paper-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.star { position: absolute; color: var(--honey); }
.star svg { width: 100%; height: 100%; }
.hero-art .star-1 { width: 3.2rem; left: -1.6rem; top: 12%; }
.hero-art .star-2 { width: 1.7rem; right: 4%; bottom: 8%; color: var(--clay-bright); }
.hero-art .star-3 { width: 1.1rem; left: 14%; bottom: -1.2rem; }
.hero-art .star { animation: twinkle 5s ease-in-out infinite; }
.hero-art .star-2 { animation-delay: -1.7s; }
.hero-art .star-3 { animation-delay: -3.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.55; transform: scale(0.82) rotate(12deg); }
}

.sticker {
  position: absolute; left: -1.5rem; bottom: 2.5rem;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 0.9rem 1.2rem;
  box-shadow: 0 18px 36px -18px rgb(14 63 73 / 0.5);
  display: flex; align-items: center; gap: 0.8rem;
  text-decoration: none; max-width: 15rem;
  transition: transform 0.4s var(--ease-out);
}
.sticker:hover { transform: translateY(-4px) rotate(-1.5deg); }
.sticker .ico {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
}
.sticker .ico svg { width: 1.2rem; height: 1.2rem; }
.sticker strong { display: block; font-size: var(--step--1); line-height: 1.2; }
.sticker span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; display: block; }

/* ---------- Press ---------- */
.press { border-block: 1px solid var(--line); background: var(--paper-2); padding-block: 2.25rem; }
.press-inner { display: grid; gap: 1rem; }
.press-label { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; text-align: center; max-width: none; }
.press-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 2rem; align-items: center;
  width: min(100%, 60rem); margin-inline: auto;
}
.press-logos img {
  width: 100%; aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.62;
  transition: opacity 0.3s;
}
.press-logos li:hover img { opacity: 1; }

/* ---------- Topics ---------- */
.split { display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.sticky-col { position: sticky; top: 7.5rem; }
.sticky-col h2 { font-size: var(--step-3); }
.sticky-col p { margin-top: 1.25rem; color: var(--ink-soft); }
.sticky-col .btn { margin-top: 2rem; }

.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.25rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line);
}
.topic-ico {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--blush); color: var(--clay);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.topic:hover .topic-ico { transform: rotate(-8deg) scale(1.06); background: var(--honey); color: var(--ink-deep); }
.topic-ico svg { width: 1.5rem; height: 1.5rem; }
.topic h3 { font-size: var(--step-2); }
.topic p { margin-top: 0.5rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid {
  display: grid; gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center;
}
.portrait { position: relative; isolation: isolate; max-width: 30rem; }
.portrait .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 50px -28px rgb(14 63 73 / 0.45); transform: rotate(-1.5deg); }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.portrait::before {
  content: ""; position: absolute; inset: 6% -6% -6% 6%; z-index: -1;
  background: var(--blush); border-radius: var(--radius); transform: rotate(2.5deg);
}
.about h2 { font-size: var(--step-3); }
.about-copy { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.about-copy p { color: var(--ink-soft); }
.about-copy p:first-child { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }
.pull {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem;
  background: var(--paper); border-radius: var(--radius);
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35;
  max-width: 34rem;
}
.pull cite { display: block; margin-top: 0.6rem; font: 600 var(--step--1)/1 var(--font-body); font-style: normal; color: var(--clay); }
.fact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fact-list li { padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: var(--step--1); }

/* ---------- TikTok band ---------- */
.tiktok { background: var(--ink); color: var(--paper); position: relative; overflow: clip; isolation: isolate; }
.tiktok::before {
  content: ""; position: absolute; z-index: -1; right: -12rem; top: -10rem;
  width: 34rem; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -3.2rem 0 0 0 rgb(251 245 236 / 0.07);
}
.tiktok-grid {
  display: grid; gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center;
}
.tiktok h2 { font-size: var(--step-3); }
.tiktok h2 em { color: var(--honey); }
.tiktok p { margin-top: 1.25rem; color: rgb(251 245 236 / 0.86); }
.tiktok .hero-actions { margin-top: 2rem; }
.handle { font-family: var(--font-display); color: var(--honey); }

.phone {
  position: relative; margin-inline: auto; width: min(100%, 19rem);
  aspect-ratio: 9 / 17.5; border-radius: 2.4rem; padding: 0.7rem;
  background: var(--ink-deep); border: 1.5px solid rgb(251 245 236 / 0.3);
  box-shadow: 0 40px 60px -30px rgb(0 0 0 / 0.55);
  transform: rotate(3deg);
}
.phone-screen { position: relative; height: 100%; border-radius: 1.8rem; overflow: hidden; background: var(--paper-2); }
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen::after {
  content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgb(10 47 55 / 0.88), transparent);
}
.phone-ui { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1.1rem; color: var(--paper); }
.phone-ui b { display: block; font-size: var(--step--1); }
.phone-ui span { display: block; font-size: 0.82rem; line-height: 1.35; margin-top: 0.15rem; color: rgb(251 245 236 / 0.9); }
.phone-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 4.2rem; aspect-ratio: 1; translate: -50% -60%;
  border-radius: 50%; background: rgb(251 245 236 / 0.92); color: var(--ink); display: grid; place-items: center;
}
.phone-play svg { width: 1.5rem; margin-left: 0.2rem; }

.socials { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem;
  padding: 0.4rem 1rem 0.4rem 0.8rem; border-radius: 999px;
  border: 1.5px solid currentColor; text-decoration: none; font-weight: 600; font-size: var(--step--1);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}
.socials a:hover { background: var(--paper); color: var(--ink-deep); transform: translateY(-2px); }
.socials svg { width: 1.2rem; height: 1.2rem; }
.socials.on-paper a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Shop ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); }

/* ---------- Closing CTA ---------- */
.closer { background: var(--blush); text-align: center; position: relative; overflow: clip; }
.closer .wrap { display: grid; justify-items: center; }
.closer h2 { font-size: var(--step-3); max-width: 18ch; }
.closer p { margin-top: 1.25rem; color: var(--ink); }
.closer .hero-actions { justify-content: center; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); position: relative; overflow: clip; }
.page-hero h1 { font-size: var(--step-4); max-width: 16ch; }
.page-hero p { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.page-hero .star { width: 2.4rem; right: 12%; top: 22%; animation: twinkle 5s ease-in-out infinite; }

.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; max-width: 62ch; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--ink); font-weight: 600; }

/* tiktok page */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
.video a { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 20px 34px -24px rgb(14 63 73 / 0.55); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), opacity 0.3s; }
.video a:hover img { transform: scale(1.04); opacity: 0.9; }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 3.6rem; aspect-ratio: 1; border-radius: 50%;
  background: rgb(251 245 236 / 0.92); color: var(--ink); display: grid; place-items: center;
  transition: transform 0.4s var(--ease-out);
}
.video a:hover .video-play { transform: scale(1.1); }
.video-play svg { width: 1.3rem; margin-left: 0.15rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 1.5rem; border-radius: var(--radius); background: var(--paper-2); }
.steps h3 { font-size: var(--step-1); }
.steps p { margin-top: 0.5rem; color: var(--ink-soft); font-size: var(--step--1); }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; }
.lost h1 { font-size: var(--step-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-brand p { margin-top: 1.25rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; color: var(--blush); max-width: 22ch; }
.footer-logo { width: 11rem; filter: brightness(0) invert(1); opacity: 0.95; }
.site-footer h2 { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; font-size: var(--step--1); }
.site-footer a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(251 245 236 / 0.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  font-size: 0.85rem; color: rgb(251 245 236 / 0.75);
}
.footer-base a { text-decoration: underline; }

/* ---------- Motion ---------- */
.rise { animation: rise 0.9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(1.4rem); } }
.arch.reveal-arch { animation: arch-in 1.3s var(--ease-out) 0.15s both; }
@keyframes arch-in { from { clip-path: inset(18% 18% 0 18% round 999px 999px 0 0); opacity: 0; } }

.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .hero-grid, .split, .about-grid, .tiktok-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 30rem; margin-inline: auto; width: 100%; }
  .sticky-col { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .press-inner { grid-template-columns: 1fr; }
  .press-label { max-width: none; }
  .press-logos { grid-template-columns: repeat(6, 1fr); }
  .phone { order: -1; }
}

@media (max-width: 48rem) {
  .menu-btn { display: inline-flex; }
  .page-hero .star { display: none; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 0.5rem var(--gutter) 1.75rem; border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0.3s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding-block: 1rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); background: none; }
  .nav .btn { margin-top: 1.25rem; }
  .sticker { left: 0.5rem; bottom: -1rem; }
  .press-logos { grid-template-columns: repeat(4, 1fr); column-gap: 0.5rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 100%; }
}
