:root {
  --acid: #eefc18;
  --blue: #2d4fd7;
  --edge: #c8bfae;
  --ink: #0d1117;
  --muted: #5e6470;
  --paper: #efe7d7;
  --surface: #f8f3e9;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; margin: 0; }
a { color: inherit; }
button:focus-visible,
a:focus-visible,
summary:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(239, 231, 215, 0.9);
  border-bottom: 1px solid var(--edge);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { align-items: center; display: flex; gap: 12px; text-decoration: none; }
.brand > span {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font: 900 0.72rem/1 ui-monospace, monospace;
  height: 38px;
  justify-content: center;
  width: 42px;
}
.brand strong { font: 800 0.78rem/1.2 ui-monospace, monospace; text-transform: uppercase; }
.site-header nav { align-items: center; display: flex; gap: 22px; }
.site-header nav a,
.site-header button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.66rem/1 ui-monospace, monospace;
  padding: 12px 0;
  text-decoration: none;
  text-transform: uppercase;
}
.site-header button { border: 1px solid var(--edge); padding: 11px 13px; }

main { overflow: hidden; }
.eyebrow { font: 850 0.65rem/1.3 ui-monospace, monospace; letter-spacing: 0.12em; margin: 0 0 18px; text-transform: uppercase; }

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  min-height: max(720px, calc(100vh - 74px));
}
.support-copy {
  align-content: center;
  background:
    radial-gradient(circle at 12% 14%, rgba(56, 93, 211, 0.12), transparent 25rem),
    linear-gradient(145deg, #faf5ea 0%, #eee7d8 100%);
  border-right: 1px solid var(--ink);
  display: grid;
  padding: clamp(64px, 8vw, 118px) clamp(24px, 7vw, 104px);
}
.support-copy h1,
.impact-heading h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 0;
}
.support-copy h1 { font-size: clamp(4.2rem, 8.3vw, 8.7rem); max-width: 9ch; }
.lede { color: var(--ink); font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.78; margin: 34px 0 0; max-width: 62ch; }
.creator-note { color: var(--muted); line-height: 1.75; margin: 18px 0 0; max-width: 62ch; }
.support-principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.support-principles span { border: 1px solid var(--ink); font: 800 0.62rem/1 ui-monospace, monospace; padding: 10px 12px; text-transform: uppercase; }

