/* ============================================
   Parachute Computer — parachute.computer
   Natural. Balanced. Open sky.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #faf8f4;
    --bg-soft: #f3f0ea;
    --fg: #2c2a26;
    --fg-muted: #6b6860;
    --fg-dim: #9a9690;
    --accent: #4a7c59;
    --accent-soft: rgba(74, 124, 89, 0.08);
    --accent-hover: #3d6849;
    --accent-light: #6a9b77;
    --sky: #5b8fa8;
    --sky-soft: rgba(91, 143, 168, 0.08);
    --border: #e4e0d8;
    --border-light: #ece9e2;
    --card-bg: #ffffff;
    --card-hover: #fefdfb;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    --max-width: 960px;
    --content-width: 680px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.65;
    min-height: 100vh;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ============================================
   Fade-in animations — gentle, smooth
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.8s ease-out both;
}

.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }
.fade-up-5 { animation-delay: 0.45s; }
.fade-up-6 { animation-delay: 0.55s; }

/* ============================================
   Navigation — clean, grounded
   ============================================ */

header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   Main content
   ============================================ */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ============================================
   Hero — open, airy, centered
   ============================================ */

.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.hero .epigraph {
    max-width: 520px;
    margin: 0 auto 3.5rem;
}

.hero .quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--fg-muted);
    line-height: 1.55;
    margin-bottom: 0.4rem;
}

.hero .quote-attr {
    font-size: 0.85rem;
    color: var(--fg-dim);
    letter-spacing: 0.02em;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--fg);
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--fg-dim);
    font-size: 1rem;
    letter-spacing: 0.04em;
    font-weight: 400;
}

/* ============================================
   Sections
   ============================================ */

.section {
    margin-bottom: 4.5rem;
}

.section h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
    color: var(--fg);
}

.section h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.section p {
    color: var(--fg-muted);
    margin-bottom: 1rem;
    max-width: var(--content-width);
    line-height: 1.7;
}

.section ul {
    list-style: none;
    margin-bottom: 1.25rem;
}

