:root {
  color-scheme: light;
  --z-language-menu: 60;
  --z-public-header: 35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--ds-canvas);
  color: var(--ds-ink);
  font-family: var(--ds-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body[data-public-page] { --public-soft: #efe5df; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ds-accent-strong); outline-offset: 4px; }
::selection { background: var(--ds-accent); color: var(--ds-ink); }
figure { margin: 0; min-width: 0; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.public-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--ds-ink);
  color: var(--ds-surface);
  border-radius: var(--ds-radius-sm);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-public-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px max(24px, calc((100% - 1200px) / 2));
  background: var(--ds-canvas);
  border-bottom: 1px solid var(--ds-line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-symbol { display: block; width: 34px; height: 34px; object-fit: contain; }
.brand-wordmark { font-size: 21px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.brand-wordmark > span { font-weight: 500; color: var(--ds-muted); }
.public-nav { display: flex; align-items: center; gap: 2px; }
.public-nav > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s var(--ds-ease), background-color .18s var(--ds-ease);
}
.public-nav > a:first-child { display: none; }
.public-nav > a:hover, .public-nav > a[aria-current=page] { background: var(--ds-accent-soft); color: var(--ds-accent-strong); }
.header-actions, .auth-links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.auth-links > a:first-child { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; padding: 8px 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  transition: background-color .18s var(--ds-ease), color .18s var(--ds-ease);
}
.button > span { flex-shrink: 0; font-size: 21px; line-height: 1; }
.button-primary { background: var(--ds-accent); color: var(--ds-ink); }
.button-primary:hover { background: #ff806c; }
.button-secondary { border-color: var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); }
.button-light { background: var(--ds-surface); color: var(--ds-ink); }
.button-light:hover, .button-secondary:hover { background: var(--ds-accent-soft); }
.auth-links .button { min-height: 44px; padding: 10px 15px; font-size: 16px; gap: 8px; }
.menu-toggle, .mobile-nav-actions { display: none; }
.language-slider { position: relative; display: flex; align-items: center; min-width: 0; }
.public-language-select { width: 52px; min-width: 52px; min-height: 44px; color: var(--ds-ink); }
.public-language-select[data-open] { z-index: var(--z-language-menu); }
.language-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 52px;
  min-height: 44px;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  border-radius: var(--ds-radius-sm);
  color: inherit;
  cursor: pointer;
}
.language-picker-trigger:hover { background: var(--ds-accent-soft); }
.language-picker-chevron { width: 12px; height: 12px; flex: 0 0 12px; transition: transform .18s var(--ds-ease); }
.public-language-select[data-open] .language-picker-chevron { transform: rotate(180deg); }
.language-picker-panel {
  position: absolute;
  inset-block-start: calc(100% + 14px);
  inset-inline-end: 0;
  z-index: var(--z-language-menu);
  width: 224px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow);
  color: var(--ds-ink);
}
.language-picker-panel[hidden], .public-language-select:not([data-open]) .language-picker-panel { display: none; }
.language-options { display: grid; gap: 3px; max-height: calc(100dvh - 150px); overflow-y: auto; scrollbar-width: thin; }
.language-option { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: var(--ds-radius-sm); font-size: 16px; font-weight: 700; }
.language-option:hover, .language-option:focus-visible { background: var(--ds-canvas); }
.language-option.active { background: var(--ds-accent-soft); color: var(--ds-accent-strong); }
.language-option-name { min-width: 0; overflow-wrap: anywhere; }
.language-flag-frame { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 18px; overflow: hidden; border: 1px solid var(--ds-line); border-radius: 4px; }
.language-flag-svg { display: block; width: 100%; height: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  margin-block: 36px;
}
.hero-copy { min-width: 0; padding-block: 8px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ds-accent-strong); font-size: 14px; font-weight: 700; line-height: 1.5; }
.eyebrow-dot { display: block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-accent-strong); }
.hero h1 { max-width: 17ch; margin: 0 0 20px; font-size: clamp(38px, 4.5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; text-wrap: balance; }
.hero h1 > span { display: block; color: var(--ds-accent-strong); }
.hero-lead { max-width: 52ch; margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: var(--ds-muted); }
.hero-actions { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; gap: 12px; font-size: 16px; font-weight: 800; line-height: 1.5; }
.text-link > span { flex-shrink: 0; font-size: 20px; }
.text-link:hover { color: var(--ds-accent-strong); }
.hero-values { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ds-muted); }
.hero-values > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-values > span:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ds-accent-strong); }
.hero-photo, .story-photo { min-width: 0; align-self: center; }
.hero-photo picture, .story-photo picture { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: var(--public-soft, #efe5df); }
.hero-photo picture img, .story-photo picture img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.hero-photo figcaption, .story-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; color: var(--ds-muted); font-size: 14px; line-height: 1.5; }
.hero-photo figcaption > img { flex-shrink: 0; width: 24px; height: 24px; }
.autonomy { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 52px; padding-block: 30px; border-block: 1px solid var(--ds-line); }
.section-heading { min-width: 0; max-width: 780px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .privacy-copy h2, .community-story h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.18; letter-spacing: -.04em; text-wrap: balance; }
.autonomy .section-heading { margin: 0; }
.autonomy .section-heading h2 { margin-bottom: 0; max-width: 20ch; }
.section-body { min-width: 0; }
.section-body p, .how-it-works > p, .privacy-copy > p:not(.eyebrow), .community-story > div > p:not(.eyebrow) { max-width: 65ch; margin: 0 0 12px; color: var(--ds-muted); font-size: 18px; line-height: 1.65; }
.section-body p:last-child { margin-bottom: 0; }
.how-it-works { padding-block: 36px; }
.how-it-works > p { margin-top: -4px; margin-bottom: 22px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps-grid article { min-width: 0; padding-top: 16px; border-top: 1px solid var(--ds-line); }
.section-number { color: var(--ds-accent-strong); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.steps-grid h3 { margin: 10px 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.steps-grid p { margin: 0; color: var(--ds-muted); font-size: 18px; line-height: 1.6; }
.privacy-story, .community-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 42px; padding-block: 36px; border-top: 1px solid var(--ds-line); }
.privacy-copy, .community-story > div { min-width: 0; }
.privacy-copy .text-link, .community-story .text-link { margin-top: 4px; }
.privacy-copy h2, .community-story h2 { max-width: 21ch; }
.resources { padding-block: 32px; border-top: 1px solid var(--ds-line); }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.resource-link { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-block: 18px; border-top: 1px solid var(--ds-line); }
.resource-link:hover h3, .resource-link:hover .resource-action { color: var(--ds-accent-strong); }
.resource-eyebrow { color: var(--ds-muted); font-size: 14px; font-weight: 700; line-height: 1.5; }
.resource-link h3 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.resource-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: auto; font-size: 16px; font-weight: 800; }
.resource-action > span { font-size: 22px; color: var(--ds-accent-strong); }
.join-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; margin-block: 0 30px; border-radius: 16px; background: #f1ddd3; color: var(--ds-ink); }
.join-band .eyebrow { margin-bottom: 8px; }
.join-band h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.join-band p:not(.eyebrow) { max-width: 58ch; margin: 0; font-size: 18px; line-height: 1.6; }
.join-band .button { flex-shrink: 0; max-width: 300px; background: var(--ds-ink); color: var(--ds-surface); }
.join-band .button:hover { background: #343438; }
.site-footer { padding-block: 0 24px; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-block: 4px 18px; }
.footer-main nav { display: grid; grid-template-columns: repeat(3, auto); gap: 0 24px; font-size: 16px; font-weight: 600; color: var(--ds-muted); }
.footer-main nav a { display: flex; align-items: center; min-height: 44px; }
.footer-main nav a:hover, .footer-bottom a:hover { color: var(--ds-accent-strong); }
.footer-network { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 16px; font-weight: 800; }
.footer-network > span { color: var(--ds-accent-strong); font-size: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--ds-line); padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--ds-muted); }
.footer-bottom > div { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.editorial-hero h1 { max-width: 20ch; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.045em; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 14px; color: var(--ds-accent-strong); font-size: 16px; font-weight: 700; }
.back-link:hover { color: var(--ds-ink); }
.editorial-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 40px; padding-block: 0 36px; }
.topic-navigation { position: sticky; top: 94px; padding-top: 18px; border-top: 1px solid var(--ds-line); }
.topic-navigation .eyebrow { margin-bottom: 8px; }
.topic-navigation nav { display: grid; gap: 4px; }
.topic-navigation a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 16px; font-weight: 700; color: var(--ds-muted); }
.topic-navigation a:hover, .topic-navigation a[aria-current=page] { background: var(--ds-accent-soft); color: var(--ds-accent-strong); }
.topic-navigation a > span { flex-shrink: 0; font-size: 18px; }
.editorial-sections { min-width: 0; }
.editorial-sections article { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; padding-block: 22px 24px; border-top: 1px solid var(--ds-line); }
.editorial-sections .section-number { padding-top: 6px; }
.editorial-sections h2 { margin: 0 0 10px; font-size: clamp(25px, 2.2vw, 31px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.editorial-sections p { max-width: 72ch; margin: 0; color: var(--ds-muted); font-size: 18px; line-height: 1.7; }
.not-found { display: flex; flex-direction: column; align-items: flex-start; padding-block: 48px; gap: 20px; }
.not-found .eyebrow { margin: 0; }
.not-found h1 { max-width: 800px; margin: 0; font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }

@media (max-width: 1199px) {
  .site-header { min-height: 68px; padding: 10px 24px; gap: 12px; }
  .brand-wordmark { font-size: 20px; }
  .header-actions { gap: 8px; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-sm); background: var(--ds-surface); color: var(--ds-ink); cursor: pointer; }
  .menu-toggle > span { display: grid; gap: 6px; width: 17px; }
  .menu-toggle > span > span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s var(--ds-ease); }
  .site-header[data-menu-open] .menu-toggle > span > span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header[data-menu-open] .menu-toggle > span > span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .public-nav { position: absolute; inset: calc(100% + 8px) 16px auto; display: none; padding: 10px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow); max-height: calc(100dvh - 92px); overflow-y: auto; }
  .site-header[data-menu-open] .public-nav { display: grid; gap: 4px; }
  .public-nav > a, .public-nav > a:first-child { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: 16px; }
  .mobile-nav-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--ds-line); }
  .public-language-select, .language-picker-trigger { min-width: 44px; width: 44px; min-height: 44px; }
  .language-picker-panel { inset-inline-end: 0; }
  .hero { gap: 30px; }
}

