:root {
    --bg: oklch(14% 0.018 95);
    --bg-deep: oklch(10% 0.012 95);
    --surface: oklch(16% 0.018 95);
    --surface-2: oklch(19% 0.018 95);
    --text: oklch(92% 0.012 95);
    --muted: oklch(69% 0.014 95);
    --faint: oklch(50% 0.012 95);
    --rule: oklch(32% 0.018 95);
    --gold: oklch(84% 0.19 80.46);
    --gold-soft: oklch(82% 0.095 76);
    --patina: oklch(70% 0.12 188);
    --patina-deep: oklch(49% 0.08 188);
    --radius: 4px;
    --max: 1180px;
}

html[data-theme="light"] {
    --bg: oklch(96% 0.012 95);
    --bg-deep: oklch(91% 0.014 95);
    --surface: oklch(98% 0.008 95);
    --surface-2: oklch(94% 0.014 95);
    --text: oklch(20% 0.012 95);
    --muted: oklch(45% 0.012 95);
    --faint: oklch(58% 0.012 95);
    --rule: oklch(84% 0.014 95);
    --gold: oklch(55% 0.12 78);
    --gold-soft: oklch(60% 0.08 76);
    --patina: oklch(48% 0.10 188);
    --patina-deep: oklch(60% 0.07 188);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        linear-gradient(to right, color-mix(in oklab, var(--gold) 6%, transparent) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(to bottom, color-mix(in oklab, var(--gold) 5%, transparent) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 80% 8%, color-mix(in oklab, var(--patina) 9%, transparent), transparent 32%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: radial-gradient(circle, color-mix(in oklab, var(--gold) 24%, transparent) .7px, transparent .7px);
    background-size: 11px 11px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; }

.skip-link {
    position: fixed;
    left: 16px;
    top: 10px;
    transform: translateY(-150%);
    z-index: 20;
    padding: 8px 12px;
    background: var(--gold);
    color: #1a1306;
    text-decoration: none;
    font-size: 12px;
}

.skip-link:focus { transform: none; }

.site-shell {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 88px;
    height: 1px;
    background: var(--gold);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: .18em;
}

.wordmark-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 10px 0 0 color-mix(in oklab, var(--patina) 85%, transparent);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-chip {
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 5px 9px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
}

.icon-button:hover,
.icon-button:focus-visible { border-color: var(--gold); color: var(--gold); }

.hero {
    position: relative;
    padding: 100px 0 76px;
    border-bottom: 1px solid var(--rule);
}

.hero-grid-line {
    position: absolute;
    top: 48px;
    right: 7%;
    width: 170px;
    height: 170px;
    border: 1px solid color-mix(in oklab, var(--gold) 22%, transparent);
    border-radius: 50%;
}

.hero-grid-line::before,
.hero-grid-line::after {
    content: "";
    position: absolute;
    background: color-mix(in oklab, var(--gold) 20%, transparent);
}

.hero-grid-line::before { width: 100%; height: 1px; top: 50%; left: 0; }
.hero-grid-line::after { height: 100%; width: 1px; left: 50%; top: 0; }

.eyebrow,
.section-label,
.meta-label,
.card-domain,
.card-index {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 10px;
    color: var(--muted);
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.rule { display: inline-block; width: 28px; height: 1px; background: var(--gold); }

.hero-copy { max-width: 860px; margin-top: 28px; }

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

h1 {
    max-width: 920px;
    margin-bottom: 24px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 650;
    text-wrap: balance;
}

.hero-description {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 64px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.meta-block {
    background: var(--bg);
    padding: 15px 16px 16px;
    min-height: 76px;
}

.meta-label { display: block; margin-bottom: 7px; color: var(--faint); }
.meta-value { font-size: 12px; }
.meta-value a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.hub-section { padding: 76px 0 0; }

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 30px;
    align-items: end;
    margin-bottom: 24px;
}

.section-label { color: var(--gold); margin-bottom: 8px; }

h2 {
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 0;
}

.section-intro {
    max-width: 520px;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 14px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.hub-card {
    grid-column: span 4;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: color-mix(in oklab, var(--surface) 94%, transparent);
    transition: background .2s ease, transform .2s ease;
}

.hub-card:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
}

.hub-card:nth-child(1),
.hub-card:nth-child(4) { grid-column: span 6; }

.card-topline,
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px;
}

.card-topline { border-bottom: 1px solid var(--rule); }
.card-footer { border-top: 1px solid var(--rule); margin-top: auto; }
.card-index { color: var(--faint); }
.card-symbol { color: var(--gold); font-size: 17px; }

.card-body { padding: 27px 22px 30px; }
.card-domain { color: var(--patina); margin-bottom: 12px; }

h3 {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.025em;
    margin-bottom: 12px;
}

.card-body p {
    color: var(--muted);
    font-size: 13px;
    max-width: 44ch;
    margin-bottom: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 9px;
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status-ready .status-dot { background: var(--patina); }
.status-soon .status-dot { background: var(--gold); }

.card-link {
    font-size: 11px;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.card-link.muted { color: var(--faint); }

.manifesto {
    margin: 90px 0 0;
    padding: 28px 0 86px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 32px;
    border-top: 1px solid var(--rule);
}

.manifesto-mark {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .12em;
}

.manifesto h2 { max-width: 600px; margin-bottom: 12px; }
.manifesto p:last-child { color: var(--muted); margin-bottom: 0; }

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 18px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--rule);
    color: var(--faint);
    font-size: 10px;
    letter-spacing: .04em;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 820px) {
    .site-shell { width: min(calc(100% - 28px), var(--max)); }
    .hero { padding: 72px 0 58px; }
    .hero-grid-line { right: 0; width: 120px; height: 120px; top: 28px; opacity: .65; }
    .hero-meta { grid-template-columns: 1fr; }
    .section-heading { grid-template-columns: 1fr; gap: 10px; }
    .hub-card,
    .hub-card:nth-child(1),
    .hub-card:nth-child(4) { grid-column: span 12; }
    .manifesto { grid-template-columns: 1fr; gap: 12px; margin-top: 70px; padding-bottom: 65px; }
    .site-footer { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
    .domain-chip { display: none; }
    h1 { font-size: 48px; }
    .hero-description { font-size: 15px; }
    .card-body { padding: 23px 18px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hub-card { transition: none; }
}
