/* Values from Ressac's Aura charter (Ressac/DESIGN.md, apps/firefox/ui/theme.css), aura Aube. */
@font-face { font-family: "Funnel Display"; font-weight: 300 800; font-display: swap; src: url("fonts/FunnelDisplay-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Display"; font-weight: 300 800; font-display: swap; src: url("fonts/FunnelDisplay-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-weight: 300 700; font-display: swap; src: url("fonts/Geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 300 700; font-display: swap; src: url("fonts/Geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/GeistMono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/GeistMono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --a1: #FF9F7A; --a2: #FF6F91; --a3: #FFD36E;
  --al: #C23A5E; --ad: #FF8FA8;
  --accent: var(--al); --accent-ink: #FFFFFF;
  --bg: #F6F4F2; --sheet: #FFFFFF;
  --text: #15171C; --text-muted: #5D6470;
  --border: rgb(21 23 28 / 0.1);
  --glass: rgb(255 255 255 / 0.55);
  --font-display: "Funnel Display", "Geist", sans-serif;
  --font-ui: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --tap: 120ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 14px;
}
/* Dark follows the system unless the visitor picked a theme with the toggle (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: var(--ad); --accent-ink: #0E1014;
    --bg: #0E1014; --sheet: #17191F;
    --text: #ECEEF2; --text-muted: #9AA1AD;
    --border: rgb(255 255 255 / 0.09);
    --glass: rgb(14 16 24 / 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: var(--ad); --accent-ink: #0E1014;
  --bg: #0E1014; --sheet: #17191F;
  --text: #ECEEF2; --text-muted: #9AA1AD;
  --border: rgb(255 255 255 / 0.09);
  --glass: rgb(14 16 24 / 0.55);
}
:root[data-theme="light"] { color-scheme: light; }
/* The other auras (same values as Ressac's shared/aura.ts); Aube is the default above. */
:root[data-aura="lagon"] { --a1: #4FD1C5; --a2: #3B8BEB; --a3: #B7F0D8; --al: #1D64C8; --ad: #6FB3FF; }
:root[data-aura="verger"] { --a1: #A3D977; --a2: #2F9E6E; --a3: #F2E27D; --al: #2B7A4B; --ad: #8FD18A; }
:root[data-aura="glacier"] { --a1: #9CC3FF; --a2: #7FE0F0; --a3: #E8D9FF; --al: #3563C9; --ad: #9CC3FF; }
:root[data-aura="braise"] { --a1: #FF7A45; --a2: #E8384F; --a3: #FFB86B; --al: #C02A3C; --ad: #FF8A6B; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font-ui); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-muted); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.wordmark { font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 15px; align-items: center; }
.top nav a { text-decoration: none; color: var(--text-muted); }
.top nav a:hover { color: var(--text); }

/* Aura: three blurred colours behind the hero only; frozen when reduced motion is asked. */
.hero { position: relative; isolation: isolate; padding: 72px 0 96px; }
.aura { position: absolute; inset: -120px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; animation: drift 28s ease-in-out infinite alternate; transition: background-color 900ms ease; }
.aura i:nth-child(1) { width: 46vw; height: 40vw; max-width: 560px; max-height: 480px; left: 2%; top: 22%; background: var(--a1); }
.aura i:nth-child(2) { width: 42vw; height: 38vw; max-width: 520px; max-height: 460px; left: 34%; top: 8%; background: var(--a2); animation-duration: 34s; }
.aura i:nth-child(3) { width: 40vw; height: 34vw; max-width: 480px; max-height: 420px; right: 0; top: 30%; background: var(--a3); animation-duration: 40s; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aura i { opacity: .45; } }
:root[data-theme="dark"] .aura i { opacity: .45; }
@keyframes drift { to { transform: translate(6%, 8%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aura i { animation: none; } html { scroll-behavior: auto; } }

.hero h1 { font-size: clamp(44px, 8vw, 92px); max-width: 11ch; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-muted); max-width: 34ch; margin: 20px 0 32px; }
.tag { font: 500 13px/1.4 var(--font-mono); color: var(--text-muted); margin-top: 14px; }
.auras { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.auras span { font: 500 13px/1 var(--font-mono); color: var(--text-muted); margin-right: 4px; }
.auras button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sheet); box-shadow: 0 0 0 1px var(--border); padding: 0; cursor: pointer; transition: transform var(--tap), box-shadow var(--tap); }
.auras button:active { transform: scale(.97); }
.auras button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* Forms */
.quick { display: flex; gap: 8px; max-width: 480px; flex-wrap: wrap; }
.quick input { flex: 1 1 220px; }
input[type=email], input[type=text], select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.btn {
  font: 600 16px/1 var(--font-ui); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 12px;
  padding: 0 20px; min-height: 48px; cursor: pointer; transition: transform var(--tap), filter var(--tap);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }

/* Steps */
section { padding: 72px 0; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: center; padding: 40px 0; }
.step .n { font: 500 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.step h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0; }
.step p { color: var(--text-muted); margin: 0; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px -24px rgb(60 20 30 / .35); background: var(--sheet); }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 20px; } section { padding: 48px 0; } .hero { padding: 40px 0 64px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--sheet); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.section-title { font-size: clamp(30px, 4vw, 44px); }

/* Full invite form */
.invite { background: var(--sheet); border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 4vw, 40px); max-width: 640px; }
.invite h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.field { margin-top: 20px; }
.field > label, fieldset legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--text-muted); }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 15px; transition: transform var(--tap); }
.choices label:active { transform: scale(.97); }
.choices input { accent-color: var(--accent); margin: 0; }
.choices label:has(input:checked) { border-color: var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-turnstile { margin-top: 20px; min-height: 65px; }
.note { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }
.invite .btn { margin-top: 20px; width: 100%; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 14px; color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { text-decoration: none; }
footer .made { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .made img { height: 28px; width: auto; }
/* Kodola badge: one variant per theme, following the same rule as the tokens. */
.badge-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-dark { display: block; } :root:not([data-theme="light"]) .badge-light { display: none; } }
:root[data-theme="dark"] .badge-dark { display: block; }
:root[data-theme="dark"] .badge-light { display: none; }

/* Theme toggle: shows the moon in light, the sun in dark. */
.theme { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); color: var(--text); cursor: pointer; transition: transform var(--tap); }
.theme:active { transform: scale(.97); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* Browser logos in the origin choices, tinted with the text colour. */
.logo { width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }

/* Text pages (thanks, legal, error) */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 16px 72px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 24px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text-muted); }