.section li {
    color: var(--fg-muted);
    padding: 0.45rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.section li::before {
    content: "\203A";
    position: absolute;
    left: 0.25rem;
    color: var(--accent-light);
    font-size: 1.1em;
}

.section li strong {
    color: var(--fg);
    font-weight: 500;
}

/* ============================================
   Cards / Products
   ============================================ */

.products {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.product {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product h2,
.product h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--fg);
}

.product p {
    color: var(--fg-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.product .button {
    margin-top: 0.5rem;
}

.status {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid rgba(74, 124, 89, 0.25);
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* ============================================
   CTA
   ============================================ */

.cta {
    text-align: center;
    padding: 4.5rem 3rem;
    background: var(--accent-soft);
    border: 1px solid rgba(74, 124, 89, 0.12);
    border-radius: 12px;
    position: relative;
}

.cta h2 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.cta p {
    margin-bottom: 1.5rem;
    color: var(--fg-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-secondary {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.cta-secondary a {
    color: var(--accent);
    text-decoration: none;
}

.cta-secondary a:hover {
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(74, 124, 89, 0.15);
}

.button:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

/* ============================================
   Code blocks — grounded, technical
   ============================================ */

.code-inline {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-inline code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--fg-muted);
    line-height: 1.9;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--accent-soft);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent);
}

/* ============================================
   Architecture diagram
   ============================================ */

.architecture-diagram {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.45;
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--fg-dim);
    font-size: 0.85rem;
}

footer a {
    color: var(--fg-dim);
    transition: color 0.2s ease;
}

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

footer p {
    margin-bottom: 0.5rem;
}

footer p:first-child {
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

/* ============================================
   Roadmap page
   ============================================ */

.roadmap-header {
    margin-bottom: 3.5rem;
}

.roadmap-header h1 {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.roadmap-header .dates {
    color: var(--fg-muted);
    font-size: 1.05rem;
}

.roadmap-header .subscribe-line {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--fg-dim);
}

.sow-meta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sow-meta dt {
    color: var(--fg-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 400;
}

.sow-meta dd {
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.metrics-table th,
.metrics-table td {
    text-align: left;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.metrics-table th {
    color: var(--fg-dim);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metrics-table td {
    color: var(--fg-muted);
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-light), var(--border) 40%, var(--border));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.5rem;
    top: 0.6rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-4px);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
}

.timeline-item h3 {
    margin-top: 0;
    font-family: var(--serif);
}

.status-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.status-done {
    background: rgba(74, 124, 89, 0.1);
    color: var(--accent);
}

.status-active {
    background: var(--sky-soft);
    color: var(--sky);
}

.status-upcoming {
    background: rgba(154, 150, 144, 0.1);
    color: var(--fg-dim);
}

.week-label {
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-weight: 300;
}

.prev-link {
    font-size: 0.85rem;
    color: var(--fg-dim);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    display: inline-block;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.prev-link:hover {
    color: var(--fg-muted);
    border-color: var(--accent-light);
}

/* ============================================
   Blog listing
   ============================================ */

.blog-list {
    list-style: none;
}

.blog-list li {
    padding: 0;
    padding-left: 0;
}

.blog-list li::before {
    content: none;
}

.blog-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: block;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.blog-post-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.blog-post-card h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.blog-post-card .date {
    font-size: 0.8rem;
    color: var(--fg-dim);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.blog-post-card .excerpt {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   Blog post page
   ============================================ */

.post-header {
    margin-bottom: 3.5rem;
    text-align: center;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.post-header h1 {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.post-header .post-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.post-header .post-meta {
    color: var(--fg-dim);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.post-content {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content p {
    color: var(--fg);
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.post-content strong {
    color: var(--fg);
    font-weight: 500;
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(74, 124, 89, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
    text-decoration-color: var(--accent);
}

.post-content blockquote {
    border-left: 2px solid var(--accent-light);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--fg-muted);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.post-content li {
    color: var(--fg);
    padding: 0.35rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.post-content li::before {
    content: "\203A";
    position: absolute;
    left: 0.25rem;
    color: var(--accent-light);
    font-size: 1.1em;
}

.post-content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 3rem auto;
    max-width: 120px;
}

.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

.post-content pre {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--fg-muted);
    background: none;
    padding: 0;
    border-radius: 0;
}

.post-nav {
    max-width: var(--content-width);
    margin: 3.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav a {
    color: var(--fg-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.post-nav a:hover {
    color: var(--accent);
}

/* ============================================
   Blog post — drop cap
   ============================================ */

.post-content > p:first-of-type::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 3.75rem;
    line-height: 0.8;
    padding-right: 0.15em;
    padding-top: 0.08em;
    color: var(--accent);
    font-weight: 400;
}

/* ============================================
   Blog post — full-width images
   ============================================ */

.post-content > p > img:only-child {
    display: block;
    width: calc(100% + 4rem);
    max-width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    border-radius: 10px;
}

/* ============================================
   Section product spacing
   ============================================ */

.section .product + .product {
    margin-top: 1.5rem;
}

/* ============================================
   Two-path layout (Daily / Computer)
   ============================================ */

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

.paths .product + .product {
    margin-top: 0;
}

.path-label {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 0.25rem !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero .quote {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    main {
        padding: 3rem 1.25rem;
    }

    .product {
        padding: 1.75rem;
    }

    .cta {
        padding: 3rem 1.75rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .roadmap-header h1 {
        font-size: 2rem;
    }

    .sow-meta {
        grid-template-columns: 1fr;
    }

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

    .paths .product + .product {
        margin-top: 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    header {
        padding: 1rem 1.25rem;
    }

    .hero {
        margin-bottom: 4rem;
        padding-bottom: 3rem;
    }

    .section {
        margin-bottom: 3rem;
    }
}
