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

:root {
    --bg: #f7f2eb;
    --surface: #ffffff;
    --text: #1d1914;
    --muted: #5b5349;
    --accent: #b15a2f;
    --border: rgba(29, 25, 20, 0.08);
    --shadow: 0 30px 70px rgba(29, 25, 20, 0.08);
    --radius: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: radial-gradient(circle at top left, rgba(177, 90, 47, 0.12), transparent 20%),
        radial-gradient(circle at bottom right, rgba(177, 90, 47, 0.08), transparent 18%),
        linear-gradient(180deg, #faf5ef 0%, #f3ede5 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.24), transparent 16%),
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 14%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

/* ── Navigation ── */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(29, 25, 20, 0.07);
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--accent);
}

.nav-cta {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(177, 90, 47, 0.12);
    border: 1px solid rgba(177, 90, 47, 0.18);
}

/* ── Hero ── */

.hero {
    margin-top: 2rem;
    padding: 4.5rem 2rem 3rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 90, 47, 0.12), transparent 55%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 12ch;
    margin-bottom: 1.3rem;
}

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

.hero-copy {
    max-width: 58rem;
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-2px);
}

/* ── Section layout ── */

.section-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent);
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    line-height: 1.05;
    max-width: 16ch;
}

section {
    margin-top: 4rem;
}

/* ── Work cards ── */

.work-list {
    display: grid;
    gap: 1.25rem;
}

.work-card {
    display: block;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    box-shadow: 0 22px 50px rgba(29, 25, 20, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(177, 90, 47, 0.22);
}

.work-eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.work-card h3 {
    margin-bottom: 0.95rem;
    font-size: clamp(1.75rem, 2.5vw, 2.4rem);
    line-height: 1.08;
    font-family: 'DM Serif Display', serif;
}

.work-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.35rem;
    max-width: 60ch;
}

.work-foot {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.see-all {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    transition: gap 0.2s ease;
}

.see-all:hover {
    gap: 0.7rem;
}

/* ── About ── */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.about-copy p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.4rem;
    max-width: 64ch;
}

.about-copy p strong {
    color: var(--text);
    font-weight: 700;
}

.info-panel {
    display: grid;
    gap: 1rem;
}

.info-card {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
}

.info-card strong {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.info-card p {
    color: var(--muted);
    line-height: 1.7;
}

/* ── Contact ── */

.contact-panel {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-panel p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.contact-links a {
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(177, 90, 47, 0.24);
}

/* ── Page hero (non-home pages) ── */

.page-hero {
    margin-top: 2rem;
    padding: 3.5rem 2rem 2.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 90, 47, 0.1), transparent 55%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    max-width: 20ch;
    margin-bottom: 0.9rem;
}

.page-hero p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 60ch;
}

/* ── Footer ── */

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .site-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100%, calc(100% - 1rem));
        padding: 1.5rem 0 2rem;
    }

    .hero,
    .page-hero {
        padding: 3.5rem 1.5rem 2.5rem;
    }

    h1 {
        font-size: clamp(2.8rem, 12vw, 4.5rem);
    }

    .work-card {
        padding: 1.75rem;
    }

    h2 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }
}
