@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::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;
    --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;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 12px;
    --rounded-xl: 16px;
    --rounded-pill: 9999px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

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

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-nav__logo {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    text-decoration: none;
    white-space: nowrap;
}

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

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

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

.site-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-color: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.mobile-menu {
    display: none;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0 24px;
}

.mobile-menu ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

/* HERO */
.hero {
    padding: 80px 0;
    background-color: var(--canvas);
}

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

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

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

.hero__image {
    border-radius: var(--rounded-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}

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

/* SECTIONS */
.section {
    padding: 80px 0;
}

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

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

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

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cards-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    transition: border-color 0.15s;
}

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

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

.card__body {
    padding: 24px;
}

.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.3;
    margin-bottom: 10px;
}

.card__title a {
    color: var(--ink);
}

.card__title a:hover {
    color: var(--primary);
}

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

.card__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* ARTICLE PAGE */
.article-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

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

.article-header__title {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.9px;
    max-width: 760px;
    margin-bottom: 16px;
}

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

.article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    margin-bottom: 48px;
}

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

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

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

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

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

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

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s;
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

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

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

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

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

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

.sidebar-block ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 14px;
}

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

.sidebar-block ul li a {
    color: var(--body);
    font-weight: 500;
}

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

/* INFOBOX */
.infobox {
    background-color: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--rounded-md);
    padding: 20px 24px;
    margin: 28px 0;
}

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

/* FORM */
.contact-form {
    background-color: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 40px;
    max-width: 600px;
}

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

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

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

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

.field-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.field-error.visible {
    display: block;
}

.btn-primary {
    background-color: 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-color 0.15s;
    font-family: inherit;
}

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

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

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

.form-msg--success {
    background-color: #edf7f3;
    color: var(--success);
    border: 1px solid #b9e4d3;
}

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

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

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

.footer-brand__logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    display: block;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 260px;
}

.footer-col__title {
    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;
    padding: 0;
}

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

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

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

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

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

.footer-bottom__links a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}

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

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--ink);
    color: var(--canvas);
    padding: 20px 24px;
    z-index: 9999;
    display: none;
    border-top: 2px solid var(--primary);
}

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

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

.cookie-banner p {
    font-size: 14px;
    color: #d6d4cc;
    line-height: 1.5;
    flex: 1;
    min-width: 260px;
}

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

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

.btn-cookie-accept {
    background-color: var(--primary);
    color: var(--on-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}

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

.btn-cookie-reject {
    background-color: transparent;
    color: #d6d4cc;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--rounded-md);
    border: 1px solid #4a4840;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}

.btn-cookie-reject:hover {
    border-color: #807d72;
}

/* PAGE HEADER */
.page-header {
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 48px;
}

.page-header__title {
    font-size: 42px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.9px;
    line-height: 1.15;
    margin-bottom: 12px;
}

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

/* PROSE (privacy / terms / about) */
.prose {
    max-width: 760px;
    padding-bottom: 80px;
}

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

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

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

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

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

.prose a {
    color: var(--primary);
}

.prose .updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ABOUT PAGE */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 80px;
}

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

.about-grid__content h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

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

/* LOADING SPINNER */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.spinner.visible {
    display: block;
}

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

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

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

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 6px;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
        letter-spacing: -0.8px;
    }

    .section__title {
        font-size: 28px;
    }

    .article-header__title {
        font-size: 30px;
    }

    .page-header__title {
        font-size: 30px;
    }

    .site-nav__links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

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

    .cards-grid--2col {
        grid-template-columns: 1fr;
    }

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

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

    .contact-form {
        padding: 24px;
    }

    .hero {
        padding: 48px 0;
    }

    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
