/* Bombing Around — one stylesheet, no build step. */

:root {
    color-scheme: dark;

    --bg: #0a0b0d;
    --surface: #121418;
    --surface-2: #191c22;
    --line: #252932;
    --line-strong: #353a45;

    --text: #ece9e3;
    --muted: #a3a5ac;
    --dim: #6f727b;

    --accent: #ff6b1a;
    --accent-hot: #ff8a45;
    --accent-soft: rgba(255, 107, 26, 0.12);
    --spark: #ffd27a;
    --live: #5fd38d;

    --radius: 14px;
    --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Faint dot grid over the whole page, fading out toward the bottom. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .wrap {
        padding: 0 24px;
    }
}

.mono {
    font-family: var(--font-mono);
}

/* ---- nav ---- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 11, 13, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font: 700 15px/1 var(--font-display);
    letter-spacing: -0.01em;
}

.brand i {
    color: var(--accent);
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    padding: 8px 10px;
    border-radius: 8px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

@media (max-width: 479px) {
    .brand span {
        display: none;
    }
}

/* ---- hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% 30%;
    height: 120%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 107, 26, 0.16), transparent);
    pointer-events: none;
}

.fuse {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.fuse-cord {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 2;
    stroke-dasharray: 2 7;
    stroke-linecap: round;
}

.fuse-spark {
    fill: none;
    stroke: var(--spark);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 10 990;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px var(--accent));
    animation: burn 11s linear infinite;
}

@keyframes burn {
    to {
        stroke-dashoffset: 0;
    }
}

.eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    font: 500 13px/1 var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--accent);
}

.hero h1 {
    font: 800 clamp(2.75rem, 9vw, 6rem)/0.95 var(--font-display);
    letter-spacing: -0.03em;
}

.hero h1 .accent {
    display: block;
    color: var(--accent);
}

.hero .lede {
    max-width: 36ch;
    margin-top: 28px;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 15px/1 var(--font-body);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #140a03;
}

.btn-primary:hover {
    background: var(--accent-hot);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: var(--bg);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--muted);
    background: var(--surface);
}

/* ---- sections ---- */

.section {
    padding: 88px 0 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 32px;
}

.section-head h2 {
    font: 700 clamp(1.5rem, 3.5vw, 2rem)/1.1 var(--font-display);
    letter-spacing: -0.02em;
}

.section-head p {
    font: 400 13px/1.4 var(--font-mono);
    color: var(--dim);
}

/* ---- featured ---- */

.feature {
    position: relative;
    display: grid;
    gap: 32px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 26, 0.35);
    border-radius: calc(var(--radius) + 4px);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 107, 26, 0.18), transparent 55%),
        linear-gradient(160deg, #17110d, var(--surface) 60%);
}

@media (min-width: 820px) {
    .feature {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 48px;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 107, 26, 0.4);
    border-radius: 999px;
    background: var(--accent-soft);
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-hot);
}

.feature h3 {
    margin: 18px 0 14px;
    font: 700 clamp(1.75rem, 4.5vw, 2.75rem)/1.05 var(--font-display);
    letter-spacing: -0.02em;
}

.feature p {
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.feature .tags {
    margin: 20px 0 28px;
}

.feature-mark {
    display: none;
}

@media (min-width: 820px) {
    .feature-mark {
        display: grid;
        place-items: center;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 107, 26, 0.35), rgba(255, 107, 26, 0.04) 70%, transparent);
        color: var(--accent);
        font-size: 84px;
    }

    .feature-mark i {
        filter: drop-shadow(0 0 24px rgba(255, 107, 26, 0.6));
    }
}

/* ---- project cards ---- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: rgba(255, 107, 26, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -16px rgba(255, 107, 26, 0.35);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icon-tile {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--accent);
    font-size: 19px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--live);
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(95, 211, 141, 0.18);
}

.card h3 {
    margin-bottom: 8px;
    font: 600 1.15rem/1.3 var(--font-body);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.tags li {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 400 12px/1.5 var(--font-mono);
    color: var(--dim);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: auto;
    padding-top: 20px;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

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

.links a i {
    color: var(--dim);
    transition: color 0.2s;
}

.links a:hover i {
    color: inherit;
}

/* Shelved projects: parked, so they read a notch quieter. */

.card.shelved {
    border-style: dashed;
    background: transparent;
}

.card.shelved .icon-tile {
    color: var(--muted);
    background: transparent;
}

.card.shelved:hover .icon-tile {
    color: var(--accent);
}

/* ---- about ---- */

.about {
    display: grid;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

@media (min-width: 720px) {
    .about {
        grid-template-columns: 140px 1fr;
        align-items: start;
        padding: 40px;
    }
}

.about img {
    width: 120px;
    height: 120px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
}

.about h3 {
    margin-bottom: 14px;
    font: 700 1.4rem/1.2 var(--font-display);
    letter-spacing: -0.01em;
}

.about h3 em {
    font-style: normal;
    color: var(--accent);
}

.about p {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.about p + p {
    margin-top: 14px;
}

/* ---- contact ---- */

.contact {
    padding: 104px 0 96px;
    text-align: center;
}

.contact .eyebrow {
    margin-bottom: 16px;
}

.contact a.mail {
    display: inline-block;
    font: 700 clamp(1.15rem, 4.2vw, 2.25rem)/1.2 var(--font-display);
    letter-spacing: -0.02em;
    text-decoration: none;
    overflow-wrap: anywhere;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    transition: color 0.2s, background-size 0.3s;
}

.contact a.mail:hover {
    color: var(--accent-hot);
    background-size: 100% 2px;
}

/* ---- footer ---- */

.footer {
    border-top: 1px solid var(--line);
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
    font: 400 12px/1.5 var(--font-mono);
    color: var(--dim);
}

.footer a {
    text-decoration: none;
}

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

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fuse-spark {
        animation: none;
        stroke-dashoffset: 380;
    }

    .card,
    .btn,
    .contact a.mail {
        transition: none;
    }

    .card:hover,
    .btn:hover {
        transform: none;
    }
}
