/* Winterfest landing page ("What's the psychology of your drink?"), from winterfest-drink-psychology/reference.
   Fonts are self-hosted (the page loads nothing from other sites); sizes in rem (1rem = 16px). */
@font-face { font-family: 'Figtree'; src: url('../fonts/Figtree-variable.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/InstrumentSerif-italic-400.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
:root{
    --purple:#5810E0; --purple-600:#4A0DC0; --purple-50:#F2ECFE;
    --aubergine:#221146; --ink:#0F0A1E; --bg-alt:#FAF7FF;
    --border:#E6E1F0; --border-strong:#C9BFDD;
    --fg2:#4A4458; --fg3:#7B758A;
    --magenta:#E91B8B; --magenta-dark:#C0136F;
    --on-dark:#CFC6E4; --accent-dark:#B98CFF; --meta-dark:#9A93AD;
    --glow:0 0.5rem 2rem rgba(88,16,224,.28);
    --card-shadow:0 1.125rem 3rem rgba(34,17,70,.12);
    --sans:Figtree, system-ui, -apple-system, sans-serif; --serif:"Instrument Serif", Georgia, serif;
  }
  *{box-sizing:border-box}
  html,body{margin:0;background:var(--ink)}
  body{font-family:var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased}
  .page{max-width:30rem;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg-alt)}
  em.accent{font-family:var(--serif);font-style:italic;font-weight:400;color:var(--purple)}
  .eyebrow{font-size:0.75rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--fg3)}

  header.top{display:flex;align-items:center;justify-content:space-between;padding:1.125rem 1.375rem;background:#fff;border-bottom:1px solid var(--border)}
  header.top img{height:1.375rem;width:auto;display:block}
  header.top .tag{font-size:0.6875rem;font-weight:600;letter-spacing:.18em;color:var(--fg3)}

  .hero{padding:2.25rem 1.375rem 1.5rem;background:#fff;display:flex;flex-direction:column;gap:0.875rem}
  .hero h1{margin:0;font-size:clamp(2.125rem,10vw,2.75rem);line-height:1.04;font-weight:600;letter-spacing:-.025em;color:var(--aubergine)}
  .hero p{margin:0;font-size:1rem;line-height:1.5;color:var(--fg2)}

  .tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0.625rem;padding:1.25rem 1rem 0.5rem}
  .tile{font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;min-height:6.5rem;padding:0.75rem 0.375rem;border-radius:1.125rem;border:1.5px solid var(--border);background:#fff;color:var(--aubergine);transition:background .26s ease-out,color .26s ease-out,box-shadow .26s ease-out,transform .26s ease-out}
  .tile:hover{transform:translateY(-1px)}
  .tile[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:#fff;box-shadow:var(--glow)}
  .tile:focus-visible,.btn:focus-visible,a:focus-visible{outline:3px solid var(--accent-dark);outline-offset:3px}
  .tile svg{width:2.125rem;height:2.125rem}
  .tile span{font-size:0.875rem;font-weight:600;line-height:1.15;text-align:center}

  .card{margin:0.875rem 1rem 0;background:#fff;border-radius:1.375rem;box-shadow:var(--card-shadow);padding:1.75rem 1.375rem;display:flex;flex-direction:column;gap:0.875rem}
  .card h2{margin:0;font-size:2.125rem;line-height:1.05;font-weight:600;letter-spacing:-.02em;color:var(--aubergine)}
  .card .body{margin:0;font-size:1rem;line-height:1.5;color:var(--fg2)}
  .traits{list-style:none;margin:0.25rem 0 0;padding:0;display:flex;flex-direction:column;gap:0.5rem}
  .trait{display:flex;align-items:center;gap:0.75rem;padding:0.75rem 0.875rem;border-radius:0.875rem;background:var(--bg-alt)}
  .dot{flex:0 0 1.875rem;height:1.875rem;border-radius:62.4375rem;display:flex;align-items:center;justify-content:center}
  .dot.up{background:var(--purple)}
  .dot.down{background:#fff;border:2px solid var(--magenta)}
  .dot svg{width:1rem;height:1rem}
  .trait b{display:block;font-size:0.9375rem;font-weight:600;color:var(--aubergine)}
  .trait small{display:block;font-size:0.875rem;line-height:1.4;color:var(--fg2)}
  .btn{font:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:0.5rem;text-decoration:none;border-radius:62.4375rem;font-weight:600;transition:background .26s ease-out,transform .26s ease-out,box-shadow .26s ease-out}
  .btn-ghost{margin-top:0.375rem;min-height:3rem;border:1px solid var(--border-strong);background:#fff;color:var(--aubergine);font-size:0.9375rem}
  .btn-primary{min-height:3.5rem;background:var(--purple);color:#fff;font-size:1.0625rem;box-shadow:var(--glow);border:0}
  .btn-primary:hover{background:var(--purple-600);transform:translateY(-1px)}
  .btn-outline-dark{min-height:3.25rem;border:1px solid rgba(255,255,255,.4);color:#fff;font-size:1rem}
  .btn svg{width:1.125rem;height:1.125rem}

  .cta{margin-top:2.25rem;background:var(--aubergine);padding:3rem 1.375rem 2.75rem;display:flex;flex-direction:column;gap:1.125rem}
  .cta h2{margin:0;font-size:2rem;line-height:1.06;font-weight:600;letter-spacing:-.02em;color:#fff}
  .cta h2 em{font-family:var(--serif);font-weight:400;color:var(--accent-dark)}
  .cta .secondary{margin-top:0.875rem;padding-top:1.625rem;border-top:1px solid rgba(255,255,255,.14);display:flex;flex-direction:column;gap:0.875rem}
  .cta .secondary p{margin:0;font-size:1.25rem;line-height:1.25;font-weight:600;color:#fff}

  footer{flex:1 0 auto;background:var(--ink);padding:1.75rem 1.375rem calc(2.25rem + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:0.875rem}
  footer img{height:1.25rem;width:auto;align-self:flex-start}
  footer .eyebrow{margin-top:0.625rem;color:var(--accent-dark)}
  footer p{margin:0;font-size:0.9375rem;line-height:1.55;color:var(--on-dark)}

  @media (prefers-reduced-motion:reduce){*{transition:none!important}}
  footer .legal{margin-top:0.5rem;font-size:0.75rem;line-height:1.5;color:var(--meta-dark)}
  .trait b .low{font-weight:500;color:var(--fg2)}
