/* Shared website foundation. Tokens mirror webapp/src/styles/tokens.css by role. */
@font-face {
  font-display: swap;
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/inter-5.3.0-latin-ext.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-display: swap;
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  src: url("/fonts/inter-5.3.0-latin.woff2") format("woff2-variations");
  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: dark;
  --bs-canvas: #000000;
  --bs-surface: #0a0a0f;
  --bs-surface-raised: #13131b;
  --bs-surface-hover: #1a1a24;
  --bs-border: #22222e;
  --bs-border-strong: #3a3a48;
  --bs-text-primary: #ecebf7;
  --bs-text-secondary: #9a9cb5;
  --bs-text-tertiary: #8385a3;
  --bs-accent: #b39fef;
  --bs-on-accent: #120b2b;
  --bs-focus: #b39fef;
  --bs-action-primary: #4a18ae;
  --bs-action-primary-pressed: #3b1390;
  --bs-on-action-primary: #ffffff;
  --bs-meetup: #f2b866;
  --bs-on-meetup: #2a1a00;
  --browser-theme: #000000;

  --bs-space-1: 4px;
  --bs-space-2: 8px;
  --bs-space-3: 12px;
  --bs-space-4: 16px;
  --bs-space-5: 24px;
  --bs-space-6: 32px;
  --bs-space-7: 48px;
  --bs-space-8: 64px;
  --bs-radius-sm: 8px;
  --bs-radius-md: 12px;
  --bs-radius-lg: 16px;
  --bs-radius-sheet: 20px;
  --bs-radius-pill: 999px;
  --bs-font: -apple-system, BlinkMacSystemFont, "Inter Variable", "Segoe UI", system-ui, sans-serif;
  --bs-duration-fast: 140ms;
  --bs-duration-base: 220ms;
  --bs-ease: cubic-bezier(0.2, 0, 0, 1);
  --bs-target-min: 44px;
  --shell: 1180px;
  font-family: var(--bs-font);
  font-synthesis: none;
}

html[data-theme="light"] {
  color-scheme: light;
  --bs-canvas: #f9f7fc;
  --bs-surface: #f3f0fa;
  --bs-surface-raised: #ffffff;
  --bs-surface-hover: #eeeaf8;
  --bs-border: #e2dfec;
  --bs-border-strong: #cac7d5;
  --bs-text-primary: #252333;
  --bs-text-secondary: #55526a;
  --bs-text-tertiary: #6b6880;
  --bs-accent: #4a18ae;
  --bs-on-accent: #ffffff;
  --bs-focus: #4a18ae;
  --browser-theme: #f9f7fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bs-canvas);
  color: var(--bs-text-primary);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; }
img { display: block; height: auto; max-width: 100%; }
::selection { background: var(--bs-accent); color: var(--bs-on-accent); }
a:focus-visible, button:focus-visible {
  border-radius: var(--bs-radius-sm);
  outline: 2px solid var(--bs-focus);
  outline-offset: 3px;
}

