/* ===== Little Lamb Boutique — Design System ===== */

:root {
  /* Default (Playful + Warm) aesthetic */
  --bg: #FBF6F1;
  --bg-alt: #F5ECDF;
  --bg-deep: #1B3A5C;
  --ink: #1A1615;
  --ink-soft: #5A4E48;
  --ink-muted: #8A7F78;
  --pink: #F4C0D1;
  --pink-deep: #E89BB3;
  --pink-soft: #FBE4EC;
  --navy: #1B3A5C;
  --navy-soft: #3B5578;
  --cream: #FBF6F1;
  --butter: #F2E3C4;
  --sage: #C9D5BD;
  --rule: rgba(27, 58, 92, 0.14);
  --shadow-soft: 0 1px 2px rgba(27,58,92,0.06), 0 10px 30px rgba(27,58,92,0.08);
  --shadow-lift: 0 2px 4px rgba(27,58,92,0.08), 0 20px 50px rgba(27,58,92,0.12);

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-script: "Dancing Script", "Caveat", cursive;
  --f-body: "Newsreader", "Source Serif Pro", Georgia, serif;
  --f-ui: "Mona Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

/* Minimal aesthetic */
:root[data-aesthetic="minimal"] {
  --bg: #FFFFFF;
  --bg-alt: #F5F3F0;
  --ink: #141414;
  --ink-soft: #4A4A4A;
  --ink-muted: #8E8E8E;
  --pink: #F4C0D1;
  --pink-deep: #D98FAA;
  --pink-soft: #FAF0F4;
  --navy: #0F1A2A;
  --butter: #F0EDE6;
  --sage: #DDE0D4;
  --rule: rgba(15, 26, 42, 0.09);
}
:root[data-aesthetic="minimal"] {
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-script: "Dancing Script", cursive;
  --f-body: "Newsreader", Georgia, serif;
}

/* Editorial aesthetic */
:root[data-aesthetic="editorial"] {
  --bg: #F1ECE3;
  --bg-alt: #E7DFD0;
  --ink: #1A1615;
  --ink-soft: #463F3A;
  --pink: #E8A9BE;
  --pink-deep: #C47993;
  --pink-soft: #F2D7DF;
  --navy: #20324C;
  --butter: #E5D4A8;
  --rule: rgba(32, 50, 76, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type primitives */
.display { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02; }
.script { font-family: var(--f-script); font-weight: 500; }
.ui { font-family: var(--f-ui); }
.mono { font-family: var(--f-mono); }
.allcaps { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }

/* Nav */
.nav-root {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 18px 32px;
  display: grid; grid-template-columns: 1fr minmax(220px, auto) 1fr; align-items: center; gap: 20px;
}
.nav-left, .nav-right {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.04em;
  color: var(--navy);
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-link { cursor: pointer; padding: 6px 0; position: relative; transition: color .15s ease; }
.nav-link:hover { color: var(--pink-deep); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--pink); border-radius: 2px;
}
.nav-brand { display: flex; flex-direction: column; align-items: center; cursor: pointer; white-space: nowrap !important; min-width: 220px; }
.nav-brand .wordmark { font-family: var(--f-display); font-weight: 300; font-size: 26px; color: var(--navy); letter-spacing: 0.02em; white-space: nowrap !important; line-height: 1 !important; }
.nav-brand .sub { font-family: var(--f-script); font-size: 15px; color: var(--pink-deep); margin-top: 2px; line-height: 1 !important; white-space: nowrap !important; }

/* Buttons */
.btn {
  font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--navy); color: var(--navy); background: transparent;
  cursor: pointer; transition: all .2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { background: var(--navy); color: var(--cream); }
.btn.primary { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn.primary:hover { background: transparent; color: var(--navy); }
.btn.pink { background: var(--pink); color: var(--navy); border-color: var(--pink); }
.btn.pink:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: white; }
.btn.tiny { padding: 8px 14px; font-size: 11px; }
.btn.arrow::after { content: "→"; font-family: var(--f-body); font-size: 16px; }

/* Eyebrow */
.eyebrow {
  font-family: var(--f-ui); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 11px; font-weight: 600;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--pink-deep);
}

/* Placeholder imagery */
.ph {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(
    135deg,
    var(--pink-soft) 0px, var(--pink-soft) 16px,
    var(--bg-alt) 16px, var(--bg-alt) 32px
  );
  border: 1px solid var(--rule);
}
.ph-label {
  position: absolute; inset: auto 10px 10px 10px;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--navy); background: var(--cream);
  padding: 4px 8px; border-radius: 2px;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
}
.ph.navy { background: repeating-linear-gradient(135deg, var(--navy) 0 16px, #26456a 16px 32px); }
.ph.navy .ph-label { background: var(--navy); color: var(--cream); border-color: rgba(255,255,255,0.2); }
.ph.butter { background: repeating-linear-gradient(135deg, var(--butter) 0 16px, #ebd7a8 16px 32px); }
.ph.sage { background: repeating-linear-gradient(135deg, var(--sage) 0 16px, #b8c7a9 16px 32px); }
.ph.pink { background: repeating-linear-gradient(135deg, var(--pink) 0 16px, var(--pink-deep) 16px 32px); }

/* Sticky-note annotations */
.stickynote {
  font-family: var(--f-script);
  background: var(--butter);
  color: var(--navy);
  padding: 14px 18px;
  border-radius: 2px;
  box-shadow: 2px 4px 12px rgba(27,58,92,0.15);
  transform: rotate(-1.8deg);
  font-size: 18px;
  line-height: 1.3;
  max-width: 240px;
  position: relative;
}
.stickynote::before {
  content: ""; position: absolute; top: -8px; left: 50%;
  width: 60px; height: 16px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,255,255,0.55); border: 1px solid rgba(27,58,92,0.08);
  box-shadow: 0 2px 4px rgba(27,58,92,0.08);
}

/* Hand-drawn underline */
.squiggle-under {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'><path d='M2 5 Q 20 1 40 5 T 80 5 T 118 5' stroke='%23E89BB3' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-size: 100% 8px; background-position: 0 100%;
  padding-bottom: 6px;
}

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 500;
  background: var(--pink-soft); color: var(--navy);
  border: 1px solid rgba(232, 155, 179, 0.3);
}
.chip.navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.chip.outline { background: transparent; border: 1px solid var(--rule); }

/* Sections */
section { padding: 100px 32px; }
.container { max-width: 1360px; margin: 0 auto; }
.container-narrow { max-width: 960px; margin: 0 auto; }

/* Footer */
.footer {
  background: var(--navy); color: var(--cream);
  padding: 80px 32px 40px;
  margin-top: 120px;
}
.footer a { color: var(--pink); }

/* Rotating polaroid */
.polaroid {
  background: white;
  padding: 12px 12px 50px;
  box-shadow: var(--shadow-lift);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.polaroid .cap {
  font-family: var(--f-script); color: var(--navy);
  font-size: 18px; text-align: center; margin-top: 12px;
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(27,58,92,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(27,58,92,0.25); }

/* Utility */
.row { display: flex; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }
.rel { position: relative; }

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--cream); color: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(27,58,92,0.2);
  font-family: var(--f-ui);
  min-width: 240px;
}
.tweaks-panel h4 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.tweaks-panel .opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 10px; cursor: pointer;
  font-size: 13px; margin-bottom: 6px; transition: all .15s;
}
.tweaks-panel .opt:hover { background: var(--bg-alt); }
.tweaks-panel .opt.active { background: var(--pink-soft); border-color: var(--pink-deep); }
.tweaks-panel .swatch { width: 16px; height: 16px; border-radius: 4px; }

/* Mobile device styles */
.mobile-device {
  width: 390px; height: 780px; border-radius: 44px;
  background: var(--ink); padding: 10px;
  box-shadow: var(--shadow-lift);
  position: relative;
  flex: none;
}
.mobile-screen {
  width: 100%; height: 100%; border-radius: 36px;
  background: var(--bg); overflow: hidden;
  position: relative;
}

@media (max-width: 900px) {
  section { padding: 64px 20px; }
  .nav-inner { padding: 14px 20px; grid-template-columns: auto auto; }
  .nav-left { display: none; }
}
