:root {
    --paper: #fcfbf8;
    --paper-strong: #f4f0e8;
    --ink: #181512;
    --muted: #6d655d;
    --line: rgba(24, 21, 18, 0.12);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 40px rgba(39, 29, 18, 0.06);
    --accent: #8b5e48;
    --accent-soft: rgba(139, 94, 72, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(194, 119, 68, 0.05), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(61, 91, 83, 0.04), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(107, 91, 70, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 91, 70, 0.03) 1px, transparent 1px);
    background-size: 100% 38px, 38px 100%;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

.page-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 34px;
}

.hero-copy,
.hero-card,
.project-card,
.note {
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 30px;
    border-radius: 24px 24px 56px 24px;
}

.hero-card {
    border-radius: 24px 24px 24px 56px;
    overflow: hidden;
}

.hero-card-inner {
    height: 100%;
    padding: 22px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(244, 240, 232, 0.92)),
        url("./shared/assets/project-icons/hero-brush.svg") center/cover no-repeat;
}

.eyebrow,
.project-kicker,
.hero-card-label {
    margin: 0 0 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 0.95;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.05;
}

h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.lede,
.project-body p,
.note p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #2e2925;
}

.hero-stats {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.hero-stats li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(24, 21, 18, 0.08);
}

.hero-stats li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hero-stats strong {
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 30px;
    font-weight: 500;
}

.hero-stats span {
    color: var(--muted);
}

.section {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.project-card {
    border-radius: 22px;
    padding: 12px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 0;
}

.project-art {
    position: relative;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(239, 228, 210, 0.95)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(239, 228, 210, 0.7));
    border: 1px solid rgba(24, 21, 18, 0.08);
}

.project-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}

.project-link::after {
    content: "→";
    color: var(--accent);
    transition: transform 0.25s ease;
}

.note {
    border-radius: 20px;
    padding: 22px 24px;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding: 20px 0 40px;
    }

    .hero-copy,
    .hero-card-inner {
        padding: 20px;
    }

    .hero-copy {
        border-radius: 20px 20px 42px 20px;
    }

    .hero-card {
        border-radius: 20px 20px 20px 42px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-art {
        max-width: 132px;
    }
}
