:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --secondary: #b45309;
    --text-primary: #1f2933;
    --text-secondary: #5f6b67;
    --text-muted: #8a948f;
    --bg-primary: #fffdf7;
    --bg-secondary: #f6f4ef;
    --bg-dark: #17201d;
    --border: #ded8cc;
    --surface-shadow: 0 14px 36px rgba(31, 41, 51, 0.06);
}

html {
    background: #f3efe7;
}

body {
    color: var(--text-primary);
    background: #f3efe7;
    line-height: 1.75;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(31, 41, 51, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 41, 51, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.container,
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 20px 64px;
    background: transparent;
    box-shadow: none;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

.back-link,
.breadcrumb,
.crumb,
body > p:first-of-type {
    color: var(--text-secondary);
}

.hero,
.card,
.guide-card,
.section-card,
.benchmark,
.matrix,
.note,
.highlight {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--surface-shadow);
}

.hero {
    padding: 38px;
    margin-bottom: 28px;
}

.eyebrow,
.label,
.meta,
.tag {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.16);
}

h1 {
    color: var(--text-primary);
    letter-spacing: 0;
}

h2,
h3 {
    color: var(--text-primary);
    letter-spacing: 0;
}

p,
li,
.section-intro,
.hero p {
    color: var(--text-secondary);
}

.hero-stat,
.link-list a {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.note {
    background: #fff9ea;
    border-color: #ead8ad;
}

.note p,
.note li {
    color: var(--text-secondary);
}

pre {
    background: var(--bg-dark);
    color: #f8f1df;
    border-radius: 8px;
}

table th {
    background: #efe8da;
    color: var(--text-primary);
}

table td,
table th {
    border-color: var(--border);
}

.footer {
    color: var(--text-secondary);
    border-top-color: var(--border);
}

.cta-btn,
.btn,
button,
input[type="submit"] {
    border-radius: 8px;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

#cookieConsent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--bg-dark);
    color: #f8f1df;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.28);
}

#cookieConsent .cookie-copy {
    flex: 1;
    min-width: 240px;
    color: rgba(248, 241, 223, 0.86);
    font-size: 14px;
    line-height: 1.6;
}

#cookieConsent a {
    color: #99f6e4;
    text-decoration: underline;
}

#cookieConsent .cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookieConsent button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(248, 241, 223, 0.24);
    background: transparent;
    color: #d6e4dc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

#cookieConsent button[data-cookie-choice="accepted"] {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

@media (max-width: 720px) {
    .container,
    .wrap {
        padding: 24px 16px 48px;
    }

    .hero {
        padding: 26px;
    }

    h1 {
        font-size: 32px;
    }
}
