/* Copyright © 2026 BodyRhythm. All rights reserved. */
:root {
    color-scheme: light dark;
    --background:#f5f5ed;
    --surface:#fff;
    --text:#293831;
    --muted:#596b60;
    --accent:#1f4f40;
    --line:#d7dfd6;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--background);
    color:var(--text);
    font:17px/1.85 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}

header,main,footer {
    max-width:820px;
    margin:auto;
    padding:28px;
}

header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    border-bottom:1px solid var(--line);
}

a {
    color:var(--accent);
    text-underline-offset:5px;
}

a:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:6px;
    border-radius:3px;
}

.brand {
    font-size:25px;
    font-weight:650;
    text-decoration:none;
}

.brand span {
    font-size:13px;
    color:var(--muted);
    margin-left:8px;
    font-weight:400;
}

nav {
    display:flex;
    gap:20px;
    font-size:14px;
}

nav a {
    display:inline-flex;
    align-items:center;
    min-height:44px;
}

main {
    padding-top:48px;
}

h1 {
    font-size:clamp(32px,6vw,44px);
    line-height:1.3;
    letter-spacing:-1px;
    margin:10px 0 16px;
}

h2 {
    font-size:21px;
    line-height:1.5;
    margin:0 0 14px;
}

p {
    margin:12px 0;
    overflow-wrap:anywhere;
}

.eyebrow,.date {
    color:var(--muted);
    font-size:14px;
}

section {
    margin-top:28px;
    padding:24px;
    border:1px solid var(--line);
    background:var(--surface);
    border-radius:20px;
}

.draft {
    background:#fff0d4;
    border:1px solid #d3b27a;
    border-radius:12px;
    padding:12px 18px;
    font-size:14px;
    color:#604518;
    margin-bottom:24px;
}

footer {
    color:var(--muted);
    font-size:13px;
    border-top:1px solid var(--line);
    margin-top:40px;
    padding-bottom:48px;
}

@media (max-width:520px) {
    header {
        flex-wrap:wrap;
        gap:4px;
    }
    header,main,footer {
        padding-left:20px;
        padding-right:20px;
    }
    section {
        padding:20px;
    }
    nav {
        gap:18px;
    }
}

@media (prefers-color-scheme:dark) {
    :root {
        --background:#111725;
        --surface:#1e283a;
        --text:#eaf0fa;
        --muted:#aebbd1;
        --accent:#b8c6ff;
        --line:#36425a;
    }
    .draft {
        background:#332c22;
        border-color:#68573c;
        color:#f1d4a5;
    }
}
