:root {
  --ink: #111111;
  --muted: #656565;
  --line: #e8e5e2;
  --paper: #faf9f7;
  --card: #ffffff;
  --patreon: #ff424d;
  --patreon-dark: #d93641;
  --soft-red: #fff0f1;
  --shadow: 0 18px 60px rgba(28, 20, 17, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(250, 249, 247, 0.92);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand span {
  color: var(--patreon);
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.topbar nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--patreon);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 590px;
  padding: 92px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 66, 77, 0.15), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 66, 77, 0.15);
  border-radius: 42% 58% 48% 52%;
  transform: rotate(18deg);
  pointer-events: none;
}

.hero::before {
  left: -110px;
  top: 120px;
}

.hero::after {
  right: -130px;
  bottom: 54px;
  transform: rotate(-25deg);
}

.hero-art {
  width: min(720px, 92vw);
  aspect-ratio: 3000 / 1212;
  margin-bottom: 18px;
  background: transparent;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.eyebrow {
  color: var(--patreon-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 840px;
  margin: 14px auto 18px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--patreon);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: var(--patreon);
  box-shadow: 0 12px 28px rgba(255, 66, 77, 0.25);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--patreon-dark);
  box-shadow: 0 16px 34px rgba(255, 66, 77, 0.34);
  transform: translateY(-2px);
}

.members-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.support-card h2 {
  margin-top: 5px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.member-total {
  min-width: 148px;
  padding: 14px 18px;
  text-align: right;
  background: var(--soft-red);
  border: 1px solid rgba(255, 66, 77, 0.15);
  border-radius: 18px;
}

.member-total span {
  display: block;
  color: var(--patreon-dark);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.member-total small {
  color: var(--muted);
  font-size: 0.75rem;
}

.status-card {
  min-height: 140px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.status-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.status-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.status-card.is-error {
  border-color: rgba(255, 66, 77, 0.24);
  background: #fffafa;
}

.status-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--patreon-dark);
  background: var(--soft-red);
  border-radius: 16px;
  font-size: 1.2rem;
}

.status-icon.is-patreon {
  overflow: hidden;
  color: transparent;
  background: #fff url("../assets/patreon-symbol.png") center / 86px 49px no-repeat;
  border: 1px solid var(--line);
}

.status-icon.is-patreon i {
  visibility: hidden;
}

.loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 66, 77, 0.18);
  border-top-color: var(--patreon);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.member-card {
  min-height: 114px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(28, 20, 17, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.member-card:hover {
  border-color: rgba(255, 66, 77, 0.24);
  box-shadow: 0 14px 36px rgba(28, 20, 17, 0.08);
  transform: translateY(-3px);
}

.member-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border: 3px solid var(--soft-red);
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 900;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  min-width: 0;
}

.member-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tier {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--patreon-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.privacy-note {
  max-width: 780px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.privacy-note i {
  margin-right: 5px;
  color: var(--patreon);
}

.privacy-note a {
  font-weight: 750;
}

.support-card {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 90px;
  padding: clamp(30px, 6vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: white;
  background: var(--ink);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}

.support-card .eyebrow {
  color: #ff8f96;
}

.support-card p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.secondary-button {
  flex: 0 0 auto;
  color: var(--ink);
  background: white;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: white;
  background: var(--patreon);
  transform: translateY(-2px);
}

footer {
  min-height: 92px;
  padding: 24px 6vw;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

footer div {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--patreon);
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 20px;
  }

  .topbar nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 540px;
    padding-top: 72px;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .section-heading,
  .support-card,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-total {
    min-width: 0;
    text-align: left;
  }

  .support-card {
    gap: 28px;
  }

  .secondary-button {
    width: 100%;
  }

  footer div {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
