:root {
    --bg: #F0E9D8;
    --surface: #FBF6E9;
    --surface-2: #FFFDF6;
    --line: #D8CCB2;
    --ink: #2A2620;
    --muted: #7B7361;
    --body: #4A4236;
    --brand: #5E8A00;

    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-round: ui-rounded, "SF Pro Rounded", "Baloo 2", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 48px, 760px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    background: rgba(240, 233, 216, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--ink);
    outline: none;
}

.brand-mini {
    font-family: var(--font-round);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
    text-decoration: none;
}

.doc {
    padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
}

.doc .eyebrow {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.doc h1 {
    font-family: var(--font-round);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    margin: 12px 0 14px;
}

.doc .updated {
    color: var(--muted);
    font-size: 14px;
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.doc h2 {
    font-family: var(--font-round);
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    margin: 38px 0 12px;
}

.doc h3 {
    font-family: var(--font-round);
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--ink);
}

.doc p {
    color: var(--body);
    font-size: 16px;
    margin: 0 0 14px;
}

.doc ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--body);
}

.doc li {
    font-size: 16px;
    margin-bottom: 8px;
}

.doc strong {
    color: var(--ink);
}

.doc a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

.doc a:hover {
    border-bottom-color: var(--brand);
}

.callout {
    padding: 16px 18px;
    margin: 0 0 18px;
    border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.callout p {
    margin: 0;
    color: var(--ink);
}

.site-footer {
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.footer-inner a:hover {
    color: var(--ink);
}
