/* Typography */
:root {
    --text-color: #111;
    --background-color: #fffff8;
    --accent-color: #111;
    --link-color: #111;
    --side-note-color: #666;
    --side-note-background: #f3f3f3;
}

/* Base styles */
html {
    font-size: 15px;
}

body {
    font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Base container */
.container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Layout */
header, main, footer {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Navigation */
nav {
    width: 100%;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .home,
.nav-links a {
    font-weight: bold;
    letter-spacing: 0.03em;
}

nav .home {
    font-size: 1.2rem;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 1.1rem;
    border-bottom: none;
}

.nav-links a:hover {
    border-bottom: 1px solid var(--link-color);
}

/* Typography */
h1, h2, h3 {
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1.4rem; }

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--link-color);
}

p a {
    border-bottom: 1px solid var(--link-color);
}

p a:hover {
    opacity: 0.7;
}

/* Hero section */
.hero {
    margin: 2rem 0 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.3rem;
    color: var(--side-note-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero .intro {
    font-size: 1.05rem;
}

/* Projects section */
.projects {
    margin: 3rem 0;
}

.project {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.project:last-child {
    border-bottom: none;
}

.project h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.project h3 a {
    border-bottom: none;
}

.project h3 a:hover {
    border-bottom: 1px solid var(--link-color);
}

.project .project-meta {
    color: var(--side-note-color);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.project p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Clients section */
.clients {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--text-color);
}

.clients p {
    color: var(--side-note-color);
    font-style: italic;
}

/* Services section */
.services {
    margin: 2rem 0;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.services li:before {
    content: "—";
    position: absolute;
    left: 0;
}

/* Contact section */
.contact {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--text-color);
}

.contact-links {
    list-style: none;
    padding: 0;
}

.contact-links li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

footer p {
    color: var(--side-note-color);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    nav {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}