@media (max-width: 959px) {
  html { scroll-padding-top: 84px; }
  .auth-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-block: 28px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 22ch; font-size: clamp(38px, 6.8vw, 58px); margin-bottom: 16px; }
  .hero-lead { max-width: 65ch; margin-bottom: 18px; }
  .hero-values { margin-top: 14px; }
  .hero-photo { width: 100%; }
  .hero-photo picture { max-height: none; }
  .autonomy { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .autonomy .section-heading h2 { max-width: none; }
  .how-it-works { padding-block: 30px; }
  .steps-grid { gap: 22px; }
  .steps-grid h3 { font-size: 22px; }
  .privacy-story, .community-story { gap: 26px; padding-block: 30px; }
  .section-heading h2, .privacy-copy h2, .community-story h2 { font-size: 32px; }
  .resource-grid { gap: 20px; }
  .resource-link h3 { font-size: 24px; }
  .join-band { padding: 26px; gap: 22px; }
  .footer-main { flex-wrap: wrap; gap: 20px; }
  .footer-network { margin-left: auto; }
  .editorial-hero h1 { max-width: 23ch; font-size: clamp(34px, 5.4vw, 48px); }
  .editorial-body { grid-template-columns: 1fr; gap: 6px; padding-block: 0 28px; }
  .topic-navigation { position: static; min-width: 0; padding-block: 12px; border-bottom: 1px solid var(--ds-line); }
  .topic-navigation .eyebrow { margin-bottom: 8px; }
  .topic-navigation nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .topic-navigation a { max-width: 100%; padding: 8px 10px; }
  .topic-navigation a > span { display: none; }
}

