:root {
    --bg: #0d1117;
    --panel: #161b22;
    --panel-raised: #1c2129;
    --border: #30363d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --blue: #58a6ff;
    --green: #3fb950;
    --orange: #f0883e;
    --purple: #bc8cff;
    --font: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
}

.window {
    max-width: 880px;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--panel-raised);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.titlebar .file {
    margin-left: 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.content { padding: 2.5rem 3rem 2rem; }

.comment { color: var(--muted); }

h1 {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--blue);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 1.9rem;
    background: var(--blue);
    vertical-align: text-bottom;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.hero p {
    font-size: 1.05rem;
    margin: 1.25rem 0 0;
    max-width: 46em;
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--blue);
    margin: 2.5rem 0 1rem;
}
h2::before { content: "## "; color: var(--muted); }

p { margin: 0 0 1rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card {
    background: var(--panel-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
}
.card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
}
.card .comment { font-size: 0.85rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.9rem; }
/* Cards without a // subtitle keep the same gap under the heading. */
.card h3 + p { margin-top: 0.75rem; }

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}
.card li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 0.35rem;
}
.card li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--green);
}

.tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid;
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}
.tag.dev { color: var(--green); border-color: var(--green); }
.tag.next { color: var(--orange); border-color: var(--orange); }

.pitch {
    font-size: 1.05rem;
    border-left: 2px solid var(--blue);
    padding-left: 1rem;
    margin: 0 0 0.5rem;
    max-width: 46em;
}

h3.section {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin: 2rem 0 1rem;
}
h3.section::before { content: "### "; color: var(--muted); }

.card .note {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.78rem;
}

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

.shots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}
.shots figure {
    margin: 0;
    background: var(--panel-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.shots figure.wide { grid-column: 1 / -1; }
.shots a { display: block; }
.shots img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border);
}
.shots figcaption {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
}

.licence {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}
.licence li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 0.4rem;
}
.licence li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--green);
}
.licence strong { font-weight: 500; color: var(--text); }
.pricing a { color: var(--blue); }

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.principle {
    border-left: 2px solid var(--purple);
    padding-left: 1rem;
    font-size: 0.88rem;
}
.principle strong {
    display: block;
    color: var(--purple);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.roadmap { list-style: none; padding: 0; margin: 0; }
.roadmap li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}
.roadmap li:last-child { border-bottom: none; }
.roadmap strong { color: var(--text); font-weight: 500; }

.contact {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.contact p { max-width: 46em; }

.btn {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--green);
    text-decoration: none;
    border: 1px solid var(--green);
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible {
    background: var(--green);
    color: var(--bg);
    outline: none;
}

.grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }

.trust { font-size: 0.85rem; margin: 1rem 0 1.5rem; }

.link {
    color: var(--blue);
    text-decoration: none;
}
.link:hover, .link:focus-visible { text-decoration: underline; }
.more { display: inline-block; margin-top: 1rem; }

h1.page::before { content: "# "; color: var(--muted); }
h1.page .tag { font-size: 0.8rem; }
.back { display: inline-block; margin-top: 1rem; font-size: 0.9rem; }

footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
    .btn { transition: none; }
}

/* Three cards get too narrow for their words below this width, so stack them early. */
@media (max-width: 860px) {
    .grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { padding: 1rem 0.75rem; font-size: 14px; }
    .content { padding: 1.75rem 1.25rem 1.5rem; }
    h1 { font-size: 1.9rem; }
    .cursor { height: 1.5rem; }
    .grid, .principles, .shots { grid-template-columns: 1fr; }
}
