@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --ink: #292533;
  --muted: #686273;
  --purple: #7552bb;
  --lime: #d6f582;
  --line: #dedcd3;
  --surface: #fffefa;
  --lavender-bg: #ebe5f4;
  --lavender-line: #d8cde7;
  --lavender-text: #604881;
  --pink-bg: #f4d4dc;
  --pink-text: #86485b;
  --purple-bg: #e2daf1;
  --purple-text: #624291;
  --bad-bg: #f4e6e4;
  --bad-text: #90544d;
  --good-bg: #eaf3d6;
  --good-text: #486226;
  --good-line: #b8c99d;
  --bubble: #f2f0f5;
  --good-bubble: #f0f4e9;
  --button-bg: #292533;
  --button-text: #ffffff;
  --knob-offset: 0px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191720;
  --ink: #f0ebf6;
  --muted: #bab1c7;
  --purple: #bfa0f1;
  --line: #3e374b;
  --surface: #24202d;
  --lavender-bg: #30263f;
  --lavender-line: #554367;
  --lavender-text: #d0b9f0;
  --pink-bg: #503040;
  --pink-text: #f6bdd1;
  --purple-bg: #3f3155;
  --purple-text: #d9c2fa;
  --bad-bg: #492e32;
  --bad-text: #f1b5b0;
  --good-bg: #2b3723;
  --good-text: #c2e49c;
  --good-line: #536a3c;
  --bubble: #332b40;
  --good-bubble: #303a29;
  --button-bg: #bfa0f1;
  --button-text: #191720;
  --knob-offset: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #191720;
    --ink: #f0ebf6;
    --muted: #bab1c7;
    --purple: #bfa0f1;
    --line: #3e374b;
    --surface: #24202d;
    --lavender-bg: #30263f;
    --lavender-line: #554367;
    --lavender-text: #d0b9f0;
    --pink-bg: #503040;
    --pink-text: #f6bdd1;
    --purple-bg: #3f3155;
    --purple-text: #d9c2fa;
    --bad-bg: #492e32;
    --bad-text: #f1b5b0;
    --good-bg: #2b3723;
    --good-text: #c2e49c;
    --good-line: #536a3c;
    --bubble: #332b40;
    --good-bubble: #303a29;
    --button-bg: #bfa0f1;
    --button-text: #191720;
    --knob-offset: 24px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
