/* ========================================
   UNCOST.ORG — Light Brutalist Design
   Based on Swiss International / Editorial Brutalism
   ======================================== */

/* ---- RESET ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --bg: #f9f9f9;
  --bg-alt: #eeeeee;
  --bg-invert: #000000;
  --text: #1b1b1b;
  --text-muted: #474747;
  --text-subtle: #777777;
  --text-on-invert: #ffffff;
  --accent: #FF0000;
  --accent-hover: #cc0000;
  --outline: #c6c6c6;
  --surface-high: #e2e2e2;
  --nav-border: transparent;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html.dark {
  --bg: #0f0f0f;
  --bg-alt: #161616;
  --bg-invert: #000000;
  --text: #e8e8e8;
  --text-muted: #999999;
  --text-subtle: #666666;
  --text-on-invert: #e8e8e8;
  --accent: #FF0000;
  --accent-hover: #ff3333;
  --outline: #333333;
  --surface-high: #1e1e1e;
  --nav-border: transparent;
}

/* ---- BASE ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1000;
}

.skip-link:focus {
  top: 8px;
}

/* ---- TYPOGRAPHY ---- */
.label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.label--onDark {
  color: var(--text-subtle);
}

html.dark .label--onDark {
  color: #666;
}

.rule {
  width: 64px;
  height: 4px;
  background: var(--text);
  margin-bottom: 48px;
}

/* ---- LAYOUT ---- */
.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px;
}

.section--alt {
  background: var(--bg-alt);
}

.section--invert {
  background: var(--bg-invert);
  color: var(--text-on-invert);
}

.section__asymmetric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .section__asymmetric {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  transition: border-color 0.2s;
  border-bottom: 2px solid var(--nav-border);
}

.nav.is-scrolled {
  border-bottom-color: var(--text);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.nav__wordmark {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.5;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.nav__links a:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav__theme {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.nav__theme svg {
  pointer-events: none;
}

.icon-moon { display: none; }
html.dark .icon-sun { display: none; }
html.dark .icon-moon { display: block; }

.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-block;
  }
  .nav__hamburger {
    display: none;
  }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 32px;
  gap: 0;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
}

.mobile-menu a,
.mobile-menu button {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 16px 0;
  display: block;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.nav__theme--mobile {
  padding-top: 24px !important;
  border-top: 2px solid var(--outline);
  margin-top: 8px;
}

.theme-label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 900;
  font-family: var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent);
  color: white;
}

.btn--accent {
  background: var(--accent);
  color: white;
}

.btn--accent:hover {
  background: var(--accent-hover);
  color: white;
}

.btn--outline-dark {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}

.btn--outline-dark:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--outline-light {
  background: transparent;
  border: 2px solid var(--text-on-invert);
  color: var(--text-on-invert);
}

.btn--outline-light:hover {
  background: var(--text-on-invert);
  color: var(--bg-invert);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

.hero .section__inner {
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero__title {
  font-size: clamp(2.8rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
  max-width: 100%;
}

.hero__title--sm {
  font-size: clamp(2rem, 7vw, 5rem);
  margin-bottom: 32px;
}

.hero__grid {
  max-width: 700px;
}

.hero__lead {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero__quote {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 48px;
  line-height: 1.4;
  max-width: 600px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    gap: 16px;
  }
}

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}

@media (min-width: 600px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.stat__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.stat__value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__unit {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat__divider {
  height: 2px;
  width: 100%;
  background: var(--text);
  margin-bottom: 16px;
}

.stat__label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stat__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- BELIEFS ---- */
.beliefs {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.belief {
  display: flex;
  gap: 24px;
  align-items: baseline;
}

.belief__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  min-width: 72px;
  letter-spacing: -0.04em;
}

.belief__text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}

/* ---- IMAGINE ---- */
.imagine {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
}

.imagine__statement {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.imagine__proof {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
}

.imagine__cta {
  margin-top: 48px;
}

.imagine__cta a {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.imagine__cta a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- PRINCIPLES ---- */
.principles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  padding: 20px 0;
  border-bottom: 1px solid var(--outline);
  cursor: default;
}

.principle:first-child {
  border-top: 1px solid var(--outline);
}

.principle:hover {
  color: var(--accent);
}

.principle__num {
  color: var(--text-subtle);
  font-weight: 400;
  margin-right: 16px;
  font-size: 14px;
  display: inline-block;
  min-width: 40px;
}

.principles__link {
  margin-top: 32px;
}

.principles__link a {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.principles__link a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- NOT COMMUNISM CALLOUT ---- */
.callout__text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
}

.callout__text:last-child {
  margin-bottom: 0;
}

.callout__text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

.callout__text--accent {
  font-weight: 700;
  color: var(--accent);
}

/* ---- GET INVOLVED ---- */
.involved__lead {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin-bottom: 48px;
}

html.dark .involved__lead {
  color: rgba(255, 255, 255, 0.6);
}

.involved__social {
  margin-top: 64px;
  margin-bottom: 64px;
}

.social-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-tag {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.social-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.involved__participate {
  margin-top: 64px;
}

.participate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .participate-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.participate__item {
  display: block;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-invert);
}

.participate__item:hover .participate__action {
  color: var(--accent);
}

.participate__action {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.participate__desc {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ---- FORM ---- */
.form {
  max-width: 600px;
  margin-bottom: 16px;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 500px) {
  .form__row {
    flex-direction: row;
    gap: 32px;
  }
}

.form__field {
  flex: 1;
  position: relative;
}

.form__field input {
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 700;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-on-invert);
  outline: none;
}

.form__field input:focus {
  border-bottom-color: var(--accent);
  border-bottom-width: 4px;
}

.form__field label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: transform 0.2s, font-size 0.2s;
}

.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label {
  transform: translateY(-28px);
  font-size: 9px;
  color: var(--accent);
}

.form__success {
  display: none;
  color: var(--accent);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 0;
}

.form__success.is-visible {
  display: block;
}

.section--invert .btn--accent {
  background: var(--accent);
  color: white;
}

.section--invert .btn--accent:hover {
  background: white;
  color: var(--bg-invert);
}

/* ---- DONATE ---- */
.donate__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1;
}

.donate__desc {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.donate__note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.donate__btn {
  margin-top: 8px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-alt);
  padding: 48px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__brand {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav a {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__license {
  font-size: 13px;
  color: var(--text-subtle);
  line-height: 1.6;
}

.footer__license a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__license a:hover {
  color: var(--accent);
}

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }

/* ---- ACCESSIBILITY ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .section__inner {
    padding: 80px 24px;
  }

  .hero .section__inner {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .belief {
    flex-direction: column;
    gap: 8px;
  }

  .belief__num {
    font-size: 32px;
    min-width: auto;
  }

  .belief__text {
    font-size: 17px;
  }

  .stats {
    gap: 40px;
  }

  .rule {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .section__inner {
    padding: 64px 20px;
  }

  .hero .section__inner {
    padding-top: 100px;
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__title--sm {
    font-size: 1.8rem;
  }

  .social-tags {
    gap: 8px;
  }

  .social-tag {
    padding: 10px 16px;
    font-size: 11px;
  }
}

/* ---- PRINT ---- */
@media print {
  .nav, .mobile-menu, .skip-link, .nav__theme, .hero__ctas, .form,
  .social-tags, .participate-grid, .footer__nav { display: none; }
  body { color: black; background: white; font-size: 12pt; }
  .section--invert { background: white; color: black; }
  .hero__title { font-size: 36pt; }
}
