:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --success: #1f8a65;
    --error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
    --font-main: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --section: 80px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

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

h1, h2, h3 { font-weight: 400; color: var(--ink); letter-spacing: -0.11px; line-height: 1.2; }
h1 { font-size: 2.25rem; letter-spacing: -0.72px; }
h2 { font-size: 1.625rem; letter-spacing: -0.325px; }
h3 { font-size: 1.375rem; }

p { color: var(--body); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.11px;
    white-space: nowrap;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--rounded-md);
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.nav-menu a:hover,
.nav-menu a.active { background: var(--surface-strong); color: var(--ink); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--rounded-md);
}

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

.hero-band {
    background: var(--canvas);
    padding: var(--section) 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hero-label {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    border-radius: var(--rounded-pill);
    padding: 4px 10px;
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: -2.16px;
    line-height: 1.1;
    color: var(--ink);
    max-width: 780px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-image {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

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

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

.section-band--alt { background: var(--canvas-soft); }
.section-band--card { background: var(--surface-card); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }

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

.section-title {
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-body {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition: border-color 0.15s;
}

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

.card-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 4px;
}

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

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.card-excerpt {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.card-date {
    font-size: 13px;
    color: var(--muted-soft);
    margin-top: auto;
}

.article-hero {
    background: var(--canvas);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }

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

.article-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.72px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 20px;
}

.article-desc {
    font-size: 17px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted-soft);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-cover {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.article-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
}

.article-cover figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
    text-align: center;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.article-body h2 {
    font-size: 1.625rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--ink);
}

.article-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--ink);
}

.article-body p { margin-bottom: 20px; color: var(--body); line-height: 1.7; }

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--body);
    line-height: 1.7;
}

.article-body li { margin-bottom: 6px; }

.article-body figure {
    margin: 32px 0;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-body figure img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.article-body figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 16px;
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.article-body th {
    background: var(--surface-strong);
    color: var(--ink);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline-strong);
}

.article-body td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--hairline);
    color: var(--body);
}

.article-body tr:last-child td { border-bottom: none; }

.info-box {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box p { margin-bottom: 0; font-size: 15px; }

.external-sources {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-top: 40px;
}

.external-sources h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--muted);
    margin-bottom: 12px;
}

.external-sources ul { list-style: none; padding: 0; }
.external-sources li { margin-bottom: 8px; }
.external-sources a { font-size: 14px; color: var(--body); }
.external-sources a:hover { color: var(--primary); }

.form-section {
    background: var(--canvas-soft);
    border-top: 1px solid var(--hairline);
    padding: var(--section) 0;
}

.form-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; }

.form-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 12px;
}

.form-desc { color: var(--body); margin-bottom: 32px; }

.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(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    height: 44px;
    transition: border-color 0.15s;
    outline: none;
}

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

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover, .btn-primary:focus { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    color: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 10px 18px;
    height: 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-secondary:hover { background: var(--surface-strong); color: var(--ink); }

.form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    font-size: 14px;
}

.form-status.success { background: #e8f5f0; color: var(--success); border: 1px solid #b8e0d2; }
.form-status.loading { background: var(--canvas-soft); color: var(--muted); border: 1px solid var(--hairline); }

.page-header {
    background: var(--canvas);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--hairline-soft);
}

.page-header-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-content h2 { font-size: 1.375rem; margin-top: 40px; margin-bottom: 12px; }
.page-content p { margin-bottom: 16px; color: var(--body); line-height: 1.7; }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; color: var(--body); }

.updated-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    display: block;
    margin-bottom: 10px;
}

.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.5; }

.footer-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-address { font-style: normal; font-size: 14px; color: var(--body); line-height: 1.6; }
.footer-address a { color: var(--body); text-decoration: none; }
.footer-address a:hover { color: var(--ink); }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    margin-top: 48px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 13px; color: var(--muted-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface-card);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-inner p { font-size: 14px; color: var(--body); flex: 1; min-width: 200px; }
.cookie-banner-inner p a { color: var(--ink); }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-cookie-accept, .btn-cookie-reject {
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--hairline-strong);
    height: 36px;
}

.btn-cookie-accept { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-cookie-accept:hover { background: var(--primary); border-color: var(--primary); }
.btn-cookie-reject { background: var(--surface-card); color: var(--body); }
.btn-cookie-reject:hover { background: var(--surface-strong); }

.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 6px; }

.toc {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 40px;
}

.toc-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.88px;
    color: var(--muted);
    margin-bottom: 12px;
}

.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { font-size: 14px; color: var(--body); }
.toc a:hover { color: var(--primary); }

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}

.intro-text h2 {
    font-size: 1.625rem;
    margin-bottom: 16px;
}

.intro-text p { margin-bottom: 16px; color: var(--body); }

.intro-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.intro-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.about-team-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
}

.about-team-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.about-team-card .role { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: block; }
.about-team-card p { font-size: 14px; color: var(--body); }

@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .about-team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section: 56px; }
    
    .hero-h1 { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-image img { height: 260px; }

    .nav-hamburger { display: flex; }

    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--hairline);
        gap: 2px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }

    .nav-menu.is-open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { padding: 12px 16px; }

    .cards-grid { grid-template-columns: 1fr; }
    .two-col-grid { grid-template-columns: 1fr; }
    .intro-grid { grid-template-columns: 1fr; }
    .about-team-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
    .article-title { font-size: 1.75rem; }
    .section-title { font-size: 1.625rem; }
    .form-title { font-size: 1.5rem; }

    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero-h1 { font-size: 1.75rem; }
    .article-cover img { height: 220px; }
    .hero-image img { height: 200px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
