:root {
    --canvas: #f7f7f4;
    --ink: #26251e;
    --body-color: #5a5852;
    --accent: #f54e00;
    --card: #ffffff;
    --hairline: #e6e5e0;
    --muted: #807d72;
    --surface-strong: #e6e5e0;
    --section-pad: 80px;
    --max-width: 1200px;
    --r-card: 12px;
    --r-btn: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--body-color);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li { margin-bottom: 0.4rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--muted);
    margin-bottom: 16px;
}

hr.divider {
    border: none;
    border-top: 1px solid var(--hairline);
}

.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-logo:hover { color: var(--ink); }

.nav-menu {
    display: flex;
    align-items: stretch;
    list-style: none;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--ink);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    min-width: 270px;
    list-style: none;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-menu > li:hover .nav-dropdown,
.nav-menu > li.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--body-color);
}

.nav-dropdown li a:hover {
    color: var(--ink);
    background: var(--canvas);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.hero {
    padding: var(--section-pad) 0;
    border-bottom: 1px solid var(--hairline);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    max-width: 820px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--body-color);
    max-width: 600px;
    line-height: 1.65;
}

.hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--r-card);
    border: 1px solid var(--hairline);
    margin-top: 48px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.article-card:hover { border-color: var(--muted); }

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--muted);
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.article-card p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0;
}

.article-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 1px;
}

.article-card-link:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.article-header {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 800px;
    margin-bottom: 20px;
}

.article-lead {
    font-size: 1.125rem;
    color: var(--body-color);
    max-width: 680px;
    line-height: 1.65;
}

.article-feature-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--r-card);
    border: 1px solid var(--hairline);
    margin-top: 40px;
}

.article-img-caption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

.article-wrapper {
    padding: 60px 0;
}

.article-body {
    max-width: 760px;
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    font-weight: 400;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
    color: var(--body-color);
}

.article-body ul,
.article-body ol {
    line-height: 1.75;
    margin-bottom: 1.4rem;
    color: var(--body-color);
}

.article-body li { margin-bottom: 6px; }

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 1px;
}

.article-body a:hover { border-color: var(--ink); }

.article-updated {
    font-size: 13px;
    color: var(--muted);
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    margin-bottom: 0;
}

.info-box {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    padding: 20px 24px;
    margin: 32px 0;
}

.info-box-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}

.info-box p,
.info-box li {
    font-size: 14px;
    color: var(--body-color);
}

.related-section {
    border-top: 1px solid var(--hairline);
    padding: 60px 0;
}

.page-header {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--body-color);
    font-size: 1.125rem;
    max-width: 560px;
    margin-bottom: 0;
}

.page-content { padding: var(--section-pad) 0; }

.page-body { max-width: 760px; }

.page-body h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 14px;
}

.page-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-body p {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.page-body ul {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.contact-section {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--hairline);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-btn);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--ink); }

.form-group textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-submit {
    background: var(--ink);
    color: var(--canvas);
    border: none;
    border-radius: var(--r-btn);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    height: 44px;
    transition: opacity 0.15s;
}

.form-submit:hover { opacity: 0.82; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--r-btn);
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #f0faf6;
    color: #1f8a65;
    border: 1px solid #9fd4be;
    display: block;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--body-color);
    max-width: 260px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--ink);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--body-color);
}

.footer-col a:hover { color: var(--ink); }

.footer-disclaimer {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 780px;
}

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom-links a:hover { color: var(--ink); }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 14px 0;
    z-index: 9999;
    display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner p {
    font-size: 14px;
    color: var(--canvas);
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--canvas);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--canvas);
    color: var(--ink);
    border: none;
    border-radius: var(--r-btn);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.cookie-reject {
    background: transparent;
    color: var(--canvas);
    border: 1px solid rgba(247, 247, 244, 0.4);
    border-radius: var(--r-btn);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-pad: 60px; }

    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        height: auto;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
    }

    .nav-menu.open { display: flex; }

    .nav-menu > li {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-menu > li > a {
        padding: 12px 24px;
        height: auto;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-top: 1px solid var(--hairline);
        border-radius: 0;
        min-width: auto;
        padding: 4px 0;
        display: none;
    }

    .nav-menu > li.open .nav-dropdown { display: block; }

    .nav-dropdown li a { padding: 10px 36px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand p { max-width: none; }
}

@media (max-width: 640px) {
    .article-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .article-body, .page-body { max-width: none; }
}
