:root {
    --paper: #f3efe8;
    --paper-deep: #ece6dc;
    --ink: #3f433f;
    --ink-soft: #6d6f6a;
    --line: rgba(66, 66, 66, 0.18);
    --water: #6f8799;
    --water-soft: #cfd9df;
    --shadow: 0 12px 28px rgba(40, 40, 40, 0.08);
    --radius: 10px;
    --max: 1040px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
        linear-gradient(rgba(255,255,255,0.22), rgba(255,255,255,0.22)),
        url("img/splash3-paper.jpg") center top / cover no-repeat fixed,
        var(--paper);
}

img {
    display: block;
    max-width: 100%;
}

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

.paper-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(148, 172, 188, 0.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(167, 172, 162, 0.10), transparent 34%);
}

.container {
    width: min(calc(100% - 2.2rem), var(--max));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0;
}

.nav-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.nav-link,
.main-nav a {
    font-size: 0.95rem;
    color: #3e423d;
}

.nav-link {
    justify-self: start;
}

.brand-mark {
    justify-self: center;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.01em;
}

.main-nav {
    justify-self: end;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-sketch {
    padding: 1.2rem 0 2rem;
}

.hero-inner {
    display: grid;
    gap: 1.4rem;
}

.hero-image-wrap {
    position: relative;
}

.hero-image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 2rem -1rem 2rem;
    height: 2rem;
    background: rgba(80, 80, 80, 0.07);
    filter: blur(18px);
    z-index: -1;
}

.hero-image {
    width: 100%;
    border-radius: 6px;
    filter: grayscale(0.2) contrast(0.95) brightness(1.01);
}

.hero-copy {
    text-align: center;
    padding: 0.4rem 0 0.6rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 4rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.08;
    color: #4a4a48;
}

.hero-subtitle {
    margin: 0.7rem 0 0;
    font-size: 1.05rem;
    color: #555954;
}

.ink-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.9rem 1.6rem;
    border-radius: 6px;
    background:
        linear-gradient(180deg, #6d8291, #596f7f);
    color: #f5f1ea;
    box-shadow: 0 8px 20px rgba(73, 89, 101, 0.18);
    border: 1px solid rgba(72, 83, 90, 0.24);
    font-size: 1rem;
}

.ink-button:hover {
    filter: brightness(1.04);
}

.ink-button-light {
    background:
        linear-gradient(180deg, #d8d3ca, #c9c3b9);
    color: #494b46;
}

.hero-cta {
    margin-top: 1.2rem;
}

.portfolio-strip {
    padding: 1.2rem 0 2.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.sketch-card {
    text-align: center;
}

.sketch-thumb {
    background: rgba(255,255,255,0.26);
    border: 1px solid rgba(86, 86, 86, 0.10);
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.sketch-thumb img {
    width: 100%;
    aspect-ratio: 1.08 / 1;
    object-fit: cover;
    border-radius: 3px;
    filter: grayscale(0.25) contrast(0.96) brightness(1.03);
}

.sketch-card h2 {
    margin: 1rem 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 500;
    font-style: italic;
    color: #4c4f4a;
}

.sketch-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 26ch;
    margin-inline: auto;
}

.story-panel {
    padding: 1.3rem 0 3rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.story-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-style: italic;
    font-weight: 500;
    color: #4a4a48;
    line-height: 1.08;
}

.story-copy p {
    margin: 0 0 1rem;
    color: #5a5d58;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 34rem;
}

.story-copy .ink-button {
    margin-top: 0.6rem;
}

.story-art {
    padding: 0.4rem;
    background: rgba(255,255,255,0.22);
    border-radius: 8px;
}

.story-art img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(0.18) contrast(0.98) brightness(1.02);
}

.site-footer {
    padding: 2.2rem 0 2rem;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 1.5rem;
    align-items: center;
}

.footer-copy h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.footer-copy p {
    margin: 0.2rem 0;
    color: #626560;
}

.footer-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-bottom {
    padding-top: 1.4rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(66, 66, 66, 0.10);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #747771;
    font-size: 0.95rem;
}

@media (max-width: 920px) {
    .nav-row,
    .story-grid,
    .footer-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .nav-link,
    .brand-mark,
    .main-nav {
        justify-self: center;
    }

    .main-nav {
        justify-content: center;
        gap: 1.1rem;
    }

    .footer-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.2rem), var(--max));
    }

    .brand-mark {
        font-size: 2.35rem;
    }

    .main-nav {
        gap: 0.9rem;
    }

    .hero-sketch {
        padding-top: 0.8rem;
    }

    .sketch-card p {
        max-width: none;
    }
}