::selection { background: var(--lime); color: #292533; }
.site-header, main, .site-footer { max-width: 1240px; margin-inline: auto; }
.site-header { padding: 33px 48px; display: flex; justify-content: space-between; align-items: center; }
.header-actions { display: flex; align-items: center; gap: 27px; }
.theme-toggle { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.toggle-switch { position: relative; width: 48px; height: 24px; border-radius: 12px; background: var(--lavender-line); cursor: pointer; }
.toggle-switch::before { content: ''; position: absolute; inset: -10px 0; }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--purple); transform: translateX(var(--knob-offset)); transition: transform .3s ease; }
.wordmark { font-family: 'Manrope', system-ui, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -1.5px; text-decoration: none; }
.wordmark span { color: var(--purple); }
.wordmark .wordmark-dot { color: var(--ink); }
.original-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.original-link:hover { color: var(--purple); text-decoration: underline; }
.original-link span { margin-left: 10px; font-size: 18px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 20px; padding: 73px 48px 81px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.7px; margin: 0 0 26px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); margin-right: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; }
h1 { font-size: clamp(80px, 9.8vw, 126px); font-weight: 800; letter-spacing: -9px; line-height: 1.08; margin-bottom: 25px; white-space: nowrap; }
h1 span { color: var(--purple); }
.hero-subtitle { font-size: 23px; line-height: 1.5; margin-bottom: 12px; letter-spacing: -.5px; }
.hero-subtitle em { font-style: normal; text-decoration: underline; text-decoration-color: #c3b3de; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hero-description { max-width: 380px; font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 29px; }
.button { display: inline-flex; gap: 33px; align-items: center; padding: 16px 22px; background: var(--button-bg); color: var(--button-text); font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 7px; transition: background .2s; }
.button:hover { background: var(--purple); }
.button span { font-size: 19px; }
.tiny-note { font-size: 11px; color: var(--muted); margin: 14px 0 0; }
.hero-art { text-align: center; position: relative; padding-top: 25px; }
.art-note { display: inline-block; font-size: 12px; color: var(--purple); transform: rotate(-7deg); border-bottom: 1px solid #bfa9de; padding-bottom: 6px; }
.jelly-stage { position: relative; }
.jelly-art { width: 100%; display: block; overflow: visible; }
.jelly-body { transform-origin: 240px 335px; }
.jello-tag { position: absolute; bottom: 0; right: 2%; transform: rotate(-6deg); background: var(--lime); color: #292533; border: 1px solid #a8c86b; border-radius: 4px; padding: 10px 13px; font-size: 10px; font-weight: 600; }
.wobble-button { cursor: pointer; color: var(--muted); background: none; border: 0; padding: 15px 12px; margin-top: 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.wobble-button:hover { color: var(--purple); }
.wobble-button span { margin-left: 5px; }
.manifesto-strip { display: flex; align-items: center; justify-content: space-around; gap: 18px; background: var(--lavender-bg); border-block: 1px solid var(--lavender-line); padding: 20px 30px; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--lavender-text); }
.manifesto-strip span:nth-child(even) { font-size: 22px; line-height: 1; }
.section { padding: 79px 48px; }
.section-heading { margin-bottom: 35px; }
h2 { font-size: clamp(29px, 3.1vw, 40px); line-height: 1.25; letter-spacing: -1.6px; margin-bottom: 18px; font-weight: 800; }
h2 em { font-style: normal; color: var(--purple); }
.section-heading > p:last-child, .recipe > div > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chat-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 25px; display: flex; flex-direction: column; }
.chat-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 28px; }
.chat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.verdict { font-size: 10px; padding: 5px 9px; border-radius: 20px; background: var(--bad-bg); color: var(--bad-text); white-space: nowrap; }
.good-chat { border-color: var(--good-line); }
.good-chat .verdict { background: var(--good-bg); color: var(--good-text); }
.message { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 21px; }
.message > div { min-width: 0; }
.avatar { flex-shrink: 0; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-weight: 600; font-size: 11px; }
.pink { background: var(--pink-bg); color: var(--pink-text); }
.purple { background: var(--purple-bg); color: var(--purple-text); }
.sender { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.sender time { color: var(--muted); font-size: 10px; font-weight: 400; margin-left: 9px; }
.bubble { display: inline-block; background: var(--bubble); border-radius: 0 9px 9px 9px; padding: 10px 13px; font-size: 13px; line-height: 1.65; margin-bottom: 0; overflow-wrap: anywhere; }
.good-chat .bubble { background: var(--good-bubble); }
.chat-takeaway { font-size: 11px; color: var(--muted); margin: auto 0 0; padding-top: 19px; border-top: 1px solid var(--line); line-height: 1.6; }
.chat-takeaway span { font-size: 17px; margin-right: 8px; }
.support-section { margin: 0 48px 40px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid var(--lavender-line); border-radius: 12px; background: var(--lavender-bg); }
.support-section h2 { font-size: 22px; letter-spacing: -.6px; margin-bottom: 10px; }
.support-section p { font-size: 13px; line-height: 1.7; color: var(--lavender-text); margin-bottom: 0; }
.support-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; min-height: 44px; padding: 13px 22px; border-radius: 999px; background: var(--lime); color: #292533; text-decoration: none; font-size: 13px; font-weight: 700; }
.support-button:hover, .support-button:focus-visible { animation: support-wiggle .6s ease-out; }
@keyframes support-wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.035, .965) rotate(-2deg); }
  50% { transform: scale(.98, 1.02) rotate(1deg); }
  75% { transform: scale(1.01, .99) rotate(-.5deg); }
}
.recipe { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--line); padding-top: 62px; padding-bottom: 65px; margin-inline: 48px; padding-inline: 0; }
.recipe > div > p:last-child { max-width: 350px; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { display: flex; gap: 18px; margin-bottom: 28px; }
.ingredients li:last-child { margin-bottom: 0; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--lavender-line); background: var(--lavender-bg); color: var(--purple); border-radius: 50%; font-size: 12px; font-weight: 600; }
h3 { font-size: 16px; margin: 4px 0 7px; letter-spacing: -.3px; }
.ingredients p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.closing-note { margin: 0 48px; border: 1px solid var(--good-line); background: var(--good-bg); border-radius: 9px; padding: 29px 30px; display: flex; gap: 23px; align-items: center; }
.asterisk { color: var(--good-text); font-size: 45px; }
.closing-note h2 { font-size: 21px; letter-spacing: -.6px; margin-bottom: 7px; }
.closing-note p { font-size: 13px; color: var(--good-text); margin-bottom: 0; line-height: 1.6; }
.closing-note a { font-size: 26px; text-decoration: none; margin-left: auto; padding: 7px; }
.site-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 54px 48px 36px; }
.site-footer .wordmark { font-size: 22px; }
.site-footer p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
.site-footer > p { text-align: right; }
.site-footer a:hover { color: var(--purple); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--surface); z-index: 10; }

