/* ============================================================
   Standalone project site - self-contained, portable.
   Dark theme, green academic accent, old-book serif fonts.
   Matches harshitk95.github.io design language.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700&family=PT+Mono&display=swap');

:root {
    --halycon: #00eeb6;
    --bg: #000000;
    --muted: #8892b0;
    --text: #b6c0d4;
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; font-family: 'EB Garamond', Georgia, serif; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3.5rem 6vw 5rem;
}

/* ---------- top bar ---------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.4rem 6vw 0;
    font-family: 'PT Mono', monospace;
    font-size: 0.85rem;
}

.topbar a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.topbar a:hover { color: var(--halycon); }
.topbar .home-link { color: var(--halycon); }

/* ---------- hero ---------- */
.eyebrow {
    color: var(--halycon);
    font-family: 'PT Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
}

h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 1rem;
}

.sub { font-size: 1.25rem; color: var(--muted); margin: 0 0 1.2rem; font-style: italic; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.chip {
    font-family: 'PT Mono', monospace;
    font-size: 0.8rem;
    color: var(--halycon);
    border: 1px solid rgba(0, 238, 182, 0.35);
    background: rgba(0, 238, 182, 0.05);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

/* ---------- section headings ---------- */
h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 2.8rem 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.2rem; color: #fff; margin: 1.8rem 0 0.7rem; }

.prose p, .prose li { font-size: 1.2rem; line-height: 1.75; color: var(--text); font-weight: 400; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.5rem; }
.term { color: var(--halycon); font-weight: 500; }
.prose em { color: #cfd8e6; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 2rem;
}

/* ---------- note ---------- */
.note {
    border-left: 3px solid rgba(0, 238, 182, 0.45);
    background: rgba(0, 238, 182, 0.04);
    border-radius: 0 10px 10px 0;
    padding: 0.9rem 1.2rem;
    margin: 0 0 1.6rem;
}
.note p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.note code { font-family: 'PT Mono', monospace; color: var(--halycon); font-size: 0.85rem; }

/* ---------- pdf button ---------- */
.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    padding: 0.6rem 1.2rem;
    color: var(--halycon);
    border: 1px solid rgba(0, 238, 182, 0.4);
    border-radius: 999px;
    font-family: 'PT Mono', monospace;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
}
.pdf-btn:hover { background: rgba(0, 238, 182, 0.08); }

/* ---------- gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.media {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.media:hover { transform: translateY(-3px); border-color: rgba(0, 238, 182, 0.35); }
.media img, .media video { display: block; width: 100%; height: 200px; object-fit: cover; background: #000; }
.media p { color: var(--muted); font-family: 'PT Mono', monospace; font-size: 0.78rem; text-align: center; padding: 0.7rem 0.8rem; margin: 0; }

/* ---------- related pubs ---------- */
.pubs { display: flex; flex-direction: column; gap: 1rem; }
.pub {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.pub:hover { transform: translateY(-3px); border-color: rgba(0, 238, 182, 0.35); background: rgba(0, 238, 182, 0.05); }
.pub-venue { font-family: 'PT Mono', monospace; font-size: 0.78rem; color: var(--halycon); margin: 0 0 0.4rem; }
.pub-title { font-size: 1.15rem; color: #fff; margin: 0 0 0.3rem; font-family: 'Libre Baskerville', Georgia, serif; }
.pub-authors { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 6vw 3rem;
    border-top: 1px solid var(--border);
    font-family: 'PT Mono', monospace;
    font-size: 0.82rem;
    color: var(--muted);
}
footer a { color: var(--halycon); text-decoration: none; }

@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    .wrap { padding-top: 2rem; }
}
