:root {
  --ink: #15130f;
  --ink-soft: #4f493f;
  --paper: #fffaf0;
  --paper-deep: #f3ead9;
  --card: #ffffff;
  --gold: #f5b82f;
  --gold-dark: #c88710;
  --green: #566d44;
  --green-soft: #dbe8c7;
  --dark: #10100d;
  --dark-2: #1e1b15;
  --line: rgba(21, 19, 15, 0.12);
  --shadow: 0 22px 60px rgba(26, 21, 12, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--gold);
  color: var(--ink);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 1.25rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(16, 16, 13, 0.9);
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
  color: #fffaf0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

main {
  padding-top: 98px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 98px;
  padding: 0.75rem 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 950;
  gap: 0.55rem;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-sticker {
  background: #050504;
  border: 2px solid rgba(255, 250, 240, 0.82);
  border-radius: 999px;
  height: 48px;
  object-fit: cover;
  padding: 2px;
  width: 48px;
}

.nav-menu {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 0.2rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.82);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.55rem 0.72rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(245, 184, 47, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.nav-toggle span:not(.sr-only) {
  background: #fffaf0;
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 24px;
}

.section {
  padding: 6.5rem 0;
}

.section-dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 184, 47, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fffaf0;
}

.section-muted {
  background: var(--paper-deep);
}

.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(245, 184, 47, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero-grid,
.two-column,
.house-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
}

.hero-copy {
  max-width: 710px;
}

.badge,
.eyebrow {
  align-items: center;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.section:not(.section-dark) .eyebrow {
  color: #76530a;
}

.badge {
  background: rgba(245, 184, 47, 0.13);
  border: 1px solid rgba(245, 184, 47, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 13vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-subtitle,
.lead {
  color: var(--green);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.25;
}

.hero-subtitle {
  color: var(--gold);
}

.hero-body {
  color: rgba(255, 250, 240, 0.84);
  font-size: 1.05rem;
  max-width: 640px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.tier a:hover,
.tier a:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(245, 184, 47, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffd159;
}

.button-secondary {
  border: 1px solid rgba(255, 250, 240, 0.24);
  color: #fffaf0;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 250, 240, 0.09);
}

.audio-card {
  background: rgba(30, 27, 21, 0.92);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 1rem;
}

.header-audio {
  flex: 0 0 292px;
  padding: 0.7rem;
}

.audio-header {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.audio-card h2 {
  color: #fffaf0;
  font-size: 0.88rem;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.audio-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.audio-card audio {
  display: block;
  height: 34px;
  width: 100%;
}

.audio-start {
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  padding: 0.45rem 0.75rem;
}

.audio-note {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.78rem;
  margin: 0.65rem 0 0;
}

.hero-art {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sticker-card {
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 2rem);
  width: min(100%, 440px);
}

.sticker-card img {
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.28));
  margin: 0 auto;
}

.album-card {
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: #fffaf0;
  display: grid;
  gap: 0.9rem;
  max-width: min(100%, 440px);
  padding: 0.85rem;
}

.album-frame {
  background: #050504;
  border-radius: 18px;
  overflow: hidden;
}

.album-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 260ms ease;
  width: 100%;
}

.album-copy {
  padding: 0 0.25rem 0.25rem;
}

.album-copy h2 {
  color: #fffaf0;
  font-size: 1.25rem;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.album-copy p:not(.audio-kicker) {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.album-copy a {
  color: var(--gold);
  font-weight: 950;
  text-decoration: none;
}

.album-copy a:hover,
.album-copy a:focus-visible {
  text-decoration: underline;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prose {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.status-card {
  padding: 1.6rem;
}

.status-card h3 {
  margin-bottom: 1.2rem;
}

.status-card dl {
  margin: 0;
}

.status-card div {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.status-card dt {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.status-card dd {
  font-weight: 800;
  margin: 0.15rem 0 0;
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 760px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mission-grid {
  align-items: stretch;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
}

.check-list,
.conduct-list {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
}

.check-list li,
.conduct-list li {
  border-bottom: 1px solid var(--line);
  font-weight: 760;
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
}

.check-list li:last-child,
.conduct-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  content: "✓";
  font-size: 0.75rem;
  height: 1.25rem;
  left: 0;
  line-height: 1.25rem;
  position: absolute;
  text-align: center;
  top: 0.85rem;
  width: 1.25rem;
}

.callout {
  background: var(--green);
  border-radius: var(--radius);
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.callout p {
  color: rgba(255, 250, 240, 0.82);
  margin-bottom: 0.3rem;
}

.callout strong {
  color: var(--gold);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.goat-grid,
.tiers-grid,
.updates-grid {
  display: grid;
  gap: 1rem;
}

.goat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.goat-card {
  padding: 1.35rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.goat-card:hover {
  transform: translateY(-5px);
}

.goat-card span {
  align-items: center;
  background: var(--gold);
  border-radius: 16px;
  display: inline-flex;
  font-size: 2.1rem;
  font-weight: 1000;
  height: 4rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 4rem;
}

.goat-card p,
.tier p,
.update-card p,
.faq-item p {
  color: var(--ink-soft);
}

.section-note {
  color: var(--green);
  font-weight: 900;
  margin: 2rem auto 0;
  text-align: center;
}

.house-section {
  background:
    linear-gradient(rgba(255, 250, 240, 0.82), rgba(255, 250, 240, 0.92)),
    url("assets/zj-family-house-fund.png") center / cover fixed;
}

.campaign-card {
  overflow: hidden;
}

.campaign-card img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.campaign-content {
  padding: 1.4rem;
}

.progress-wrap {
  background: #ebe0cd;
  border-radius: 999px;
  height: 16px;
  margin: 1rem 0 0.65rem;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 999px;
  height: 100%;
  min-width: 8px;
}

.tiny {
  color: rgba(255, 250, 240, 0.66);
  font-size: 0.83rem;
}

.campaign-content .tiny {
  color: var(--ink-soft);
}

.full-width {
  width: 100%;
}

.disclaimer {
  background: #fff7df;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin: 1rem 0 0;
  padding: 0.9rem;
}

.tiers-grid {
  grid-template-columns: repeat(4, 1fr);
}

.tier {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.25rem;
}

.tier .amount {
  color: var(--green);
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.tier h3 {
  margin-bottom: 0.65rem;
}

.tier a {
  background: var(--ink);
  border-radius: 999px;
  color: #fffaf0;
  font-weight: 900;
  margin-top: auto;
  padding: 0.75rem 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.tier a:hover,
.tier a:focus-visible {
  background: var(--green);
}

.featured-tier {
  background: var(--ink);
  color: #fffaf0;
}

.featured-tier p {
  color: rgba(255, 250, 240, 0.74);
}

.featured-tier .amount {
  color: var(--gold);
}

.featured-tier a {
  background: var(--gold);
  color: var(--ink);
}

.timeline {
  counter-reset: road;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: relative;
}

.timeline li::before {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  content: counter(road);
  counter-increment: road;
  display: inline-flex;
  font-weight: 950;
  height: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2rem;
}

.timeline time {
  color: var(--green);
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.compact-dark {
  padding: 5rem 0;
}

.compact-dark .lead {
  color: var(--gold);
}

.conduct-list {
  color: var(--ink);
  counter-reset: code;
  list-style: none;
}

.conduct-list li {
  padding-left: 2.8rem;
}

.conduct-list li::before {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: var(--ink);
  content: counter(code);
  counter-increment: code;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 1.7rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0.7rem;
  width: 1.7rem;
}

.faq-container {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  overflow: hidden;
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
  list-style: none;
  padding: 1.1rem 1.25rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--green);
  content: "+";
  font-size: 1.4rem;
  position: absolute;
  right: 1.25rem;
  top: 0.88rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
}

.updates-grid {
  grid-template-columns: repeat(3, 1fr);
}

.update-card {
  padding: 1.35rem;
}

.footer {
  background: var(--dark);
  color: #fffaf0;
  padding: 3.5rem 0;
}

.footer-grid {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.footer h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.footer p {
  color: rgba(255, 250, 240, 0.72);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.footer nav a {
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  color: #fffaf0;
  font-weight: 850;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

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

@media (max-width: 1280px) {
  html {
    scroll-padding-top: 150px;
  }

  main {
    padding-top: 118px;
  }

  .nav {
    min-height: 118px;
  }

  .nav-toggle {
    display: block;
  }

  .header-audio {
    flex: 0 1 340px;
  }

  .nav-menu {
    background: rgba(16, 16, 13, 0.98);
    border-top: 1px solid rgba(255, 250, 240, 0.12);
    display: grid;
    gap: 0.3rem;
    left: 0;
    max-height: calc(100vh - 118px);
    opacity: 0;
    overflow: auto;
    padding: 1rem 1.25rem 1.4rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 118px;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 168px;
  }

  main {
    padding-top: 142px;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 142px;
  }

  .brand {
    min-height: 44px;
  }

  .brand-sticker {
    height: 40px;
    width: 40px;
  }

  .nav-toggle {
    order: 2;
  }

  .header-audio {
    flex: 1 0 100%;
    order: 3;
    padding: 0.65rem;
  }

  .nav-menu {
    top: 142px;
  }

  .hero-grid,
  .two-column,
  .house-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: auto;
  }

  .sticker-card {
    max-width: 460px;
    width: 100%;
  }

  .goat-grid,
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline,
  .updates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .audio-card h2 {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.8rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    text-align: center;
  }

  .goat-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .tier {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer nav {
    justify-content: flex-start;
  }
}
