:root {
    --bg-color: #0a0a0a;
    --text-main: #e5e5e5;
    --text-muted: #888;
    --accent: #fdcc2d;
    --border-color: #333;
    --panel-color: #151515;
    --cream: #fff8eb;
    --brown: #502810
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--border-color);
    color: var(--text-main);
    font-family: Inter, sans-serif;
    margin: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh
}

.sidebar {
    background: var(--bg-color);
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: space-between
}

.sidebar>div:first-child {
    padding: 2rem
}

.sidebar h1,
.project-title,
.phase-title {
    font-family: 'Playfair Display', serif
}

.sidebar h1 {
    font-size: 2rem;
    line-height: 1;
    margin: 4rem 0 .5rem
}

.subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem
}

.back-link:hover {
    color: var(--accent)
}

.meta-info {
    padding: 2rem;
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.6
}

.muted {
    color: var(--text-muted)
}

.project-content {
    background: var(--bg-color);
    overflow-y: auto
}

.banner {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--border-color);
    opacity: .9
}

.content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 5rem 3rem
}

.eyebrow,
.section-index {
    color: var(--accent);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em
}

.project-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3rem
}

.project-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin: 1rem 0 0
}

.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    align-self: end;
    margin: 0
}

.project-meta {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: .85rem
}

.meta-label {
    display: block;
    color: var(--text-main);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem
}

.phase-section {
    margin: 6rem 0
}

.phase-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
    margin: 1rem 0 1.5rem
}

.text-body {
    max-width: 680px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8
}

.charte-grid,
.web-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem
}

.charte-card,
.feature {
    background: var(--panel-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem
}

.charte-card h3,
.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin: 0 0 1.5rem
}

.charte-card p,
.feature p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: .85rem
}

.swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.swatch {
    height: 110px;
    display: flex;
    align-items: end;
    padding: 8px;
    font-size: .7rem
}

.swatch-cream {
    background: var(--cream);
    color: var(--brown)
}

.swatch-yellow {
    background: var(--accent);
    color: var(--brown)
}

.swatch-brown {
    background: var(--brown);
    color: var(--cream)
}

.type-sample {
    border-bottom: 1px solid var(--border-color);
    padding: .7rem 0;
    margin-top: .5rem
}

.type-display {
    font-family: Fraunces, serif;
    font-size: 1.5rem;
    color: var(--cream)
}

.type-body {
    font-size: 1.25rem
}

.feature-number {
    color: var(--accent);
    font-size: .7rem
}

.feature {
    min-height: 190px
}

.feature h3 {
    margin: .8rem 0
}

.web-grid .feature:last-child {
    grid-column: span 2
}

.preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center
}

.live-preview {
    background: var(--cream);
    color: var(--brown);
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .3)
}

.preview-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(80, 40, 16, .2);
    display: flex;
    justify-content: space-between
}

.preview-header span {
    font-size: .8rem
}

.preview-content {
    padding: 1.5rem
}

.preview-kicker {
    font-family: Fraunces, serif;
    font-size: 1.8rem;
    margin: 0 0 1.2rem
}

.preview-card-dish {
    border: 1px solid var(--brown);
    padding: 1rem;
    margin-bottom: .7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem
}

.details-btn {
    background: var(--accent);
    color: var(--brown);
    border: 0;
    padding: .45rem .8rem;
    font-size: .75rem;
    font-weight: 600
}

.project-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.project-footer img {
    width: 180px;
    max-height: 70px;
    object-fit: contain
}

.project-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em
}

@media(max-width:1024px) {
    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr
    }

    .sidebar {
        height: auto;
        position: relative;
        border-right: 0;
        border-bottom: 1px solid var(--border-color)
    }

    .meta-info {
        padding-top: 0
    }
}

@media(max-width:700px) {
    .content-wrapper {
        padding: 4rem 2rem
    }

    .project-header,
    .preview-section,
    .charte-grid,
    .web-grid {
        grid-template-columns: 1fr
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 1rem
    }

    .phase-section {
        margin: 4rem 0
    }

    .web-grid .feature:last-child {
        grid-column: auto
    }

    .project-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem
    }
}