:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body: #5a5852;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;

    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-pill: 9999px;

    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-base: 16px;
    --space-md: 20px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 80px;

    --max-width: 1200px;
    --font-sans: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background-color: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-section) 0;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--body);
    max-width: 580px;
    line-height: 1.6;
}

/* ===== NAV ===== */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.logo-amp { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== HERO ===== */
.hero-band {
    padding: var(--space-section) 0;
    background: var(--canvas);
    text-align: center;
}

.hero-band .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-base);
}

.hero-title {
    font-size: 64px;
    font-weight: 400;
    letter-spacing: -2.16px;
    line-height: 1.1;
    color: var(--ink);
    max-width: 820px;
    margin-bottom: var(--space-lg);
}

.hero-desc {
    font-size: 18px;
    font-weight: 400;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: var(--space-xxl);
}

.hero-img-wrap {
    width: 100%;
    max-width: 900px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-top: var(--space-xl);
}

.hero-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ===== ARTICLE GRID ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s;
}

.article-card:hover {
    border-color: var(--hairline-strong);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-sm);
}

.article-card-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.2px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-md);
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    align-self: flex-start;
}

.article-card-link:hover { color: var(--primary-active); }

/* ===== FEATURE BAND ===== */
.feature-band {
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--space-lg);
}

.feature-icon {
    font-size: 22px;
    margin-bottom: var(--space-sm);
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.feature-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

/* ===== INFO BAND ===== */
.info-band {
    background: var(--canvas);
}

.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-section);
    align-items: center;
}

.info-split-img {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.info-split-img img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.info-split-text h2 {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.64px;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: var(--space-base);
}

.info-split-text p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--space-base);
}

.info-split-text p:last-child { margin-bottom: 0; }

/* ===== ARTICLE PAGE ===== */
.article-hero {
    padding: var(--space-section) 0 0;
    background: var(--canvas);
}

.article-hero-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-base);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.article-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}

.article-date {
    font-size: 13px;
    color: var(--muted);
}

.article-title {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1.2px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: var(--space-base);
}

.article-lead {
    font-size: 18px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--space-xxl);
    font-weight: 400;
    letter-spacing: 0.08px;
}

.article-cover {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    margin-bottom: 0;
}

.article-cover img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.article-cover figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: var(--space-sm) var(--space-base);
    background: var(--surface-card);
    border-top: 1px solid var(--hairline-soft);
    text-align: center;
}

.article-body {
    max-width: 780px;
    margin: var(--space-section) auto;
    padding: 0 var(--space-xl);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: var(--space-xxl) 0 var(--space-base);
    line-height: 1.3;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: var(--space-xl) 0 var(--space-sm);
    line-height: 1.35;
}

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--space-base);
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-base);
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover { color: var(--primary-active); }

.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding: var(--space-base) var(--space-lg);
    background: var(--surface-card);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: var(--space-xl) 0;
    font-size: 17px;
    color: var(--ink);
    line-height: 1.65;
}

.info-box {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-xl) 0;
}

.info-box h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-sm);
}

.info-box ul { list-style: none; padding: 0; }

.info-box li {
    font-size: 15px;
    color: var(--body);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--hairline-soft);
    line-height: 1.6;
}

.info-box li:last-child { border-bottom: none; }

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-base);
    border-top: 1px solid var(--hairline);
    padding-top: var(--space-xl);
    margin-top: var(--space-section);
}

.article-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s;
}

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

/* ===== CONTACT FORM ===== */
.contact-section {
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-section) var(--space-xl);
}

.contact-inner .section-title {
    text-align: center;
}

.contact-inner .section-subtitle {
    text-align: center;
    margin: 0 auto var(--space-xxl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
    height: 44px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
}

.field-error {
    font-size: 13px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.field-error.visible { display: block; }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    height: 40px;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    justify-content: center;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.form-success {
    display: none;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--r-md);
    padding: var(--space-base) var(--space-lg);
    font-size: 15px;
    color: var(--success);
    margin-top: var(--space-lg);
    text-align: center;
}

.form-success.visible { display: block; }

/* ===== ABOUT PAGE ===== */
.page-hero {
    padding: var(--space-section) 0 var(--space-xxl);
    background: var(--canvas);
    max-width: 780px;
    margin: 0 auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: var(--space-base);
}

.page-hero p {
    font-size: 18px;
    color: var(--body);
    line-height: 1.7;
    max-width: 560px;
}

.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-section);
}

.page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: var(--space-xxl) 0 var(--space-base);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: var(--space-xl) 0 var(--space-sm);
}

.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: var(--space-base);
}

.page-content ul,
.page-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-base);
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.divider {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: var(--space-xxl) 0;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--r-lg);
    padding: var(--space-lg) var(--space-xl);
    max-width: 580px;
    width: calc(100% - 2 * var(--space-xl));
    box-shadow: 0 4px 24px rgba(38,37,30,0.1);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

#cookie-banner.hidden { display: none; }

.cookie-text {
    flex: 1;
}

.cookie-text p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    align-items: center;
    flex-direction: column;
}

.btn-cookie-accept {
    background: var(--ink);
    color: var(--canvas);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.btn-cookie-accept:hover { opacity: 0.85; }

.btn-cookie-reject {
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    padding: 8px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: var(--hairline-strong); color: var(--body); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: var(--space-section) 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xxl);
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-logo span { color: var(--primary); }

.footer-tagline {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 240px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-base);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-base);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

/* ===== ARTICLES LISTING ===== */
.articles-list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-section) var(--space-xl);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; letter-spacing: -1.5px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .info-split { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-inner { grid-template-columns: 1fr 1fr; row-gap: var(--space-xxl); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--space-base); }
    .hero-title { font-size: 36px; letter-spacing: -1px; }
    .hero-desc { font-size: 16px; }
    .section { padding: var(--space-xxl) 0; }
    .section-title { font-size: 28px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        gap: 0;
        padding: var(--space-base) 0;
    }

    .nav-links.open { display: flex; }
    .nav-links li a { padding: var(--space-sm) var(--space-xl); display: block; width: 100%; }

    .nav-toggle { display: flex; }
    .site-nav { position: relative; }

    .articles-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .article-title { font-size: 30px; letter-spacing: -0.5px; }
    .article-hero-inner { padding: 0 var(--space-base); }
    .article-body { padding: 0 var(--space-base); margin-top: var(--space-xxl); }

    .page-hero h1 { font-size: 32px; }
    .page-hero { padding-left: var(--space-base); padding-right: var(--space-base); }
    .page-content { padding: 0 var(--space-base) var(--space-xxl); }

    #cookie-banner {
        flex-direction: column;
        bottom: var(--space-base);
        width: calc(100% - 2 * var(--space-base));
    }

    .cookie-actions { flex-direction: row; width: 100%; }
    .hero-img-wrap img { height: 240px; }
    .article-cover img { height: 240px; }
    .info-split-img img { height: 240px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .articles-list { padding: var(--space-xxl) var(--space-base); }
}
