@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

: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;
    --semantic-success: #1f8a65;
    --semantic-error: #cf2d56;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--canvas);
    color: var(--body);
    font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.site-nav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    line-height: 1.4;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* HERO */
.hero {
    padding: 80px 0;
    border-bottom: 1px solid var(--hairline-soft);
}
.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: var(--rounded-pill);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 720px;
    margin-bottom: 20px;
}
.hero p {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero-image {
    margin-top: 48px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    overflow: hidden;
    max-height: 480px;
}
.hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* SECTION */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--hairline-soft); }

.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: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--body);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: border-color 0.15s;
}
.card:hover { border-color: var(--hairline-strong); }
.card-img {
    border-radius: var(--rounded-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 8px;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary); }
.card-text {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}
.card-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}

/* ARTICLE LIST */
.article-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--hairline-soft);
}
.article-item:first-child { border-top: 1px solid var(--hairline-soft); }
.article-thumb {
    border-radius: var(--rounded-md);
    overflow: hidden;
}
.article-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.article-body {}
.article-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.article-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-title a { color: var(--ink); }
.article-title a:hover { color: var(--primary); }
.article-excerpt {
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
}
.article-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

/* ARTICLE PAGE */
.article-page { padding: 64px 0 80px; }
.article-page-inner { max-width: 760px; margin: 0 auto; }
.article-page-meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.article-page h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 24px;
}
.article-page-lead {
    font-size: 18px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hairline-soft);
}
.article-page-img {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    margin-bottom: 40px;
}
.article-page-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.article-page-content h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    line-height: 1.25;
    margin: 40px 0 16px;
}
.article-page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 28px 0 12px;
}
.article-page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}
.article-page-content ul,
.article-page-content ol {
    margin: 16px 0 16px 24px;
}
.article-page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 6px;
}
.article-page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-page-content 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(--rounded-md);
    padding: 20px 24px;
    margin: 24px 0;
}
.info-box p { margin-bottom: 0; font-size: 15px; }

/* BREADCRUMB */
.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline-soft);
    margin-bottom: 0;
}
.breadcrumb-list {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}
.breadcrumb-list li {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-list li::after {
    content: '/';
    color: var(--hairline-strong);
}
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--body); }
.breadcrumb-list a:hover { color: var(--ink); }

/* FORM */
.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 640px;
}
.contact-section h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin-bottom: 8px;
}
.contact-section p {
    font-size: 15px;
    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);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--rounded-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color 0.15s;
    outline: none;
}
.form-group textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ink);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-soft);
}
.form-group input.error,
.form-group textarea.error {
    border-color: var(--semantic-error);
}
.form-error {
    font-size: 13px;
    color: var(--semantic-error);
    margin-top: 4px;
    display: none;
}
.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: 8px;
    transition: background 0.15s;
    font-family: inherit;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
    display: none;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--semantic-success);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--semantic-success);
}

/* PAGE CONTENT (about, privacy, terms) */
.page-content { padding: 64px 0 80px; }
.page-content-inner { max-width: 760px; margin: 0 auto; }
.page-content h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 12px;
}
.page-content .page-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hairline-soft);
}
.page-content h2 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.11px;
    color: var(--ink);
    margin: 36px 0 12px;
}
.page-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 24px 0 10px;
}
.page-content p {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}
.page-content ul, .page-content ol {
    margin: 12px 0 16px 24px;
}
.page-content li {
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 4px;
}
.page-content a { color: var(--primary); }
.page-content strong { color: var(--ink); font-weight: 600; }

/* FOOTER */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 64px 0 48px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {}
.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-brand-name span { color: var(--primary); }
.footer-brand p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.6;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: var(--body);
    transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--ink); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    padding: 20px 28px;
    border-radius: var(--rounded-lg);
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 640px;
    width: calc(100% - 48px);
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
}
#cookie-banner p {
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
#cookie-banner a { color: var(--canvas); text-decoration: underline; text-underline-offset: 3px; }
.cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-cookie-accept:hover { background: var(--primary-active); }
.btn-cookie-reject {
    background: transparent;
    color: var(--canvas-soft);
    border: 1px solid rgba(250,250,247,0.3);
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}
.btn-cookie-reject:hover { border-color: rgba(250,250,247,0.6); }

/* RELATED ARTICLES */
.related-section { padding: 48px 0; border-top: 1px solid var(--hairline-soft); }
.related-section .section-label { margin-bottom: 24px; }

/* TWO-COL LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.sidebar {}
.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 16px;
}
.sidebar-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
}
.sidebar-card ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card ul a { color: var(--body); }
.sidebar-card ul a:hover { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--canvas);
        border-bottom: 1px solid var(--hairline);
        padding: 16px 24px;
        gap: 16px;
    }
    .nav-hamburger { display: flex; }
    .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
    .hero p { font-size: 16px; }
    .hero-image img { height: 260px; }
    .section-title { font-size: 28px; }
    .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
    .article-item { grid-template-columns: 1fr; }
    .article-thumb { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-section { padding: 24px; }
    .article-page h1 { font-size: 30px; }
    #cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
}

/* SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* DISCLAIMER */
.disclaimer {
    background: var(--surface-card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--rounded-md);
    padding: 16px 20px;
    margin: 32px 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
