@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;
    --hairline: #e6e5e0;
    --hairline-soft: #efeee8;
    --hairline-strong: #cfcdc4;
    --ink: #26251e;
    --body-color: #5a5852;
    --body-strong: #26251e;
    --muted: #807d72;
    --muted-soft: #a09c92;
    --on-primary: #ffffff;
    --success: #1f8a65;
    --error: #cf2d56;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--canvas);
    color: var(--body-color);
    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(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.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.2px;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--body-color);
    line-height: 1.4;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px;
    gap: 16px;
}

.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--body-color);
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile a:last-child { border-bottom: none; }

.nav-mobile.open { display: flex; }

/* ─── HERO ─── */
.hero-band {
    padding: 80px 0 72px;
    border-bottom: 1px solid var(--hairline);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
    background: var(--surface-strong);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.hero-title {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--ink);
    max-width: 760px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--body-color);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.hero-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    height: 420px;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-border { border-bottom: 1px solid var(--hairline); }

.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;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--body-color);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* ─── ARTICLE CARDS ─── */
.article-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 {
    height: 200px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-img img { transform: scale(1.03); }

.article-card-body { padding: 24px; }

.article-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    background: var(--surface-strong);
    color: var(--muted);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    margin-bottom: 12px;
}

.article-card-title {
    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-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    padding-bottom: 2px;
    transition: border-color 0.15s, color 0.15s;
}

.article-card:hover .article-card-link {
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── INFO CARDS ─── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.info-card-icon {
    font-size: 24px;
    margin-bottom: 16px;
    width: 44px;
    height: 44px;
    background: var(--surface-strong);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.6;
}

/* ─── PLANT TABLE ─── */
.plant-table-wrap {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.plant-table {
    width: 100%;
    border-collapse: collapse;
}

.plant-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 20px;
    background: var(--canvas-soft);
    border-bottom: 1px solid var(--hairline);
}

.plant-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--body-color);
    border-bottom: 1px solid var(--hairline-soft);
    vertical-align: top;
}

.plant-table tr:last-child td { border-bottom: none; }

.plant-table tr:hover td { background: var(--canvas-soft); }

.plant-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
}

.plant-latin {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ─── BLOOM CALENDAR ─── */
.bloom-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.bloom-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-align: center;
    padding: 6px 2px;
}

.bloom-bar {
    height: 28px;
    border-radius: 4px;
    background: var(--surface-strong);
}

.bloom-bar.active { background: var(--primary); opacity: 0.85; }
.bloom-bar.light { background: var(--primary); opacity: 0.35; }

/* ─── TWO-COL LAYOUT ─── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.two-col-text h2 {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.72px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 20px;
}

.two-col-text p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    margin-bottom: 16px;
}

.two-col-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    height: 360px;
}

.two-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── ARTICLE PAGE ─── */
.article-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--muted);
}

.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-page-title {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 20px;
}

.article-page-desc {
    font-size: 18px;
    color: var(--body-color);
    max-width: 640px;
    line-height: 1.65;
}

.article-featured-img {
    margin: 48px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
    max-height: 480px;
}

.article-featured-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.article-img-caption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

.article-body { max-width: 740px; }

.article-body h2 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.325px;
    color: var(--ink);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.35;
}

.article-body p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 0;
    padding-left: 0;
}

.article-body ul li,
.article-body ol li {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
    list-style: none;
}

.article-body ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted);
}

.article-body ol { counter-reset: ol-counter; }
.article-body ol li::before {
    content: counter(ol-counter) ".";
    counter-increment: ol-counter;
    position: absolute;
    left: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.article-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
    transition: border-color 0.15s, color 0.15s;
}

.article-body a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.article-callout {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 15px;
    color: var(--body-color);
    line-height: 1.65;
}

.article-inline-img {
    margin: 32px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--hairline);
}

.article-inline-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.article-sidebar {
    position: sticky;
    top: 80px;
}

.article-sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.toc-list { display: flex; flex-direction: column; gap: 8px; }

.toc-list a {
    font-size: 14px;
    color: var(--body-color);
    padding: 6px 0;
    border-bottom: 1px solid var(--hairline-soft);
    transition: color 0.15s;
}

.toc-list a:last-child { border-bottom: none; }
.toc-list a:hover { color: var(--ink); }

.related-list { display: flex; flex-direction: column; gap: 12px; }

.related-item a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}

.related-item a:hover { color: var(--primary); }

.related-item p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ─── ARTICLE LAYOUT ─── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 80px;
}

/* ─── FORM ─── */
.contact-section {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.2px;
}

.form-field input,
.form-field textarea {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
}

.form-field textarea {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--ink);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted-soft);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}

.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #e8f7f2;
    color: var(--success);
    border: 1px solid #b8e6d6;
}

.form-message.error {
    display: block;
    background: #fdf0f3;
    color: var(--error);
    border: 1px solid #f5c6d0;
}

/* ─── 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 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-brand-name span { color: var(--primary); }

.footer-brand-desc {
    font-size: 14px;
    color: var(--body-color);
    line-height: 1.65;
    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-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    font-size: 14px;
    color: var(--body-color);
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    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: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 680px;
    width: calc(100% - 48px);
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(38,37,30,0.18);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-banner.hidden { display: none; }

.cookie-text { flex: 1; }
.cookie-text a { color: #c4c1b8; border-bottom: 1px solid #6b6860; }
.cookie-text a:hover { color: var(--canvas); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    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: #c4c1b8;
    border: 1px solid #4a4940;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
}

.btn-cookie-reject:hover { border-color: #6b6860; color: var(--canvas); }

/* ─── PAGE INNER (privacy, terms, about) ─── */
.page-header {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--hairline);
}

.page-title {
    font-size: 46px;
    font-weight: 400;
    letter-spacing: -1.2px;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-sub {
    font-size: 18px;
    color: var(--body-color);
    max-width: 560px;
    line-height: 1.6;
}

.page-body {
    max-width: 740px;
    padding: 48px 0 80px;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 14px;
}

.page-body h2:first-child { margin-top: 0; }

.page-body p {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-body ul {
    margin: 0 0 16px;
    padding-left: 0;
}

.page-body ul li {
    font-size: 16px;
    color: var(--body-color);
    line-height: 1.7;
    padding: 5px 0 5px 22px;
    position: relative;
    list-style: none;
}

.page-body ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted);
}

.page-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--hairline-strong);
}

.page-body a:hover { color: var(--primary); border-color: var(--primary); }

.updated-note {
    font-size: 13px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 40px;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    padding: 20px 0 0;
}

.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--hairline-strong); }

/* ─── STAT STRIP ─── */
.stat-strip {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.stat-item {
    padding: 28px 24px;
    border-right: 1px solid var(--hairline);
}

.stat-item:last-child { border-right: none; }

.stat-value {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-title { font-size: 44px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .hero-band { padding: 48px 0; }
    .hero-title { font-size: 32px; letter-spacing: -0.8px; }
    .hero-desc { font-size: 16px; }
    .hero-img-wrap { height: 260px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .article-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .two-col-img { height: 240px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .article-page-title { font-size: 30px; }
    .page-title { font-size: 30px; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .contact-section { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .article-grid { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--hairline); }
    .stat-item:last-child { border-bottom: none; }
}
