/* chessdrift — cream + walnut, chess annotation book feel */

:root {
    --cream: #efe9dc;
    --cream-2: #e8e0cc;
    --ink: #231a0f;
    --muted: #7a6b55;
    --walnut: #6b4829;
    --walnut-deep: #5c3a22;
    --dark-sq: #8f6842;
    --light-sq: #d9b68a;
    --rule: #c9bfa6;
    --rule-soft: #d8cfb8;
}

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

html, body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'General Sans', 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page { min-height: 100vh; }

a { color: var(--walnut-deep); text-decoration: none; }
a:hover { color: var(--ink); }

code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* nav */
.nav {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
    font-size: 14px;
    color: var(--muted);
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
    font-size: 14px;
    padding: 7px 14px;
    border: 1px solid var(--walnut);
    border-radius: 2px;
    color: var(--walnut-deep);
    transition: all 0.15s ease;
}
.nav-cta:hover { background: var(--walnut); color: var(--cream); }

/* hero */
.hero {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}
.hero-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: lowercase;
    margin-bottom: 24px;
}
.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 22px;
    max-width: 880px;
}
.hero-title .accent {
    font-style: italic;
    color: var(--walnut-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    max-width: 720px;
    margin-bottom: 32px;
}
.hero-cta-row {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.15s ease;
    font-weight: 500;
}
.btn-primary {
    background: var(--walnut-deep);
    color: var(--cream);
    border: 1px solid var(--walnut-deep);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--rule);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--walnut); }

/* panel (board + tables) */
.panel {
    background: #f7f2e6;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 22px 24px 18px;
    position: relative;
    overflow-x: auto;
}
.panel pre {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre;
}
.panel .board {
    font-size: 14px;
    line-height: 1.5;
}
.panel-label {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
    border-top: 1px solid var(--rule-soft);
    padding-top: 10px;
}

.c-dim { color: var(--muted); }
.c-accent { color: var(--walnut-deep); font-weight: 500; }

/* sections */
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 28px;
}

/* bullets */
.bullets {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px;
}
.hairline-list {
    list-style: none;
    max-width: 780px;
    border-top: 1px solid var(--rule);
}
.hairline-list li {
    padding: 18px 0 18px 28px;
    border-bottom: 1px solid var(--rule);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    position: relative;
}
.hairline-list li::before {
    content: "§";
    position: absolute;
    left: 0;
    top: 18px;
    color: var(--walnut);
    font-family: 'Fraunces', serif;
    font-size: 15px;
}
.hairline-list code {
    background: var(--cream-2);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 13px;
}

/* bench */
.bench {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px;
}
.bench-table {
    font-size: 13.5px;
    line-height: 1.8;
}

/* install */
.install {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}
.install-card {
    background: #f7f2e6;
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 22px 24px;
    max-width: 780px;
}
.install-card pre {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink);
    white-space: pre;
    overflow-x: auto;
}
.install-card pre code { color: var(--ink); }
.install-card .note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--rule-soft);
    padding-top: 12px;
    line-height: 1.55;
}
.install-card .note code {
    background: var(--cream-2);
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12px;
    color: var(--ink);
}

/* footer */
.footer {
    border-top: 1px solid var(--rule);
    margin-top: 32px;
}
.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 640px) {
    .nav { padding: 18px 20px; }
    .hero, .bullets, .bench, .install { padding-left: 20px; padding-right: 20px; }
    .panel { padding: 16px; }
    .panel pre, .panel .board { font-size: 11.5px; }
    .bench-table { font-size: 11.5px; }
}
