: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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
}

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

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

body {
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    background-color: var(--canvas);
}

code, pre, .code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
}

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-header {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.11px;
}

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

.site-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

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

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

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

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

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

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

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

.btn-secondary:hover { border-color: var(--ink); }

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

.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);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.hero-band h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 20px;
}

.hero-band p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-image {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 440px;
    object-fit: cover;
    width: 100%;
}

.section {
    padding: 80px 0;
}

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

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

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

.card-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;
}

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

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

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

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

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

.card a.card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 4px;
}

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

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

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
}

.info-block h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.info-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-block ul li {
    font-size: 14px;
    color: var(--body);
    padding-left: 16px;
    position: relative;
}

.info-block ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}

.page-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}

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

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

.article-body {
    max-width: 720px;
}

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

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

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

.article-body ul, .article-body ol {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-body ul li {
    font-size: 16px;
    color: var(--body);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.article-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}

.article-body ol {
    counter-reset: ol-counter;
}

.article-body ol li {
    font-size: 16px;
    color: var(--body);
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
    counter-increment: ol-counter;
}

.article-body ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: 0;
    color: var(--muted);
    font-weight: 600;
}

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

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

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

.article-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

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

.info-box {
    background: var(--surface-card);
    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 {
    font-size: 15px;
    color: var(--body);
    margin: 0;
    line-height: 1.6;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    margin: 24px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-card);
    font-size: 14px;
}

.data-table th {
    background: var(--canvas-soft);
    font-weight: 600;
    color: var(--ink);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
}

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body);
    line-height: 1.5;
}

.data-table tr:last-child td { border-bottom: none; }

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--hairline-strong); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

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

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

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

.sidebar-box ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-box ul li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

.sidebar-box ul li a:hover { color: var(--primary); }

.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 640px;
}

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

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

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

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

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

.form-msg.success {
    background: #e6f4ef;
    color: var(--semantic-success);
    border: 1px solid #b3dece;
    display: block;
}

.form-msg.error {
    background: #fce8ed;
    color: var(--semantic-error);
    border: 1px solid #f5b3c4;
    display: block;
}

.form-loading {
    font-size: 14px;
    color: var(--muted);
    display: none;
    margin-top: 12px;
}

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

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

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--hairline);
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

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

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

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

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

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

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 4px;
}

.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--ink); }

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

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

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

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

.cookie-inner p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--canvas);
}

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

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

.cookie-actions .btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    height: 36px;
    padding: 8px 16px;
}

.cookie-actions .btn-secondary {
    background: transparent;
    color: var(--canvas);
    border-color: rgba(247,247,244,0.3);
    height: 36px;
    padding: 8px 16px;
}

.cookie-actions .btn-secondary:hover { border-color: var(--canvas); }

.prose {
    max-width: 760px;
}

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

.prose h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 10px;
}

.prose p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.prose ul {
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prose ul li {
    font-size: 16px;
    color: var(--body);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.prose ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted);
}

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

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
}

.article-row {
    background: var(--surface-card);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    border-bottom: 1px solid var(--hairline-soft);
}

.article-row:last-child { border-bottom: none; }

.article-row-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-row h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.article-row h3 a { color: var(--ink); }
.article-row h3 a:hover { color: var(--primary); }

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

.article-row-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav a { display: block; padding: 10px 0; font-size: 16px; }
    .hero-band h1 { font-size: 36px; letter-spacing: -0.72px; }
    .section-title { font-size: 28px; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-section { padding: 24px; }
    .article-row { grid-template-columns: 1fr; }
    .article-row-img { width: 100%; height: 160px; }
}

@media (max-width: 640px) {
    .hero-band { padding: 48px 0; }
    .section { padding: 48px 0; }
    .hero-band h1 { font-size: 28px; }
    .page-hero h1 { font-size: 28px; }
}
