:root {
    --bg: #111;
    --head: #0009;
    --fg: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.72);
    --faint: rgba(255,255,255,.12);
    --descent: #ff4d57;
    --accent: #59d6ff;
}

html {
    font-size: 16px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #111;
    color: var(--fg);
    font-family: "Inter Tight", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    overflow-x: hidden;
}

a {
    color: inherit
}

/* Header + nav */
header {
    max-width: 61.25rem;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 1.25rem;
    z-index:100;
}
header::before {
    content: "";
    position: absolute;
    background: linear-gradient(0deg, rgba(0,0,0,0.5),rgba(0,0,0,1));
    width: 5000px;
    left:  -500px;
    height: 106%;
    z-index: -1;
    backdrop-filter:blur(5px)
}

.wrap {
    max-width: 61.25rem;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 2.5rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none
}

.brand img {
    height: 2.25rem;
    margin-top: -.5rem;
    width: auto;
    display: block
}

.nav-desktop {
    display: none
}

.nav-mobile {
    display: block
}

nav a {
    text-decoration: none;
    color: var(--muted);
    padding: .375rem .5rem;
    border-radius: .625rem;
}

nav a:hover {
    background: rgba(255,255,255,.06);
    color: var(--fg)
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem .75rem;
    border-radius: .875rem;
    border: .0625rem solid var(--faint);
    background: rgba(255,255,255,.03);
    color: var(--fg);
    cursor: pointer;
}

.menu-btn:hover {
    background: rgba(255,255,255,.07)
}

.mobile-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 0rem;
    width: min(100vw,27.5rem);
    border: .0625rem solid var(--faint);
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(.625rem);
    border-radius: 1rem;
    padding: .625rem;
    z-index: 50;
}

.mobile-panel a {
    display: block;
    padding: .625rem;
    border-radius: .75rem;
    text-decoration: none;
    color: var(--muted);
}

.mobile-panel a:hover {
    background: rgba(255,255,255,.06);
    color: var(--fg)
}

.mobile-panel .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .375rem .5rem .625rem;
    color: rgba(255,255,255,.6);
    font-size: .8125rem;
}

.close-btn {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: .875rem;
    padding: .375rem .5rem;
    border-radius: .625rem;
}

.close-btn:hover {
    background: rgba(255,255,255,.06);
    color: var(--fg)
}

@media (min-width: 51.25rem) {
    .nav-desktop {
        display:flex;
        gap: .875rem
    }

    .nav-mobile {
        display: none
    }
}

/* Common UI */
.divider {
    height: .0625rem;
    background: var(--faint);
    margin: 1.375rem 0
}

.prose {
    max-width: 72ch;
    color: var(--muted);
    line-height: 1.7
}

.prose h1,.prose h2,.prose h3 {
    color: var(--fg)
}

h2 + ul, h2 + p {
    margin-top: -1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: .0625rem solid var(--faint);
    padding: .625rem .75rem;
    border-radius: .875rem;
    background: rgba(255,255,255,.03);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem .75rem;
    border-radius: .875rem;
    border: .0625rem solid var(--faint);
    text-decoration: none;
    color: var(--fg);
    background: rgba(255,255,255,.03);
}

.btn:hover {
    background: rgba(255,255,255,.07)
}

.btn.accent {
    border-color: rgba(89,214,255,1);
    background: rgba(89,214,255,.12);
}

.btn.ghost {
    border-color: rgba(255,255,255,.16);
    background: transparent;
}

.prose pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: hidden;
    padding: .5rem
}

/* Hero */
.hero {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    background-image: url('/images/hero-skull.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom right;
}

.footer-support p {
  margin: 0 0 0.875rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  background: transparent;
}

@media (min-width: 51.25rem) {
    .hero {
        grid-template-columns:1.1fr .9fr;
        padding: 5rem 0 8rem;
    }
}

.hero h1 {
    font-size: 2.25rem;
    line-height: 1.05;
    margin: .25rem 0 .75rem;
    letter-spacing: -.02em;
    color: var(--fg);
}

@media (min-width: 51.25rem) {
    .hero h1 {
        font-size:3rem
    }
}

.hero p {
    margin: 0 0 1rem
}

.hero-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.monolith {
    border: none;
    min-height: 13rem;
}


/* Footer */
.footer {
    margin-top: 4.125rem;
    padding-top: 1.375rem;
    border-top: .0625rem solid var(--faint);
    display: grid;
    gap: .875rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    align-items: center;
    justify-content: space-between;
}

.footer-title {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--fg);
    margin-bottom: .25rem;
}

.footer-text {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
    max-width: 80ch;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    align-items: center
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    border: .0625rem solid var(--faint);
    background: rgba(255,255,255,.03);
    padding: .5rem .625rem;
    border-radius: 62.4375rem;
}

.footer-links a:hover {
    background: rgba(255,255,255,.07);
    color: var(--fg)
}

.sponsor-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .625rem;
    border-radius: 62.4375rem;
    border: .0625rem solid rgba(89,214,255,1);
    background: rgba(89,214,255,.10);
    color: var(--fg);
    text-decoration: none;
}

.sponsor-pill:hover {
    background: rgba(255,77,87,.18)
}

.sponsor-pill .dot {
    width: .5rem;
    height: .5rem;
    border-radius: 62.4375rem;
    background: var(--accent);
    display: inline-block;
}
