:root {
  color-scheme: light;
  font-size: clamp(112.5%, calc(100% + .25vw), 137.5%);
  --paper: #f6f8f4;
  --ink: #172f2a;
  --muted: #4e6258;
  --accent: #235a49;
  --accent-hover: #173f33;
  --accent-ink: #ffffff;
  --highlight: #417a5e;
  --line: #cdd9ca;
  --surface: #edf1e9;
  --card: #ffffff;
  --focus: #317353;
  --support: #194b3d;
  --support-ink: #f3f8ed;
  --support-muted: #d6e1d3;
  --support-label: #c9dfbf;
  --light-button: #d6e8c6;
  --light-button-hover: #e5f0dc;
  --light-button-ink: #204636;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111b18;
  --ink: #ecf4e9;
  --muted: #b5c8bc;
  --accent: #afd9be;
  --accent-hover: #c6e8d2;
  --accent-ink: #143b28;
  --highlight: #97cdb1;
  --line: #3b5345;
  --surface: #182720;
  --card: #1d2e26;
  --focus: #a8dbb8;
  --support: #173b2e;
  --support-ink: #f3f8ed;
  --support-muted: #d9e8d8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible,button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: clamp(24px,4vw,72px); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 110px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.05rem; font-weight: 650; letter-spacing: -.4px; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 4px; order: 2; }
.header-menu { display: flex; align-items: center; order: 1; margin-left: auto; }
.header nav { display: flex; gap: 12px 28px; font-size: .85rem; }
.header nav a { text-decoration: none; padding-block: 8px; }
.header nav a:hover,.text-link:hover { color: var(--highlight); }
.menu-toggle,.theme-toggle { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); }
.menu-toggle:hover,.theme-toggle:hover { background: var(--surface); }
.header-actions svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme] .theme-toggle { display: inline-flex; }
.header-actions .theme-sun,.header-actions .menu-close { display: none; }
:root[data-theme="dark"] .theme-moon,.menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
:root[data-theme="dark"] .theme-sun,.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
.hero { padding-top: clamp(55px,5vw,100px); padding-bottom: clamp(60px,5vw,100px); }
.eyebrow { font-size: .75rem; font-weight: 650; letter-spacing: 1.7px; line-height: 1.6; text-transform: uppercase; margin: 0 0 26px; }
h1 { font-size: clamp(2.6rem,5.8vw,5rem); letter-spacing: -.045em; line-height: 1.08; font-weight: 550; margin: 0 0 34px; }
h1 span { color: var(--highlight); }
h2 { font-size: clamp(1.8rem,2.8vw,2.5rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 520; margin: 0; }
h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 620; margin: 0 0 16px; letter-spacing: -.02em; }
p { margin: 0 0 22px; }
.lead { font-size: 1.35rem; line-height: 1.5; letter-spacing: -.02em; margin-bottom: 18px; }
.intro { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.actions { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 13px 24px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface); border-color: var(--highlight); }
.text-link { display: inline-block; padding-block: 7px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.section { padding-block: clamp(55px,5vw,85px); }
#idea { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 45px; align-items: flex-end; margin-bottom: 50px; }
.section-heading > * { min-width: 0; }
.section-intro { font-size: 1rem; color: var(--muted); max-width: 45ch; flex-basis: 47%; margin: 0; }
.values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.values article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px,2.2vw,34px); }
.value-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 12px; background: var(--surface); color: var(--highlight); }
.value-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.values p { font-size: 1rem; color: var(--muted); margin: 0; max-width: 65ch; }
.principles-link { display: inline-block; margin-top: 35px; }
.log-section { background: var(--surface); border-block: 1px solid var(--line); }
.feed { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; min-height: 180px; }
.update-card { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: clamp(24px,2vw,32px); display: flex; flex-direction: column; overflow-wrap: anywhere; }
.update-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
.update-source { font-weight: 650; color: var(--highlight); }
.update-card h3 { font-size: 1.1rem; }
.update-card p { font-size: .95rem; color: var(--muted); }
.update-card a { font-size: .9rem; font-weight: 600; text-decoration: none; margin-top: auto; padding-block: 10px; }
.feed-note { font-size: .85rem; color: var(--muted); margin: 25px 0 0; }
.empty-feed { grid-column: 1/-1; padding-block: 22px; color: var(--muted); font-size: 1rem; }
.empty-feed p { margin: 0 0 12px; }
.support { width: calc(100% - 48px); max-width: 1336px; margin: 65px auto 0; padding: clamp(30px,4vw,60px); background: var(--support); color: var(--support-ink); border-radius: 12px; }
.support .eyebrow { color: var(--support-label); }
.support h2 { margin-bottom: 28px; }
.support p { font-size: 1rem; max-width: 70ch; color: var(--support-muted); }
.light { background: var(--light-button); color: var(--light-button-ink); border-color: var(--light-button); }
.light:hover { background: var(--light-button-hover); }
.support .text-link { color: var(--support-ink); }
.supporters-jump { display: inline-block; margin-top: 24px; color: var(--support-muted); font-size: .85rem; text-underline-offset: 5px; }
.supporters-section .section-heading { margin-bottom: 22px; }
.page-back { padding-top: 28px; }
.supporters-page .supporters-section { padding-top: 30px; }
.supporters-section h1 { font-size: clamp(1.8rem,2.8vw,2.5rem); line-height: 1.2; letter-spacing: -.035em; margin: 0; }
.supporters-intro { color: var(--muted); }
.supporters-total { color: var(--highlight); font-weight: 600; white-space: nowrap; margin: 0; }
.supporters-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.supporters-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.supporters-table th { background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 550; }
.supporters-table th,.supporters-table td { padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.supporters-table tbody tr:last-child td { border-bottom: 0; }
.supporters-table td { font-size: .9rem; }
.supporters-table th:last-child,.supporters-table td:last-child { text-align: right; white-space: nowrap; }
.supporters-table td:nth-child(3) { white-space: nowrap; color: var(--muted); font-size: .8rem; }
.supporter-address { font: .8rem/1.6 ui-monospace,monospace; overflow-wrap: anywhere; }
.supporter-rank { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; color: var(--highlight); background: var(--surface); font-weight: 650; }
.supporter-amount { display: inline-block; padding: 5px 10px; border-radius: 6px; color: var(--highlight); background: var(--surface); font-weight: 600; }
.supporters-method { color: var(--muted); font-size: .8rem; margin: 18px 0 8px; }
.supporters-method summary { cursor: pointer; padding-block: 8px; }
.supporters-method p { max-width: 85ch; margin-top: 14px; }
.donation-qr { display: block; width: 270px; max-width: 100%; height: auto; margin: 24px auto; border-radius: 6px; background: white; image-rendering: pixelated; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.about { padding-top: 32px; padding-bottom: 42px; }
.about p { font-size: .85rem; color: var(--muted); margin: 0; max-width: 90ch; }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 28px; border-top: 1px solid var(--line); padding-block: 26px 32px; font-size: .85rem; color: var(--muted); }
.footer span { margin-right: auto; }
.footer a { text-decoration: none; padding-block: 8px; }
dialog { border: 1px solid var(--line); border-radius: 12px; max-width: 650px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: var(--card); box-shadow: 0 25px 100px #122f3333; }
dialog::backdrop { background: #07130dc4; }
.dialog-inner { padding: clamp(28px,4vw,46px); }
.dialog-inner h2 { font-size: 1.7rem; margin-bottom: 25px; }
.dialog-inner p { font-size: 1rem; color: var(--muted); }
.dialog-close { position: absolute; right: 9px; top: 5px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.dialog-inner .donation-note { font-size: .85rem; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 28px; }
.address { overflow-wrap: anywhere; font-family: monospace; background: var(--surface); padding: 16px; border-radius: 6px; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 10; background: var(--card); padding: 15px; }
.skip:focus { top: 12px; }
@media (max-width: 1100px) {
  .values,.feed { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
  .header nav { gap: 18px; }
}
@media (max-width: 900px) {
  .header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; min-height: 76px; padding-block: 14px; }
  .brand { font-size: .95rem; line-height: 1.35; min-width: 0; }
  .header-actions { grid-column: 2; grid-row: 1; order: initial; }
  .header-menu { grid-column: 1/-1; grid-row: 2; order: initial; display: grid; width: 100%; margin: 0; padding-top: 12px; }
  .header nav { display: grid; gap: 0; font-size: 1rem; }
  .header nav a { display: block; min-height: 44px; padding-block: 11px; border-bottom: 1px solid var(--line); }
  :root[data-navigation="enhanced"] .menu-toggle { display: inline-flex; }
  :root[data-navigation="enhanced"] .header-menu { display: none; }
  :root[data-navigation="enhanced"] .header[data-menu-open="true"] .header-menu { display: grid; }
}
@media (max-width: 700px) {
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading .section-intro { margin-top: 25px; }
  .section-heading > a { margin-top: 20px; }
  .values,.feed { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .hero { padding-top: 48px; }
  .lead { font-size: 1.2rem; }
  .intro { font-size: 1rem; }
}
@media (max-width: 450px) {
  .support { margin-top: 40px; }
  .footer span { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
