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

:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #4b5563;
    --border: #e5e7eb;
    --accent: #f97316;
    --accent-strong: #ea580c;
    --accent-soft: #fff3e8;
    --success: #16a34a;
    --error: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 10% 20%, #fff7ed 0, rgba(255, 247, 237, 0.6) 25%, transparent 35%),
        radial-gradient(circle at 90% 10%, #e0f2fe 0, rgba(224, 242, 254, 0.5) 20%, transparent 40%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

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

a:hover {
    color: var(--accent-strong);
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.hero {
    padding: 72px 0 48px;
    background: linear-gradient(120deg, #0f172a, #0b253f 60%, #0d2845);
    color: #fff;
}

.hero-compact {
    padding: 56px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -0.03em;
}

.hero .lede {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.section {
    padding: 48px 0;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 6px 0;
    letter-spacing: -0.02em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.04);
}

.project-card.archived {
    background: #fafafa;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-live {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.badge-archive {
    background: #f3f4f6;
    color: #6b7280;
}

.pill {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 12px;
    color: #1f2937;
    height: fit-content;
}

.pill-quiet {
    background: #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.3);
}

.text-link {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0;
    color: #94a3b8;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.lede {
    font-size: 16px;
    line-height: 1.5;
}

.small {
    font-size: 13px;
    margin: 0 0 6px;
    color: var(--muted);
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
}

.mini-list li {
    color: var(--muted);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}

.newsletter-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

input[type="email"] {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    transition: border 120ms ease, box-shadow 120ms ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.form-help {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.message {
    min-height: 22px;
    font-weight: 600;
    font-size: 14px;
}

.message.success {
    color: var(--success);
}

.message.error {
    color: var(--error);
}

.footer {
    padding: 24px 0 40px;
    background: #0f172a;
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.detail-main, .detail-side {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.info-block {
    margin: 14px 0;
}

.placeholder-media {
    margin-top: 16px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px dashed #f59e0b;
    border-radius: 14px;
    padding: 20px;
}

.media-inner {
    text-align: center;
    color: var(--muted);
}

.side-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-grid,
    .newsletter-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 0 36px;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
