:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  --background: #ffffff;
  --foreground: #333333;
  --surface: #f8f8f8;
  --muted: #535b64;
  --dialog-muted: #666666;
  color: var(--foreground);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f5f5f5;
  --surface: #000;
  --muted: #b9c0c8;
  --dialog-muted: #bbbbbb;
}

.site-footer { display: flex; justify-content: flex-start; padding: 28px 24px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.theme-toggle::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--foreground); }
.theme-toggle:hover::before { transform: scale(1.15); }

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #005cb9; outline-offset: 5px; }

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 150px;
  padding: 0 4.65%;
}
.wordmark { color: inherit; text-decoration: none; font-size: 30px; font-weight: 400; letter-spacing: .15px; }
nav { margin-left: auto; display: flex; gap: 26px; }
nav button { padding: 8px 0; border: 0; background: transparent; color: inherit; font-size: 18px; letter-spacing: .2px; }
nav button:hover { color: #0075df; }

.hero { text-align: center; padding: 57px 24px 140px; }
h1 { margin: 0 auto; max-width: 900px; font-size: clamp(24px, 2.8vw, 44px); line-height: 1.39; font-weight: 400; letter-spacing: .1px; }
h1 strong { font-weight: 700; }
.keep-together { display: inline-block; }
.time-amount { word-spacing: -0.115em; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 9px 16px; border: 0; border-radius: 9px; font-size: 16px; font-weight: 500; line-height: 1.3; transition: background-color .15s ease, transform .15s ease; }
.button-primary { background: #0075df; color: white; }
.button-primary:hover { background: #0065c3; }
.button-secondary { color: #0063bf; background: #e5f3ff; }
.button-secondary:hover { background: #d5eaff; }
.button:active { transform: translateY(1px); }
.hero-image { display: block; width: min(100%, 850px); height: auto; margin: 85px auto 0; }

.movement { padding: 100px 24px 110px; background: var(--surface); text-align: center; }
.movement-inner { max-width: 800px; margin: 0 auto; }
.movement-eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 16px; font-weight: 500; }
.movement h2 { margin: 0; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.25; font-weight: 500; }
.movement-intro { max-width: 620px; margin: 28px auto 24px; font-size: 21px; line-height: 1.55; }
.movement-description { max-width: 640px; margin: 16px auto; color: var(--muted); font-size: 17px; line-height: 1.75; }
.movement-actions { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; }
.movement-actions .button { min-height: 44px; padding-inline: 24px; }
.movement-price { font-size: 22px; font-weight: 500; }
.movement-price span { font-size: 16px; color: var(--muted); font-weight: 400; }

dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--foreground); background: var(--surface); box-shadow: 0 24px 90px #0002; }
dialog::backdrop { background: #172b4666; }
.dialog-content { position: relative; padding: 42px 32px 32px; }
.dialog-close { position: absolute; right: 12px; top: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--dialog-muted); font-size: 30px; }
.dialog-brand { font-size: 18px; color: var(--dialog-muted); }
h2 { font-size: 30px; margin: 24px 0 16px; }
dialog p { line-height: 1.65; }
.dialog-note { color: var(--dialog-muted); font-size: 14px; }
.dialog-done { margin-top: 12px; }

@media (min-width: 1500px) { .site-header { max-width: 1500px; margin: auto; } }
@media (max-width: 760px) {
  .site-header { min-height: 124px; padding: 24px; flex-direction: column; gap: 20px; }
  .wordmark { font-size: 27px; }
  nav { align-self: flex-end; gap: 26px; }
  nav button { font-size: 16px; }
  .hero { padding: 44px 20px 64px; }
  h1 { max-width: 580px; font-size: clamp(29px, 5.4vw, 39px); line-height: 1.35; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 36px; gap: 12px; flex-wrap: wrap; }
  .hero-actions .button { min-height: 44px; }
  .hero-image { margin-top: 52px; }
  .movement { padding: 64px 24px; }
  .movement-intro { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Shared navigation and pages. */
a.button { text-decoration: none; }
nav a { padding: 8px 0; color: inherit; text-decoration: none; font-size: 18px; letter-spacing: .2px; }
nav a:hover, nav a[aria-current="page"] { color: #0075df; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.page-main { max-width: 1180px; margin: 0 auto; padding: 40px 32px 90px; }
.page-intro { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.eyebrow { color: #0075df; font-size: 16px; margin: 0 0 20px; }
.page-intro h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.page-lead { max-width: 650px; margin: 24px auto 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.community-layout { display: block; max-width: 680px; margin: 0 auto; }
.community-story { padding-top: 28px; }
.community-story h2 { font-size: 32px; font-weight: 500; line-height: 1.3; margin: 0 0 24px; }
.community-story p { color: var(--muted); line-height: 1.75; max-width: 350px; }
.community-steps { list-style: none; counter-reset: steps; margin: 36px 0; padding: 0; }
.community-steps li { counter-increment: steps; position: relative; padding: 0 0 28px 48px; }
.community-steps li::before { content: counter(steps); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 32px; height: 32px; background: #e5f3ff; color: #0063bf; border-radius: 50%; font-size: 14px; }
.community-steps strong { display: block; font-weight: 500; margin-bottom: 8px; }
.community-steps span { color: var(--muted); font-size: 15px; line-height: 1.6; display: block; }
.text-link, .text-button { color: #0063bf; font-size: 15px; font-weight: 500; }
.text-link { text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-button { background: transparent; border: 0; padding: 12px 0; text-align: left; }
.text-button:hover { text-decoration: underline; }
.application-card { background: var(--surface); border: 1px solid #8882; border-radius: 20px; padding: 34px; }
.application-card h2 { margin: 0 0 12px; font-size: 25px; font-weight: 500; }
.form-intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
.interest-form { display: grid; gap: 22px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form-field label, .links-fieldset legend { font-size: 15px; font-weight: 500; }
.form-field input, .form-field textarea, .feed-filter select { width: 100%; min-height: 46px; border: 1px solid #8886; border-radius: 8px; color: var(--foreground); background: var(--background); padding: 12px; font: inherit; font-size: 16px; }
.form-field textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #0075df; outline-offset: 3px; }
.field-hint { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.links-fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.links-fieldset legend { margin-bottom: 8px; }
.links-fieldset > .field-hint { margin-bottom: 14px; }
.link-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.link-row .form-field { flex: 1; }
.remove-link { width: 44px; height: 46px; border: 1px solid #8884; border-radius: 8px; color: var(--muted); background: var(--background); font-size: 24px; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.consent-row input { width: 19px; height: 19px; margin: 2px 0 0; flex-shrink: 0; accent-color: #0075df; }
.privacy-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: -6px 0 0; }
.submit-interest { min-height: 48px; gap: 16px; }
.form-errors { border: 1px solid #b32121; border-radius: 8px; padding: 16px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.form-errors ul { padding-left: 20px; margin: 10px 0 0; }
.field-error { margin: 0; color: #b32121; font-size: 13px; line-height: 1.5; }
[aria-invalid="true"] { border-color: #b32121 !important; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.success-message { padding: 20px 0; line-height: 1.7; }
.success-message p { color: var(--muted); margin-bottom: 28px; }
.success-mark { display: grid; place-items: center; background: #e5f3ff; color: #0063bf; border-radius: 50%; width: 52px; height: 52px; font-size: 26px; margin-bottom: 24px; }
.flow-main .page-lead { text-wrap: balance; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 680px; margin: 0 auto 24px; }
.feed-toolbar > p { font-size: 16px; margin: 0; }
.feed-filter { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.feed-filter { position: relative; }
.feed-filter::after { content: ""; position: absolute; right: 12px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.feed-filter select { appearance: none; -webkit-appearance: none; width: auto; min-height: 42px; font-size: 14px; padding: 10px 24px 10px 10px; }
#channel-filter, #language-filter { padding-right: 26px; }
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; max-width: 680px; margin: 0 auto; }
.post-card { background: var(--surface); border: 1px solid #8882; border-radius: 16px; overflow: hidden; }
.post-author { display: flex; align-items: center; gap: 12px; padding: 24px 24px 0; }
.author-avatar { display: grid; place-items: center; background: #e5f3ff; color: #0063bf; width: 44px; height: 44px; border-radius: 50%; font-size: 14px; flex-shrink: 0; }
.post-author h2 { font-size: 16px; font-weight: 500; margin: 0 0 4px; }
.post-author p { margin: 0; color: var(--muted); font-size: 13px; }
.post-content { padding: 24px; }
.post-content h3 { font-size: 23px; font-weight: 500; line-height: 1.35; margin: 0 0 14px; }
.post-content p { color: var(--muted); line-height: 1.7; font-size: 16px; margin: 0 0 18px; }
.summary-label { font-size: 12px; color: var(--muted); }
.post-embed { padding: 24px 16px 8px; }
.post-embed .text-button { padding-top: 0; }
.embed-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.post-embed iframe { width: 100%; height: 620px; display: block; border: 0; margin-bottom: 12px; background: white; border-radius: 8px; }
.post-link { display: flex; align-items: center; justify-content: space-between; color: #0063bf; text-decoration: none; font-size: 15px; padding: 18px 24px; border-top: 1px solid #8882; }
.post-link:hover { background: #0075df0a; }
.feed-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 28px 0 0; }
.join-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; border-top: 1px solid #8883; padding-top: 36px; }
.join-banner h2 { font-size: 26px; font-weight: 500; margin: 0 0 12px; }
.join-banner p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
:root[data-theme="dark"] .application-card, :root[data-theme="dark"] .post-card { background: #101010; }
:root[data-theme="dark"] .text-link, :root[data-theme="dark"] .text-button, :root[data-theme="dark"] .post-link, :root[data-theme="dark"] nav a:hover, :root[data-theme="dark"] nav a[aria-current="page"], :root[data-theme="dark"] .eyebrow { color: #73baff; }
:root[data-theme="dark"] .field-error { color: #ff9393; }
@media (max-width: 900px) {
  .community-layout { grid-template-columns: 1fr 1.3fr; gap: 32px; }
  .application-card { padding: 26px; }
  .form-pair { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  nav a { font-size: 16px; }
  .page-main { padding: 36px 20px 64px; }
  .page-intro { margin-bottom: 40px; }
  .page-lead { font-size: 16px; }
  .community-layout, .feed-grid { grid-template-columns: 1fr; gap: 24px; }
  .community-story { padding-top: 0; }
  .community-story h2 { font-size: 27px; }
  .community-story p { max-width: none; }
  .community-steps { margin: 24px 0 0; }
  .application-card { padding: 24px 20px; }
  .feed-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .post-author { padding: 20px 20px 0; gap: 10px; flex-wrap: wrap; }
  .post-content { padding: 20px; }
  .post-embed { padding-inline: 20px; }
  .post-link { padding-inline: 20px; }
  .join-banner { flex-direction: column; align-items: flex-start; margin-top: 44px; }
}

.post-embed iframe.video-embed { height: auto; aspect-ratio: 16 / 9; }

.feed-filters { display: flex; flex-wrap: wrap; gap: 16px; }
.feed-toolbar { flex-wrap: wrap; }
.feed-empty { color: var(--muted); padding: 32px 0; line-height: 1.6; }

/* Neutral accents for the community and feed pages. */
.neutral-accent { --page-accent: #333333; --page-accent-soft: #eeeeee; }
:root[data-theme="dark"] .neutral-accent { --page-accent: #eeeeee; }
.neutral-accent nav a:hover,
.neutral-accent nav a[aria-current="page"],
.neutral-accent .eyebrow,
.neutral-accent .text-link,
.neutral-accent .text-button,
.neutral-accent .post-link,
:root[data-theme="dark"] .neutral-accent nav a:hover,
:root[data-theme="dark"] .neutral-accent nav a[aria-current="page"],
:root[data-theme="dark"] .neutral-accent .eyebrow,
:root[data-theme="dark"] .neutral-accent .text-link,
:root[data-theme="dark"] .neutral-accent .text-button,
:root[data-theme="dark"] .neutral-accent .post-link { color: var(--page-accent); }
.neutral-accent .button-primary { background: #333333; }
.neutral-accent .button-primary:hover { background: #555555; }
.neutral-accent .community-steps li::before,
.neutral-accent .success-mark,
.neutral-accent .author-avatar { background: var(--page-accent-soft); color: #333333; }
.neutral-accent .consent-row input { accent-color: #333333; }
.neutral-accent .post-link:hover { background: #3333330a; }
.neutral-accent button:focus-visible,
.neutral-accent a:focus-visible,
.neutral-accent input:focus-visible,
.neutral-accent textarea:focus-visible,
.neutral-accent select:focus-visible { outline-color: var(--page-accent); }

:root[data-theme="dark"] .neutral-accent .button-primary { background: #eeeeee; color: #111111; }
:root[data-theme="dark"] .neutral-accent .button-primary:hover { background: #cccccc; }

.feed-load-more, .feed-end { text-align: center; padding: 24px 0; color: var(--muted); font-size: 14px; }