.checkout-card {
  align-content: center;
  background:
    radial-gradient(circle at 85% 12%, rgba(238, 252, 24, 0.32), transparent 17rem),
    var(--blue);
  color: white;
  display: grid;
  overflow: hidden;
  padding: clamp(44px, 6vw, 92px);
  position: relative;
}
.card-number { color: rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 17rem; line-height: 1; position: absolute; right: -18px; top: -50px; }
.checkout-card > *:not(.card-number) { position: relative; z-index: 1; }
.checkout-card .eyebrow { color: #d4dcff; }
.checkout-card h2 { font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(3.4rem, 5vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .92; margin: 0; }
.checkout-card > p:not(.eyebrow) { color: #e2e7ff; line-height: 1.7; margin: 24px 0 0; }
.checkout-button {
  align-items: center;
  background: var(--acid);
  border: 1px solid var(--acid);
  color: #0d1117;
  display: inline-flex;
  font: 900 .72rem/1.2 ui-monospace, monospace;
  justify-content: center;
  margin-top: 30px;
  min-height: 58px;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
}
.checkout-button:hover { background: white; border-color: white; }
.checkout-status { color: #e2e7ff; font-size: .75rem; line-height: 1.55; margin-top: 12px !important; }
.checkout-status strong { color: var(--acid); }
.checkout-thanks { border-top: 1px solid rgba(255,255,255,.28); display: grid; gap: 7px; margin-top: 30px; padding-top: 24px; }
.checkout-thanks strong { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.checkout-thanks span { color: #d8def2; font-size: .78rem; line-height: 1.55; }
.payment-note { border: 1px solid rgba(255,255,255,.32); margin-top: 20px; }
.payment-note summary { cursor: pointer; font: 850 .65rem/1.3 ui-monospace, monospace; letter-spacing: .07em; padding: 14px 16px; text-transform: uppercase; }
.payment-note[open] summary { border-bottom: 1px solid rgba(255,255,255,.24); }
.payment-note p { color: #d8def2; font-size: .76rem; line-height: 1.65; margin: 0; padding: 16px; }

.impact-section { background: #0d1117; color: white; padding: clamp(74px, 9vw, 126px) clamp(20px, 4vw, 68px); }
.impact-heading { align-items: end; display: grid; gap: clamp(28px, 7vw, 100px); grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
.impact-heading h2 { font-size: clamp(4rem, 7vw, 7.4rem); max-width: 10ch; }
.impact-heading > p { color: #aeb7c4; line-height: 1.75; margin: 0 0 8px; max-width: 52ch; }
.impact-grid { border: 1px solid #38414e; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.impact-grid article { min-height: 285px; padding: clamp(26px, 3vw, 44px); }
.impact-grid article + article { border-left: 1px solid #38414e; }
.impact-grid article > span { color: var(--acid); font: 850 .68rem/1 ui-monospace, monospace; }
.impact-grid h3 { font-family: "Iowan Old Style", Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.04em; margin: 50px 0 14px; }
.impact-grid p { color: #aeb7c4; font-size: .85rem; line-height: 1.7; margin: 0; }
.impact-cta { align-items: center; background: var(--acid); color: #0d1117; display: flex; gap: 30px; justify-content: space-between; margin-top: 18px; padding: clamp(24px, 3vw, 38px); }
.impact-cta > div:first-child { display: grid; gap: 7px; }
.impact-cta > div:first-child strong { font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; }
.impact-cta > div:first-child span { font-size: .8rem; line-height: 1.55; }
.impact-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.impact-cta a { align-items: center; border: 1px solid #0d1117; display: inline-flex; font: 900 .67rem/1.2 ui-monospace, monospace; justify-content: center; min-height: 48px; padding: 0 16px; text-decoration: none; text-transform: uppercase; }
.impact-cta .impact-coffee { background: #0d1117; color: white; }
.impact-cta .impact-coffee:hover { background: var(--blue); border-color: var(--blue); }
.impact-cta .keep-studying:hover { background: white; }

footer { align-items: center; background: #0d1117; color: white; display: flex; justify-content: space-between; min-height: 130px; padding: 30px clamp(20px, 4vw, 68px); }
footer div { display: grid; gap: 7px; }
footer strong { font: 850 .72rem/1 ui-monospace, monospace; text-transform: uppercase; }
footer span { color: #939daa; font-size: .72rem; }
footer a { border: 1px solid #4b5563; font: 800 .67rem/1 ui-monospace, monospace; padding: 14px 16px; text-decoration: none; text-transform: uppercase; }
footer a:hover { color: var(--acid); }

html[data-theme="moon"] { color-scheme: dark; --acid: #cfe49b; --blue: #8297ff; --edge: #3a4658; --ink: #f4efe6; --muted: #aab4c3; --paper: #090d14; --surface: #111925; background: #090d14; }
html[data-theme="moon"] .site-header { background: rgba(9,13,20,.88); border-bottom-color: rgba(211,179,110,.25); }
html[data-theme="moon"] .brand > span { background: #f4efe6; color: #090d14; }
html[data-theme="moon"] .support-copy { background: radial-gradient(circle at 12% 14%, rgba(130,151,255,.16), transparent 27rem), radial-gradient(circle at 85% 80%, rgba(224,106,86,.08), transparent 24rem), linear-gradient(145deg, #090d14, #111925); }
html[data-theme="moon"] .support-principles span { border-color: #5f6d80; }
html[data-theme="moon"] .checkout-card { background: radial-gradient(circle at 85% 12%, rgba(207,228,155,.2), transparent 17rem), #243b76; }
html[data-theme="moon"] .impact-section,
html[data-theme="moon"] footer { background: #06090f; }

@media (max-width: 900px) {
  .support-hero { grid-template-columns: 1fr; }
  .support-copy { border-bottom: 1px solid var(--ink); border-right: 0; min-height: 650px; }
  .checkout-card { min-height: 610px; }
  .impact-heading { align-items: start; grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid article { min-height: 0; }
  .impact-grid article + article { border-left: 0; border-top: 1px solid #38414e; }
  .impact-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; padding: 0 15px; }
  .brand strong,
  .site-header nav a:first-child { display: none; }
  .site-header nav { gap: 14px; }
  .support-copy { min-height: 590px; padding-left: 20px; padding-right: 20px; }
  .support-copy h1 { font-size: clamp(3.65rem, 18vw, 5.6rem); }
  .support-principles { align-items: stretch; flex-direction: column; }
  .checkout-card { min-height: 580px; padding: 54px 20px; }
  .impact-heading h2 { font-size: clamp(3.6rem, 18vw, 5.5rem); }
  .impact-cta > div:last-child,
  .impact-cta a { width: 100%; }
  footer { align-items: stretch; flex-direction: column; gap: 24px; }
  footer a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
