/* zelf.cloud — custom theme
   Light & flat. Almost-white base, crisp white cards, zero gradients/glow.
   Synced flat accent palette (teal / blue / coral / amber / violet / rose) —
   lively but easy on the eyes. Depth comes from hairline borders, not shadows. */

:root {
    /* Almost-white base */
    --bg: #fafbfc;
    --bg-raise: #f1f4f7;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;

    /* Text — dark slate, gentle contrast */
    --text: #26292e;
    --text-dim: #565c66;
    --text-faint: #8b919c;

    /* Flat synced accents */
    --teal: #0e9384;
    --blue: #2f7bd0;
    --coral: #e2604f;
    --amber: #c98a12;
    --violet: #6f5bd4;
    --rose: #cf4f86;

    --accent: var(--teal);
    --accent-2: var(--blue);

    /* Hairline borders */
    --border: #e3e7ec;
    --border-hover: #c8cfd8;

    --mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 14px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

::selection { background: #d3ecf5; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--teal);
    color: #ffffff; font-weight: 800; font-size: 1.05rem;
}
.logo-dot { color: var(--text-faint); font-weight: 400; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-dim); font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-current a { color: var(--teal); }

/* Hero — flat, no wash */
.hero {
    padding: 3.25rem 0 2.75rem;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: center; }
.hero-art { width: 100%; max-width: 420px; height: auto; justify-self: end; display: block; mix-blend-mode: multiply; }
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    line-height: 1.18;
    margin: 0 0 0.9rem;
    letter-spacing: -0.025em;
    font-weight: 650;
    color: var(--text);
}
.hero h1 em {
    font-style: normal;
    color: var(--teal);
}
.hero p { color: var(--text-dim); font-size: 1.12rem; max-width: 38rem; margin: 0; font-weight: 350; }

/* Section label */
.section-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 2.5rem 0 0;
}
.section-label::before { content: "~ "; color: var(--coral); }

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.15rem;
    padding: 1.75rem 0 3.5rem;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.card:hover { border-color: var(--border-hover); }
/* each card wears its own flat accent on hover */
.card:nth-child(6n+1):hover { border-color: var(--teal); }
.card:nth-child(6n+2):hover { border-color: var(--violet); }
.card:nth-child(6n+3):hover { border-color: var(--coral); }
.card:nth-child(6n+4):hover { border-color: var(--rose); }
.card:nth-child(6n+5):hover { border-color: var(--blue); }
.card:nth-child(6n+6):hover { border-color: var(--amber); }

