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

:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --primary: #f54e00;
    --primary-active: #d04200;
    --on-primary: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --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-body: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section: 80px;
}

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

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: var(--font-body);
    font-size: 16px;
    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-header {
    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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.site-nav li { position: relative; }

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    padding: 8px 12px;
    border-radius: var(--rounded-sm);
    transition: color 0.15s, background 0.15s;
    display: block;
}

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

.site-nav .has-dropdown:hover .dropdown,
.site-nav .has-dropdown:focus-within .dropdown {
    display: block;
}

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

.dropdown li a {
    padding: 10px 16px;
    white-space: nowrap;
    border-radius: 0;
    font-weight: 400;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

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

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

.hero-content { max-width: 720px; }

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

.hero-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--body);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 560px;
}

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

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

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

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

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

.section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

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

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

.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(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

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

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

.article-card-body {
    padding: 20px;
}

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

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 8px;
}

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

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

.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(--rounded-lg);
    padding: 24px;
}

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

.feature-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

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

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

.article-main h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 16px;
}

.article-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline-soft);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.article-main h2 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article-main h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin: 28px 0 12px;
}

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

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

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

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

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

.article-main 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%;
    height: 320px;
    object-fit: cover;
}

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

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

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

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

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

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

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

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

.sidebar-card li {
    border-bottom: 1px solid var(--hairline-soft);
    padding: 8px 0;
}

.sidebar-card li:last-child { border-bottom: none; }

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

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

.page-layout { max-width: 760px; }

.page-layout h1 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 12px;
}

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

.page-layout h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}

.page-layout p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    margin-bottom: 18px;
}

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

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

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

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

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

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

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

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

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}

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

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

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

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

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

.form-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: var(--on-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

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

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

.footer-desc {
    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: 12px;
}

.footer-col ul li { margin-bottom: 8px; }

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

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

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

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

.footer-bottom a {
    color: var(--muted);
}

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

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--rounded-lg);
    padding: 16px 24px;
    z-index: 999;
    width: calc(100% - 48px);
    max-width: 680px;
    box-shadow: 0 4px 24px rgba(38,37,30,0.2);
}

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

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-inner p { font-size: 14px; line-height: 1.5; }

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

.cookie-actions .btn-primary { background: var(--primary); }

.cookie-actions .btn-secondary {
    background: transparent;
    border-color: rgba(247,247,244,0.3);
    color: var(--canvas);
}

.cookie-actions .btn-secondary:hover {
    background: rgba(247,247,244,0.1);
}

.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
    margin-bottom: 32px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

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

.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }

.breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--muted-soft);
}

.breadcrumb li:last-child { color: var(--body-strong); }

.disclaimer {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .contact-layout { 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(--surface-card);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
    }

    .site-nav.is-open { display: block; }

    .site-nav ul { flex-direction: column; gap: 0; }

    .site-nav a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--hairline-soft); }

    .dropdown { display: none !important; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