@media (max-width: 900px) {
  .site-header { padding: 26px 28px; }
  .hero { padding: 50px 28px 60px; }
  h1 { font-size: 88px; letter-spacing: -6px; }
  .hero-subtitle { font-size: 20px; }
  .eyebrow { letter-spacing: 1.1px; font-size: 9px; }
  .section { padding: 60px 28px; }
  .recipe { margin-inline: 28px; padding-inline: 0; gap: 35px; }
  .chat-card { padding: 20px; }
  .closing-note { margin-inline: 28px; }
  .support-section { margin-inline: 28px; }
  .site-footer { padding-inline: 28px; }
}

@media (max-width: 650px) {
  .site-header { padding: 23px 22px; }
  .site-header { flex-wrap: wrap; gap: 15px; }
  .header-actions { gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
  .theme-toggle { font-size: 11px; gap: 7px; }
  .wordmark { font-size: 24px; }
  .original-link { font-size: 10px; }
  .original-link span { margin-left: 3px; }
  .hero { grid-template-columns: 1fr; padding: 44px 22px 35px; gap: 25px; }
  h1 { font-size: clamp(74px, 19vw, 108px); letter-spacing: -6px; margin-bottom: 22px; }
  .hero-copy .eyebrow { margin-bottom: 21px; }
  .hero-description { max-width: 410px; }
  .hero-art { max-width: 360px; width: 100%; margin-inline: auto; padding-top: 0; }
  .jello-tag { right: 0; }
  .manifesto-strip { padding: 17px 15px; gap: 10px; letter-spacing: .6px; font-size: 8px; flex-wrap: wrap; }
  .manifesto-strip span:nth-child(even) { font-size: 15px; }
  .manifesto-strip span:last-child { display: none; }
  .manifesto-strip span:nth-child(4) { display: none; }
  .section { padding: 49px 22px; }
  .section .eyebrow { margin-bottom: 18px; }
  h2 { font-size: 31px; }
  .chat-grid, .recipe { grid-template-columns: 1fr; }
  .chat-card { padding: 23px 20px; }
  .recipe { margin-inline: 22px; padding-inline: 0; gap: 30px; }
  .support-section { margin-inline: 22px; padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .closing-note { margin-inline: 22px; padding: 22px 18px; gap: 13px; }
  .closing-note h2 { font-size: 18px; }
  .asterisk { font-size: 32px; }
  .closing-note a { font-size: 22px; padding: 3px; }
  .site-footer { padding: 38px 22px 28px; display: block; }
  .site-footer > p { text-align: left; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .support-button:hover, .support-button:focus-visible { animation: none; }
}
