@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,400&family=DM+Mono:wght@300&display=swap');

/* --- Variables --- */
:root {
    --bg: #f5f4f0;
    --text: #18192b;
    --muted: #44455c;
    --accent: #2d52b8;
    --border: #d8d8e8;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'DM Mono', monospace;
}

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-serif);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    line-height: 1.75;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 4rem 0 6rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* --- Navigation + ID selector --- */

#site-nav {
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

#site-nav .nav-inner {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
 
#site-nav .nav-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 2rem;
}

#site-nav ul {
    display: flex;
    gap: 1.75rem;
}

#site-nav ul a {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

#site-nav ul a:hover,
#site-nav ul a.active {
    color: var(--accent);
}

/* --- Footer + class selector --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
}

.site-footer p {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Typography --- */
h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Page label --- */
.page-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* === Tags === */
.tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #eeeef8;
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    display: inline-block;
    margin: 0.2rem 0.2rem 0 0;
}

/* --- Hero (index.html) --- */
.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-bio {
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Snapshot grid (index.html) --- */
.snapshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.snapshot-grid li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.snapshot-grid li:last-child {
    border-bottom: none;
}

/* --- About photo --- */
.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

/* --- About table --- */
.about-table {
    width: 100%;
    border-collapse: collapse;
}

.about-table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.about-table td:first-child {
    font-family: var(--font-mono);
    font-size: .90rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    width: 40%;
}

/* --- Projects (projects.html) --- */
.project-item {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.project-item:last-child {
    border-bottom: 1px solid var(--border);
}

.project-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.project-item p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

/* --- Contact (contact.html) --- */
.contact-intro {
    color: var(--muted);
    max-width: 440px;
    margin-bottom: 3rem;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.contact-row:last-child {
    border-bottom: 1px solid var(--border);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: .90rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-note {
    margin-top: 2.5rem;
    color: var(--muted);
    font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 560px) {
    h1 { font-size: 2.2rem; }

    #site-nav {
        flex-direction: column;
        gap: 1rem;
    }

    #site-nav ul {
        gap: 1.25rem;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .contact-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}