.shell { margin-inline: auto; max-width: var(--shell); padding-inline: var(--bs-space-5); }
.skip-link {
  background: var(--bs-text-primary);
  border-radius: var(--bs-radius-md);
  color: var(--bs-canvas);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

.nav { align-items: center; display: flex; gap: var(--bs-space-4); justify-content: space-between; min-height: 72px; }
.brand { align-items: center; display: inline-flex; gap: 10px; text-decoration: none; }
.brand img { border-radius: var(--bs-radius-sm); height: 28px; width: 28px; }
.brand span { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
nav { align-items: center; display: flex; gap: var(--bs-space-2); }
nav a, .theme-toggle {
  align-items: center;
  background: none;
  border: 0;
  border-radius: var(--bs-radius-sm);
  color: var(--bs-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-height: var(--bs-target-min);
  min-width: var(--bs-target-min);
  padding: 0 12px;
  text-decoration: none;
  transition: background-color var(--bs-duration-fast) var(--bs-ease), color var(--bs-duration-fast) var(--bs-ease);
}
nav a:hover, .theme-toggle:hover { color: var(--bs-text-primary); }
.language-switch, .theme-toggle { padding: 0; }
.theme-toggle [data-theme-label] { display: none; }
.theme-toggle[hidden] { display: none; }
.theme-symbol {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 14px;
  overflow: hidden;
  position: relative;
  width: 14px;
}
.theme-symbol::after { background: currentColor; content: ""; inset: 0 50% 0 0; position: absolute; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--bs-radius-pill);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  transition: background-color var(--bs-duration-fast) var(--bs-ease), border-color var(--bs-duration-fast) var(--bs-ease), color var(--bs-duration-fast) var(--bs-ease);
}
.primary { background: var(--bs-action-primary); color: var(--bs-on-action-primary); }
.primary:hover { background: var(--bs-action-primary-pressed); color: var(--bs-on-action-primary); }
.secondary { border-color: var(--bs-border-strong); color: var(--bs-text-primary); }
.secondary:hover { background: var(--bs-surface-hover); }

.eyebrow {
  color: var(--bs-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  margin: 0 0 var(--bs-space-4);
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 0; text-wrap: balance; }
.lead { color: var(--bs-text-secondary); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; margin: 0; text-wrap: pretty; }

/* Legal, support and safety pages: reading first. */
.legal-page { padding-block: clamp(48px, 8vw, 96px) var(--bs-space-7); }
.legal-page .section-heading { max-width: 760px; }
.legal-page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: var(--bs-space-5); }
.legal-page .lead { max-width: 720px; }
.legal-grid {
  border-top: 1px solid var(--bs-border);
  display: grid;
  gap: 0 var(--bs-space-7);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--bs-space-7);
}
.legal-grid article { border-bottom: 1px solid var(--bs-border); padding-block: var(--bs-space-6); }
.legal-grid .feature-number {
  color: var(--bs-accent);
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  margin-bottom: var(--bs-space-3);
}
.legal-grid h2, .deletion-scope h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 var(--bs-space-3); }
.legal-grid p, .legal-grid li, .deletion-scope p { color: var(--bs-text-secondary); }
.legal-grid a, .deletion-scope a, .english a { color: var(--bs-text-primary); text-decoration-color: var(--bs-accent); text-underline-offset: 3px; }
.legal-grid li + li { margin-top: var(--bs-space-2); }
.deletion-scope {
  background: var(--bs-surface-raised);
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius-lg);
  margin-top: var(--bs-space-6);
  padding: var(--bs-space-5);
}
.deletion-scope .button { color: var(--bs-on-action-primary); text-decoration: none; }
.english { border-top: 1px solid var(--bs-border); padding-block: var(--bs-space-7); }
.english .eyebrow { color: var(--bs-text-tertiary); }
.english h2 { font-size: clamp(26px, 3vw, 36px); }
.english p { color: var(--bs-text-secondary); max-width: 760px; }
.legal-english { margin-bottom: var(--bs-space-8); }

.not-found { align-items: center; display: flex; min-height: 100svh; padding-block: var(--bs-space-8); }
.not-found-panel { margin-inline: auto; max-width: 560px; text-align: center; }
.not-found-panel > img { border-radius: var(--bs-radius-md); height: 64px; margin: 0 auto var(--bs-space-6); width: 64px; }
.not-found-panel .eyebrow { font-variant-numeric: tabular-nums; }
.not-found-panel h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: var(--bs-space-4); }
.not-found-panel > p { color: var(--bs-text-secondary); margin: 0 auto var(--bs-space-6); }

footer {
  align-items: center;
  border-top: 1px solid var(--bs-border);
  color: var(--bs-text-tertiary);
  display: grid;
  font-size: 13px;
  gap: var(--bs-space-5);
  grid-template-columns: auto 1fr auto;
  padding-block: var(--bs-space-5);
}
.footer-brand { color: var(--bs-text-primary); }
.footer-brand img { height: 24px; width: 24px; }
.footer-brand span { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--bs-space-5); justify-content: center; }
.footer-links a { align-items: center; color: var(--bs-text-secondary); display: inline-flex; min-height: var(--bs-target-min); text-decoration: none; }
.footer-links a:hover { color: var(--bs-text-primary); text-decoration: underline; }
footer p { margin: 0; }
.footer-credit { grid-column: 1 / -1; }


@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 620px) {
  .shell { padding-inline: var(--bs-space-4); }
  nav { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