@media (max-width: 639px) {
  .site-header { min-height: 60px; padding: 8px 16px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-wordmark { font-size: 18px; letter-spacing: -.8px; }
  .brand-symbol { width: 30px; height: 30px; }
  .header-actions { gap: 4px; }
  .public-wrap { width: calc(100% - 32px); }
  .hero { margin-block: 22px 26px; gap: 20px; }
  .hero h1 { max-width: 18ch; font-size: clamp(36px, 9.2vw, 48px); letter-spacing: -.045em; margin-bottom: 16px; }
  .hero .eyebrow { max-width: 100%; }
  .hero-lead { margin-bottom: 18px; }
  .hero-actions { gap: 8px 18px; }
  .hero-actions .button { padding-inline: 16px; }
  .hero-values { gap: 6px 14px; }
  .hero-photo picture, .story-photo picture { border-radius: 12px; }
  .hero-photo figcaption, .story-photo figcaption { font-size: 14px; }
  .section-heading h2, .privacy-copy h2, .community-story h2 { font-size: 30px; }
  .section-heading { margin-bottom: 18px; }
  .autonomy { padding-block: 24px; gap: 12px; }
  .how-it-works { padding-block: 28px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid article { padding-top: 14px; }
  .steps-grid h3 { margin-top: 8px; }
  .privacy-story, .community-story { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .community-story > .story-photo { order: 2; }
  .community-story > div { order: 1; }
  .resources { padding-block: 28px; }
  .resource-grid { grid-template-columns: 1fr; gap: 0; }
  .resource-link { gap: 8px; padding-block: 16px; }
  .resource-link h3 { font-size: 24px; }
  .resource-action { margin: 0; }
  .join-band { align-items: flex-start; flex-direction: column; padding: 24px 20px; gap: 18px; margin-bottom: 26px; border-radius: 12px; }
  .join-band h2 { font-size: 30px; }
  .join-band .button { max-width: 100%; }
  .footer-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 0 12px; }
  .footer-main nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
  .footer-network { margin: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-bottom > div { gap: 4px 16px; }
  .editorial-hero h1 { max-width: 22ch; font-size: clamp(32px, 8.5vw, 42px); }
  .back-link { margin-top: 10px; }
  .editorial-sections article { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding-block: 20px; }
  .editorial-sections h2 { font-size: 25px; }
  .not-found { padding-block: 36px; }
}

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