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

*, *::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-sans);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

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

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

.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.2px;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
    line-height: 1.4;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--surface-strong);
}

.nav-has-dropdown { position: relative; }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(38,37,30,0.08);
}

.nav-has-dropdown:hover .nav-dropdown { display: block; }

.nav-dropdown .nav-link {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

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

.hero-band {
    padding: 80px 0;
    background: var(--canvas);
}

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

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

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

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

.hero-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 48px;
}

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

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

.hero-image-caption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-card);
    border-top: 1px solid var(--hairline-soft);
}

.section-band {
    padding: 80px 0;
    border-top: 1px solid var(--hairline-soft);
}

.section-band--card {
    background: var(--canvas-soft);
}

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

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

.section-lead {
    font-size: 16px;
    color: var(--body);
    line-height: 1.5;
    max-width: 620px;
    margin-bottom: 48px;
}

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

.article-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    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: 20px 24px 24px;
}

.article-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-strong);
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    margin-bottom: 12px;
}

.article-card-h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 10px;
}

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

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

.article-card-link {
    display: block;
}

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

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

.feature-card-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card-h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

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

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-form-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

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

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

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

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

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

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

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

.form-message.success {
    background: #e8f5f0;
    color: var(--success);
    border: 1px solid #b8e0d3;
    display: block;
}

.form-message.error {
    background: #fceef1;
    color: var(--error);
    border: 1px solid #f0c0cc;
    display: block;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 999;
    display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    color: var(--canvas);
    line-height: 1.5;
}

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

.cookie-actions { display: flex; gap: 12px; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    height: 40px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-cookie-accept:hover { background: var(--primary-active); }

.btn-cookie-reject {
    background: transparent;
    color: var(--canvas);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(247,247,244,0.3);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    height: 40px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.btn-cookie-reject:hover { border-color: rgba(247,247,244,0.6); }

.article-page { padding: 60px 0 80px; }

.article-header { margin-bottom: 40px; }

.article-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

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

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

.article-h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

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

.article-hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 12px;
}

.article-image-caption {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
}

.article-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 64px;
    align-items: start;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    line-height: 1.25;
    margin-top: 40px;
    margin-bottom: 16px;
}

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

.article-body p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 20px;
    letter-spacing: 0.08px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

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

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

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

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

.article-body strong { color: var(--ink); font-weight: 600; }

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

.info-box-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.info-box p {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

.article-sidebar { position: sticky; top: 84px; }

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.sidebar-toc { list-style: none; padding: 0; }

.sidebar-toc li { margin-bottom: 8px; }

.sidebar-toc a {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.sidebar-toc a:hover { color: var(--ink); }

.related-links { list-style: none; padding: 0; }

.related-links li { margin-bottom: 10px; border-bottom: 1px solid var(--hairline-soft); padding-bottom: 10px; }
.related-links li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.related-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
    display: block;
}

.related-links a:hover { color: var(--ink); }

.page-inner { padding: 60px 0 80px; max-width: 780px; margin: 0 auto; }

.page-inner h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    margin-bottom: 12px;
}

.page-inner .page-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--hairline-soft);
    padding-bottom: 24px;
}

.page-inner h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-top: 40px;
    margin-bottom: 14px;
}

.page-inner h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 24px;
    margin-bottom: 10px;
}

.page-inner p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 18px;
    letter-spacing: 0.08px;
}

.page-inner ul, .page-inner ol {
    margin: 0 0 18px 0;
    padding-left: 24px;
}

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

.page-inner li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin-bottom: 8px;
}

.page-inner a { color: var(--primary); text-decoration: underline; }
.page-inner a:hover { color: var(--primary-active); }
.page-inner strong { color: var(--ink); font-weight: 600; }

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

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

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

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.4;
}

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

.footer-disclaimer {
    font-size: 12px;
    color: var(--muted-soft);
    line-height: 1.5;
    margin-top: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--hairline-soft);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.footer-bottom nav { display: flex; gap: 20px; }

.footer-bottom nav a {
    font-size: 14px;
    color: var(--muted);
}

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

@media (max-width: 1024px) {
    .hero-h1 { font-size: 56px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
    .article-content { grid-template-columns: 1fr; gap: 48px; }
    .article-sidebar { position: static; }
    .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 2px;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-inner { position: relative; }
    .nav-dropdown { position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; }
    .nav-has-dropdown:hover .nav-dropdown { display: none; }
    .nav-has-dropdown.open .nav-dropdown { display: block; }
    .hero-h1 { font-size: 36px; letter-spacing: -1px; }
    .hero-sub { font-size: 15px; }
    .hero-image-wrap img { height: 240px; }
    .articles-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-h1 { font-size: 32px; }
    .article-hero-image { height: 240px; }
    .section-h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: 1; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
