:root {
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --accent: #4b3e98;
  --ink: #111827;
  --muted: #6b7280;
}

* { box-sizing: border-box; }
html { background: #000; color: #fff; font: 16px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
[hidden] { display: none !important; }
.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; }

/* Home */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; margin: 16px; border-radius: 16px; background: url(/assets/discourse-home.jpg) center / cover no-repeat; opacity: .5; }
.marquee { pointer-events: none; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 48px; opacity: .1; }
.row { display: flex; white-space: nowrap; }
.track { display: inline-flex; font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .05em; color: #9ca3af; }
.track span { margin: 0 16px; }
.track.left { animation: scroll-left 180s linear infinite; }
.track.right { animation: scroll-right 180s linear infinite; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
.hero-text { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.hero h1 {
  margin: 0; font-family: var(--mono); font-weight: 600; letter-spacing: .05em; line-height: 1;
  font-size: clamp(48px, 12vw, 128px);
  background: linear-gradient(90deg, #f6339a, #8e51ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.hero p { margin: 16px 0 0; font-family: var(--mono); font-weight: 300; letter-spacing: .025em; font-size: clamp(16px, 2.5vw, 30px); }
@media (min-width: 640px) { .hero-bg { margin: 32px; } .marquee { gap: 80px; } .track { font-size: 48px; } .track span { margin: 0 32px; } .hero p { margin-top: 24px; } }
@media (min-width: 1024px) { .hero-bg { margin: 64px; } .marquee { gap: 112px; } .track { font-size: 60px; } }

/* Pages with a card */
.page { padding: 24px 16px; max-width: 1100px; margin: 0 auto; width: 100%; }
@media (min-width: 640px) { .page { padding: 48px; } }
@media (min-width: 1024px) { .page { padding: 96px; } }
.bar { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
@media (min-width: 640px) { .bar { flex-direction: row; align-items: center; } }
.bar-title { display: flex; align-items: center; gap: 16px; }
.bar h1 { margin: 0; font-size: 30px; font-weight: 700; }
@media (min-width: 640px) { .bar h1 { font-size: 36px; } }
.back { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: var(--accent); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .3); }
.back:hover { background: #f3f4f6; }
.back svg { width: 20px; height: 20px; }
.lang { display: flex; flex-wrap: wrap; gap: 8px; }
.lang button { cursor: pointer; border: 0; border-radius: 8px; padding: 8px 16px; font: inherit; font-weight: 600; background: #d1d5db; color: #374151; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--accent); }
.card { border-radius: 16px; background: #fff; color: var(--ink); padding: 24px; }
@media (min-width: 640px) { .card { padding: 40px; } }
.card h2 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
.card h2:first-of-type { margin-top: 12px; }
.card p { margin: 0 0 12px; }
.card ul { margin: 0 0 12px; padding-left: 24px; }
.card li { margin: 4px 0; }
.card .meta { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.card a { color: var(--accent); }

/* Support */
.support .block { display: grid; gap: 24px; padding: 32px 0; border-top: 1px solid #e5e7eb; }
.support .block:first-child { border-top: 0; padding-top: 8px; }
@media (min-width: 768px) { .support .block { grid-template-columns: 1fr 2fr; gap: 48px; } }
.support .lead h2 { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.support .lead p { color: var(--muted); }
.support .tile { border-radius: 16px; background: #f9fafb; padding: 24px; max-width: 360px; }
.support .tile h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.support dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.support dt { color: var(--muted); }
.support dd { margin: 0; font-weight: 600; }
.support address { font-style: normal; color: var(--muted); font-size: 14px; }

/* Footer */
footer { max-width: 80rem; margin: 0 auto; padding: 40px 24px 48px; text-align: center; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; font-size: 14px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--accent); }
.social { margin-top: 64px; display: flex; justify-content: center; gap: 40px; }
.social a:hover { color: var(--accent); }
.social svg { width: 24px; height: 24px; }
.copy { margin: 40px 0 0; font-size: 14px; }
