:root {
    --bg: #fafaf8;
    --card-bg: #ffffff;
    --border: #e4e4e7;
    --accent-pink: #be185d;
    --accent-green: #15803d;
    --text-main: #18181b;
    --text-dim: #71717a;
    --surface: #f4f4f5;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 24px;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* flex: 1 makes main grow and push footer to the very bottom */
main { flex: 1; }

/* ── Navigation ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--text-main);
    text-decoration: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

/* ── Quote strip (below nav, all pages) ── */
.daily-quote {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
    min-height: 44px;
    line-height: 1.5;
}

/* ── Page wrapper ── */
.page-content {
    padding: 52px 0 80px;
}

/* ── Hero (home page) ── */
.hero {
    padding: 64px 0 52px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 52px;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 16px;
    letter-spacing: -1.5px;
    line-height: 1.15;
    font-weight: 700;
}

.hero h1 .pink  { color: var(--accent-pink); }
.hero h1 .green { color: var(--accent-green); }

.hero p {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 0 28px;
}

.hero-links a {
    display: inline-block;
    font-size: 0.88rem;
    margin-right: 20px;
    color: var(--accent-pink);
    text-decoration: none;
    border-bottom: 1px solid rgba(190,24,93,0.3);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.hero-links a:hover { border-color: var(--accent-pink); }

/* ── Section labels ── */
.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-green);
    font-weight: 600;
    margin: 0 0 10px;
}

.page-heading {
    font-size: 1.9rem;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    font-weight: 700;
}

.page-subheading {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0 0 44px;
}

/* ── Project grid ── */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(21,128,61,0.08);
}

.project-card h3 {
    margin: 0 0 12px;
    color: var(--accent-green);
    font-size: 1rem;
    font-weight: 600;
}

.tech-tag {
    display: inline-block;
    font-size: 0.72rem;
    background: rgba(21,128,61,0.07);
    color: var(--accent-green);
    border: 1px solid rgba(21,128,61,0.2);
    border-radius: 20px;
    padding: 2px 9px;
    margin: 0 4px 8px 0;
    font-weight: 500;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 10px 0 18px;
    line-height: 1.6;
}

.project-card a {
    font-size: 0.85rem;
    color: var(--accent-pink);
    text-decoration: none;
    border-bottom: 1px solid rgba(190,24,93,0.25);
    transition: border-color 0.2s;
}

.project-card a:hover { border-color: var(--accent-pink); }

/* ── Blog list ── */
.blog-list { margin-top: 8px; }

.blog-preview {
    margin-bottom: 44px;
    padding-left: 18px;
    border-left: 2px solid var(--border);
    transition: border-color 0.25s;
}

.blog-preview:hover { border-color: var(--accent-pink); }

.blog-preview time {
    font-size: 0.75rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.blog-preview h2 {
    margin: 8px 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
}

.blog-preview h2 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-preview h2 a:hover { color: var(--accent-pink); }

.blog-preview p {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0;
}

/* ── Blog post body ── */
.page-content h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin: 0 0 32px;
    line-height: 1.2;
}

.page-content ul {
    padding-left: 0;
    list-style: none;
}

.page-content ul li {
    margin-bottom: 18px;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
    font-size: 0.97rem;
    line-height: 1.7;
}

/* pink dot before each quote */
.page-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-pink);
    opacity: 0.5;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 32px;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-green));
    margin-right: 8px;
    vertical-align: middle;
}