.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-image img { width: 100%; height: 150px; object-fit: cover; display: block; }
.card-body { padding: 1.15rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-title { font-size: 1.06rem; margin: 0; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.card-title::before { content: "·"; margin-right: 0.5rem; font-weight: 800; }
.card:nth-child(6n+1) .card-title::before { color: var(--teal); }
.card:nth-child(6n+2) .card-title::before { color: var(--violet); }
.card:nth-child(6n+3) .card-title::before { color: var(--coral); }
.card:nth-child(6n+4) .card-title::before { color: var(--rose); }
.card:nth-child(6n+5) .card-title::before { color: var(--blue); }
.card:nth-child(6n+6) .card-title::before { color: var(--amber); }
.card-excerpt { color: var(--text-dim); font-size: 0.92rem; margin: 0; flex: 1; font-weight: 350; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--text-faint); }
.card-tag {
    color: var(--teal);
    background: #e7f5f2;
    border: 1px solid #cdeae4;
    border-radius: 99px;
    padding: 0.12rem 0.65rem;
    font-size: 0.75rem;
}
.card:nth-child(6n+2) .card-tag { color: var(--violet); background: #eeecfb; border-color: #ddd7f5; }
.card:nth-child(6n+3) .card-tag { color: var(--coral); background: #fceeea; border-color: #f6d8d1; }
.card:nth-child(6n+4) .card-tag { color: var(--rose); background: #fbebef; border-color: #f3d5df; }
.card:nth-child(6n+5) .card-tag { color: var(--blue); background: #e9f1fb; border-color: #d3e3f5; }
.card:nth-child(6n+6) .card-tag { color: var(--amber); background: #faf1dd; border-color: #f0e0bb; }

/* Posts & pages */
.post-header, .page-header { padding: 3.5rem 0 1.75rem; }
.post-title, .page-header h1 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    line-height: 1.22;
    margin: 0 0 0.7rem;
    letter-spacing: -0.02em;
    font-weight: 650;
}
.post-meta, .page-excerpt { color: var(--text-dim); font-size: 0.95rem; font-weight: 350; }
.page-excerpt { font-size: 1.08rem; margin: 0; max-width: 42rem; }

.gh-content { padding-bottom: 3.5rem; font-size: 1.03rem; font-weight: 350; }
.gh-content strong { font-weight: 600; color: var(--text); }
.gh-content h2 {
    margin-top: 2.6rem;
    letter-spacing: -0.015em;
    font-weight: 600;
}
.gh-content h2::before { content: "// "; color: var(--coral); font-family: var(--mono); font-size: 0.85em; font-weight: 400; }
.gh-content h3 { margin-top: 2rem; font-weight: 600; }
.gh-content h3::before { content: "· "; color: var(--blue); font-weight: 800; }
.gh-content code {
    font-family: var(--mono);
    font-size: 0.87em;
    background: var(--bg-raise);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.14rem 0.4rem;
    color: var(--coral);
}
.gh-content pre {
    background: var(--bg-raise);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    line-height: 1.6;
}
.gh-content pre code { background: none; border: none; padding: 0; color: var(--text-dim); }
.gh-content blockquote {
    border-left: 3px solid var(--violet);
    margin: 1.75rem 0;
    padding: 0.4rem 1.3rem;
    color: var(--text-dim);
    background: var(--bg-raise);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.gh-content ul li::marker { color: var(--teal); }
.gh-content ol li::marker { color: var(--coral); font-family: var(--mono); font-size: 0.9em; }
.gh-content li { margin: 0.35rem 0; }
.gh-content img { max-width: 100%; border-radius: 12px; }
.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 2.75rem 0; }
.gh-content table { border-collapse: collapse; width: 100%; }
.gh-content th, .gh-content td { border: 1px solid var(--border); padding: 0.5rem 0.8rem; text-align: left; }
.gh-content th { background: var(--bg-raise); color: var(--teal); font-weight: 600; }

/* Pricing (parody plans) */
.pricing-band { background: var(--bg-raise); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; padding: 1.75rem 0 0.75rem; }
.plan { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-pro { border-color: var(--violet); }
.plan-max { border-color: var(--rose); }
.plan-badge { position: absolute; top: -0.75rem; left: 1.25rem; background: var(--violet); color: #ffffff; font-size: 0.7rem; font-weight: 700; border-radius: 99px; padding: 0.15rem 0.7rem; letter-spacing: 0.04em; }
.plan-name { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.plan-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--teal); }
.plan-pro .plan-price { color: var(--violet); }
.plan-max .plan-price { color: var(--rose); }
.plan-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-faint); }
.plan-tagline { color: var(--text-dim); font-size: 0.9rem; margin: 0; font-weight: 350; }
.plan-list { list-style: none; margin: 0.4rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-dim); font-weight: 350; flex: 1; }
.plan-list li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.plan-pro .plan-list li::before { color: var(--violet); }
.plan-max .plan-list li::before { color: var(--rose); }
.plan-cta { text-align: center; border: 1px solid var(--teal); border-radius: 99px; padding: 0.5rem 0.9rem; font-size: 0.88rem; color: var(--teal); background: #e7f5f2; }
.plan-pro .plan-cta { border-color: var(--violet); color: var(--violet); background: #eeecfb; }
.plan-max .plan-cta { border-color: var(--rose); color: var(--rose); background: #fbebef; }
.pricing-note { color: var(--text-faint); font-size: 0.85rem; max-width: 44rem; margin: 0.5rem 0 1rem; font-style: italic; }

/* Pagination */

/* CTA band */
.cta-band { border-top: 1px solid var(--border); background: #ffffff; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 3rem 1.5rem; }
.cta-art { width: 100%; max-width: 300px; height: auto; justify-self: start; display: block; mix-blend-mode: multiply; }
.cta-copy h2 { margin: 0 0 0.6rem; font-size: 1.5rem; letter-spacing: -0.01em; }
.cta-copy p { margin: 0 0 1.2rem; color: var(--text-dim); font-weight: 350; }
.cta-btn { display: inline-block; border: 1px solid var(--teal); border-radius: 99px; padding: 0.55rem 1.4rem; font-size: 0.92rem; color: #ffffff; background: var(--teal); }
.cta-btn:hover { background: #0b7a6e; border-color: #0b7a6e; color: #ffffff; }
.pagination {
    display: flex; justify-content: center; gap: 1.25rem;
    padding: 1rem 0 3.5rem;
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 0.9rem;
}
.pagination a { color: var(--text-dim); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; background: #ffffff; }
.footer-inner { padding: 1.75rem 0; color: var(--text-faint); font-size: 0.85rem; text-align: center; font-weight: 350; }
.footer-inner a { color: var(--text-dim); }

@media (max-width: 640px) {
    .site-nav ul { gap: 0.9rem; }
    .card-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-art { max-width: 260px; justify-self: start; }
    .cta-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.25rem 1.5rem; }
    .cta-art { max-width: 220px; }
}
