/* Shared by every page: tokens, base type, nav + logo, footer. */
  :root {
    --paper: #ffffff;
    --ink: #2b2838;
    --soft: #6e6a80;
    --leaf: #8cc84b;
    --leaf-deep: #3e9f44;
    --sun: #ffd257;
    --blush: #ffb3c1;
    --sky: #cfe2ff;
    --soil: #f3d6b6;
    --night: #1d2052;
    --cream: #fff6e2;
    --line: var(--ink);
    --text: var(--ink);
    --text-soft: var(--soft);
    --accent: var(--leaf-deep);
    --display: "Shantell Sans", "Comic Sans MS", cursive;
    --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --hand: "Gaegu", "Comic Sans MS", cursive;
    --wobbly: 255px 18px 225px 18px / 18px 225px 18px 255px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 400; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  a { color: inherit; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 2.5px dashed var(--leaf-deep); outline-offset: 4px; border-radius: 8px; }
  .hand { font-family: var(--hand); font-weight: 700; }
  h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }

  /* hand-drawn svg defaults */
  .ln { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .ln.thin { stroke-width: 2; }
  .f { stroke: none; }

  /* ---------- nav ---------- */
  /* the top bar stays put: clear at the very top, frosted once you scroll, dark over the night sky */
  nav { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: calc(20px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 52px) 20px;  transition: background .35s, box-shadow .35s, padding .35s; }
  nav.scrolled { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 #ece8f2; }
  nav.scrolled.dark { background: rgba(19, 22, 61, .55); box-shadow: 0 1px 0 rgba(255, 246, 226, .12); }
  nav.dark .wm-curio { color: #fff6e2; }
  nav.dark .wm-i svg > path:first-of-type { stroke: #fff6e2; }
  .logo { display: inline-flex; text-decoration: none; padding-top: 12px; }
  .wm { font-family: "Fredoka", var(--body); font-weight: 600; font-size: 23px; line-height: 1; letter-spacing: -0.01em; }
  .wm-curio { color: #1f3349; }
  .wm-seed { color: #3e9f44; }
  .wm-i { position: relative; display: inline-block; width: .225em; height: .49em; vertical-align: baseline; }
  .wm-i svg { position: absolute; left: 50%; bottom: 0; width: .6em; height: 1em; transform: translateX(-50%); overflow: visible; }
  .wm-leaves { transform-origin: 32.5px 21px; transition: transform .4s cubic-bezier(.3, 1.7, .5, 1); }
  .logo:hover .wm-leaves { transform: rotate(-10deg) scale(1.12); }
  .btn { display: inline-block; text-decoration: none; cursor: pointer; font: 600 15px var(--body); color: var(--ink); background: var(--paper); padding: 10px 20px; border: 2px solid var(--ink); border-radius: var(--wobbly); box-shadow: 3px 3px 0 var(--sun); transition: transform .25s, box-shadow .25s; }
  .btn:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 5px 0 var(--sun); }

  /* nav links */
  .nav-links { display: flex; align-items: center; gap: 22px; }
  .nav-link { position: relative; text-decoration: none; font: 600 16px var(--body); color: var(--ink); padding: 4px 2px; }
  .nav-link::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 25 2, 50 7, 98 3' fill='none' stroke='%23ffd257' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-link[aria-current="page"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 25 2, 50 7, 98 3' fill='none' stroke='%238cc84b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

  @keyframes wob { 50% { transform: rotate(-8deg); } }

  /* the big yellow call-to-action */
  .sun-btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: 700 18px var(--body); color: var(--ink); background: var(--sun); padding: 16px 34px; border-radius: 999px 40px 999px 60px / 60px 999px 40px 999px; box-shadow: 0 0 34px rgba(255, 210, 87, .35); white-space: nowrap; transition: transform .25s, box-shadow .25s; }
  .sun-btn:hover { transform: rotate(-2deg) scale(1.05); box-shadow: 0 0 46px rgba(255, 210, 87, .55); }

  footer { position: relative; background: var(--paper); padding: 30px clamp(16px, 4vw, 52px) 40px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; text-align: center; border-top: 2px dashed #e6e2ee; color: var(--soft); font-size: 14px; }
  footer .hand { font-size: 22px; color: var(--ink); }
  .legal { display: flex; gap: 18px; }
  .legal a { color: var(--soft); text-decoration: none; }
  .legal a:hover { color: var(--ink); text-decoration: underline; }

  /* privacy + terms: one readable column */
  .doc { max-width: 720px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 52px) clamp(72px, 9vw, 120px); }
  .doc .updated { margin-top: 10px; font-size: 15px; color: var(--soft); }
  .doc h2 { margin-top: 40px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
  .doc p, .doc ul { margin-top: 12px; }
  .doc ul { padding-left: 22px; }
  .doc li + li { margin-top: 8px; }
  .doc a { color: var(--leaf-deep); }

  /* sections are readable before any script runs; they just settle into place as they scroll in */
  .reveal { transform: translateY(16px); transition: transform .9s cubic-bezier(.2, .8, .3, 1); }
  .reveal.in { transform: none; }

  /* phone menu: a hand-drawn ☰ that opens the links in a little card */
  .menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: var(--wobbly); background: var(--paper); cursor: pointer; padding: 0; }
  .menu-btn svg { width: 22px; height: 22px; display: block; margin: auto; }
  .menu-btn .x { display: none; }
  nav.open .menu-btn .bars { display: none; }
  nav.open .menu-btn .x { display: inline; }

  /* sub-page building blocks */
  .wrap { max-width: 1200px; margin: 0 auto; }
  .p-hero { position: relative; text-align: center; padding: clamp(120px, 16vh, 170px) clamp(16px, 4vw, 52px) clamp(48px, 6vw, 72px); overflow: hidden; }
  .p-hero .hand, .sec-head .hand { font-size: 26px; color: var(--leaf-deep); }
  .p-hero h1 { margin: 6px auto 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.05; max-width: 17ch; }
  .p-hero p.lede { margin: 16px auto 0; max-width: 560px; color: var(--soft); }
  .section { padding: 0 clamp(16px, 4vw, 52px) clamp(64px, 8vw, 110px); }
  .sec-head { text-align: center; margin-bottom: 44px; }
  .sec-head h2 { margin: 4px auto 0; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.08; max-width: 20ch; }
  .sec-head p { margin: 12px auto 0; max-width: 560px; color: var(--soft); }
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 22px 22px 26px; border: 2px solid var(--ink); border-radius: var(--wobbly); background: #fff; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .card:nth-child(even) { border-radius: 18px 225px 18px 255px / 255px 18px 225px 18px; }
  .card:hover { transform: rotate(-1.5deg) translateY(-6px); }
  .card:nth-child(even):hover { transform: rotate(1.5deg) translateY(-6px); }
  .card > svg { width: 100%; height: 120px; overflow: visible; }
  .card:hover svg .wig { animation: wob 1s ease-in-out infinite; }
  .card h3 { margin-top: 10px; font-size: 22px; line-height: 1.15; }
  .card p { margin-top: 8px; font-size: 16px; color: var(--soft); }
  .p-cta { text-align: center; padding: 0 clamp(16px, 4vw, 52px) clamp(80px, 10vw, 130px); }
  .p-cta h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
  .p-cta p { margin: 10px auto 0; max-width: 460px; color: var(--soft); }
  .p-cta .btn { margin-top: 26px; font-size: 17px; padding: 14px 28px; }

  @media (max-width: 1080px) { .cards, .cards.three { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 821px) { nav.dark .nav-link { color: #fff6e2; } }
  @media (max-width: 820px) {
    .menu-btn { display: block; }
    .nav-links { display: none; position: absolute; top: 74px; right: clamp(16px, 4vw, 52px); flex-direction: column; align-items: flex-end; gap: 14px; padding: 18px 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wobbly); box-shadow: 4px 4px 0 var(--sun); }
    nav.open .nav-links { display: flex; }
    .nav-link { font-size: 18px; }
  }
  @media (max-width: 560px) { .cards, .cards.three { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* ---------- forms (application, sign up, log in, account) ---------- */
  /* the form is a sheet of paper with a sunny shadow */
  .sheet { position: relative; max-width: 760px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: 26px 14px 30px 12px / 14px 30px 12px 26px; box-shadow: 6px 6px 0 var(--sun); padding: clamp(24px, 4vw, 48px); }
  .sheet::before { content: ""; position: absolute; top: -16px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(140, 200, 75, .55); border: 1.5px solid rgba(62, 159, 68, .5); }
  .q { margin-top: 30px; border: 0; }
  .sheet form > :first-child { margin-top: 0; }
  fieldset.q { padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
  .q-label, .q legend { display: block; font: 700 20px/1.25 var(--display); color: var(--ink); padding: 0; }
  .q-label small, .q legend small { font: 700 18px var(--hand); color: var(--soft); margin-left: 6px; }
  .q-hint { display: block; margin-top: 2px; font: 700 19px var(--hand); color: var(--soft); }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .pair .q { margin-top: 0; }
  .field { margin-top: 10px; width: 100%; font: 400 17px var(--body); color: var(--ink); background: #fffdf6; border: 2px solid var(--ink); border-radius: 14px 40px 18px 30px / 30px 18px 40px 14px; padding: 12px 16px; transition: box-shadow .2s; }
  textarea.field { min-height: 110px; resize: vertical; }
  .field::placeholder { color: #a8a3b8; }
  .field:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 210, 87, .6); }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* bubbles for age and interests */
  .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { position: relative; cursor: pointer; }
  .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .chip span { display: inline-block; min-width: 46px; text-align: center; font: 500 16px var(--body); padding: 8px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 22px 16px 24px 14px / 16px 24px 14px 22px; transition: background .2s, transform .25s cubic-bezier(.3, 1.7, .5, 1); }
  .chip:hover span { transform: translateY(-2px) rotate(-2deg); }
  .chip input:checked + span { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
  .chip input:focus-visible + span { outline: 2.5px dashed var(--leaf-deep); outline-offset: 3px; }
  .chips.curious input:checked + span { background: #e3f3d2; }
  .other-field { margin-top: 0; width: auto; flex: 1 1 180px; min-width: 160px; padding: 8px 14px; }

  /* star ratings */
  .rating { margin-top: 10px; display: flex; gap: 6px; }
  .rate-star { position: relative; cursor: pointer; width: 46px; height: 46px; }
  .rate-star input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
  .rate-star svg { width: 100%; height: 100%; overflow: visible; transition: transform .3s cubic-bezier(.3, 1.7, .5, 1); }
  .rate-star path { fill: #fff; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; transition: fill .15s; }
  .rate-star.on path { fill: var(--sun); }
  .rate-star.on svg { transform: rotate(-8deg) scale(1.08); }
  .rate-star input:focus-visible + svg { outline: 2.5px dashed var(--leaf-deep); outline-offset: 2px; border-radius: 8px; }
  .rate-ends { display: flex; justify-content: space-between; max-width: 262px; font: 700 17px var(--hand); color: var(--soft); }

  .err { display: none; margin-top: 6px; font: 700 19px var(--hand); color: #d9483b; }
  .invalid .err { display: block; }
  .invalid .field { border-color: #d9483b; }

  .submit-row { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .submit-row .note { font: 700 18px var(--hand); color: var(--soft); max-width: 340px; }
  .send-err { margin-top: 12px; font: 700 19px var(--hand); color: #d9483b; }

  /* thank-you card */
  .thanks { text-align: center; padding: 10px 0; }
  .thanks svg { width: 110px; height: 110px; overflow: visible; animation: popStar .9s cubic-bezier(.3, 1.7, .5, 1) both; }
  @keyframes popStar { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
  .thanks h2 { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); }
  .thanks p { margin: 10px auto 0; max-width: 460px; color: var(--soft); }
  .thanks .links { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  @media (max-width: 640px) { .pair { grid-template-columns: 1fr; gap: 0; } .pair .q + .q { margin-top: 30px; } .rate-star { width: 42px; height: 42px; } }
  @media (prefers-reduced-motion: reduce) { .thanks svg { animation: none; } }

  /* auth pages: a narrower sheet */
  .sheet.narrow { max-width: 500px; }
  .sheet .q:first-of-type { margin-top: 0; }
  .form-links { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 16px; }
  .form-links a, .link-btn { color: var(--leaf-deep); }
  .link-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
  .check { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; font-size: 16px; }
  .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--leaf-deep); }
  .check a { color: var(--leaf-deep); }
  .msg { margin-top: 16px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #e8f4da; font-size: 16px; }
  .msg.warn { background: #fff1c7; }
  .msg.bad { background: #ffe1e7; }
  .sheet h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
  .sheet p.sub { margin-top: 8px; color: var(--soft); }
  .btn.small { font-size: 14px; padding: 6px 14px; box-shadow: 2px 2px 0 var(--sun); }
  .btn.quiet { box-shadow: none; }
  button.sun-btn:disabled, .btn:disabled { opacity: .6; cursor: progress; transform: none; }

  /* status labels: submitted / accepted / declined / withdrawn */
  .pill { display: inline-block; padding: 2px 12px; font: 700 14px/1.6 var(--body); border: 2px solid var(--ink); border-radius: 999px; background: #fff; white-space: nowrap; }
  .pill.submitted { background: var(--sky); }
  .pill.accepted { background: #c9eaa8; }
  .pill.declined, .pill.withdrawn { background: #eee9f2; color: var(--soft); }

  /* "Continue with Google" and the "or" divider */
  /* nav button: "Log in", or "Hi, Sam" once logged in; long names get cut with … */
  .nav-account.is-me { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .g-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; font: 600 16px var(--body); color: var(--ink); text-decoration: none; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--sky); cursor: pointer; transition: transform .2s; }
  .g-btn:hover { transform: translateY(-2px); }
  .g-btn svg { width: 20px; height: 20px; flex: none; }
  .or-line { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; font: 700 18px var(--hand); color: var(--soft); }
  .or-line::before, .or-line::after { content: ""; flex: 1; border-top: 2px dashed #e6e2ee; }
  .code-input { letter-spacing: .5em; font: 800 26px var(--display); text-align: center; max-width: 260px; }
