:root {
    --bg: #f7f4ee;
    --bg-soft: #efece5;
    --ink: #0d0d0d;
    --ink-soft: #3a3a3a;
    --muted: #6b6b6b;
    --line: #e2dccc;
    --radius: 14px;
    --max: 1320px;
}

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

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.display {
    font-family: "Archivo Black", sans-serif;
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: uppercase;
    line-height: .95;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 13px;
    transition: .25s;
}

.btn:hover {
    background: transparent;
    color: var(--ink);
}

.hero {
    padding: 68px 0 80px;
    background: linear-gradient(180deg, #eee8dc 0%, var(--bg) 100%);
}

.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: stretch;
}

.gallery {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery img {
    max-width: 100%;
    max-height: 620px;
    object-fit: contain;
}

.summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
}

.pill {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 14px;
}

.summary h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 60px);
}

.summary .desc {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 18px;
}

.meta {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin: 16px 0 0px;
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.content {
    padding: 26px 0 100px;
}

.content-inner {
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.75;
}

.content-inner :is(h2, h3, h4) {
    color: var(--ink);
    font-family: "Archivo Black", sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.2;
    margin-top: 38px;
    margin-bottom: 14px;
}

.content-inner p {
    margin: 0 0 18px;
}

.content-inner a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.content-inner a:hover {
    opacity: .75;
}

.content-inner :is(ul, ol) {
    margin: 0 0 20px;
    padding-left: 22px;
}

.content-inner li {
    margin-bottom: 8px;
}

.content-inner blockquote {
    margin: 24px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--ink);
    background: #f1ecdf;
    color: var(--ink);
}

.content-inner img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin: 20px 0;
}

.content-inner :is(table) {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 15px;
    line-height: 1.5;
}

.content-inner :is(th, td) {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.content-inner th {
    background: #f1ecdf;
    color: var(--ink);
    font-weight: 600;
}

.content-inner hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 26px 0;
}

.content-inner :is(pre, code) {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.content-inner code {
    background: #eee7d8;
    border: 1px solid #ddd2bc;
    border-radius: 6px;
    padding: 1px 5px;
    font-size: .88em;
}

.content-inner pre {
    background: #1d1d1d;
    color: #f4f4f4;
    border-radius: 12px;
    padding: 14px 16px;
    overflow: auto;
    margin: 20px 0;
    line-height: 1.5;
}

.content-inner pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: .92em;
}

.content-inner iframe {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 12px;
    margin: 18px 0;
    min-height: 320px;
}

.related {
    border-top: 1px solid var(--line);
    padding: 46px 0 96px;
}

.related h2 {
    margin: 0 0 24px;
    font-size: clamp(26px, 3.8vw, 44px);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.related-card {
    position: relative;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8f1 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: #d2c8b3;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #ece6d7;
    margin-bottom: 12px;
}

.related-card .tt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 6px;
}

.related-card .nm {
    font-family: "Archivo Black", sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ink);
    min-height: 38px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

    .gallery {
        min-height: 360px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .hero {
        padding: 54px 0 56px;
    }

    .summary {
        padding: 22px;
    }

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

    .content-inner {
        font-size: 16px;
    }
}