@import url("https://fonts.bunny.net/css?family=dm-serif-display:400,400i&display=swap");
@import url("https://fonts.bunny.net/css?family=dm-sans:300,400,500&display=swap");
@import url("https://fonts.bunny.net/css?family=dm-sans:700&display=swap");

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

:root {
    color-scheme: dark;
    --bg:       #0d0e11;
    --surface:  #15161a;
    --border:   #242529;
    --muted:    #5a5c66;
    --text:     #e4e5ea;
    --accent:   #cc785c; /* warm terracotta — distinctive, not purple */
    --accent-dim: rgba(204,120,92,0.12);
    --radius:   10px;
    --max-w:    600px;
    --font-serif: 'DM Serif Display', serif;
    --font-sans: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* subtle grid texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── HEADER ───────────────────────────── */
header {
    padding: 72px 0 56px;
    animation: fadeUp .6s ease both;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.tagline {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 420px;
}

/* ── DIVIDER ──────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 36px;
    animation: fadeUp .6s .1s ease both;
}

/* ── PROJECTS ─────────────────────────── */
.projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeUp .6s .2s ease both;
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    gap: 16px;
}

.project-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateX(4px);
}

.project-btn:active { transform: translateX(2px) scale(.99); }

.proj-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.proj-name {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-desc {
    font-size: .82rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.proj-tag {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(204,120,92,0.25);
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.arrow {
    flex-shrink: 0;
    color: var(--muted);
    transition: color .2s, transform .2s;
}

.project-btn:hover .arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ── FOOTER ───────────────────────────── */
footer {
    margin-top: auto;
    padding: 48px 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeUp .6s .35s ease both;
}

.footer-copy {
    font-size: .78rem;
    color: var(--muted);
}

.footer-link {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

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

.footer-link svg {
    transition: transform .2s;
}

.footer-link:hover svg {
    transform: translateX(2px);
}

/* ── ANIMATION ────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to   {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── MOBILE ───────────────────────────── */
@media (max-width: 480px) {
    header {
        padding: 52px 0 40px;
    }

    .proj-tag {
        display: none;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ── UTILITIES ───────────────────────────── */
.text, [text], [t] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -o-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.bold, [bold], [s] { font-weight: 700 !important; }
.center, [center], [c] { text-align: center !important; }
