:root {
    --font-family: Georgia, "Times New Roman", serif;
    --bg-start: #fbf7ef;
    --bg-end: #f4ecdf;
    --surface: rgba(255, 251, 244, 0.82);
    --surface-strong: #fffdf8;
    --text: #1f1c18;
    --muted: #6e665e;
    --line: rgba(31, 28, 24, 0.1);
    --accent: #b84c2a;
    --accent-soft: #f3d3c7;
    --decor-primary: rgba(184, 76, 42, 0.14);
    --decor-secondary: rgba(36, 95, 96, 0.12);
    --shadow-color: rgba(79, 56, 35, 0.12);
    --card-background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 230, 221, 0.65));
    --shadow: 0 20px 50px var(--shadow-color);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    background:
        radial-gradient(circle at top left, var(--decor-primary), transparent 28%),
        radial-gradient(circle at top right, var(--decor-secondary), transparent 24%),
        linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
}
/*
a {
    color: inherit;
    text-decoration: none;
}
*/
.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.hero,
.article-hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 40px;
    backdrop-filter: blur(12px);
}

.hero h1,
.article-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.sidebar-card__label,
.section-heading p,
.post-card__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__lead {
    max-width: 44rem;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
}

.hero__copy {
    max-width: 34rem;
    color: var(--muted);
    line-height: 1.7;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 24px;
    margin-top: 24px;
}

.layout--sidebar-left {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.7fr);
}

.layout--sidebar-left .sidebar {
    order: 1;
}

.layout--sidebar-left .content {
    order: 2;
}

.content,
.sidebar-card,
.article-body {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.content {
    padding: 28px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: 2rem;
}

.post-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.post-card {
    padding: 24px;
    border-radius: 20px;
    background: var(--card-background);
    border: 1px solid var(--decor-primary);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(184, 76, 42, 0.12);
}

.post-card__image-link {
    display: block;
    margin: -24px -24px 18px;
}

.post-card__image,
.article-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-card__image {
    aspect-ratio: 16 / 10;
    border-radius: 20px 20px 0 0;
}

.post-card h2 {
    margin: 10px 0 12px;
    font-size: 1.8rem;
}

.post-card h2 a,
.sidebar-feed__link {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover,
.sidebar-feed__link:hover {
    color: var(--accent);
}

.post-card p {
    line-height: 1.7;
}

.post-card__link,
.article-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
}

.sidebar {
    display: grid;
    gap: 20px;
}

.sidebar-card {
    padding: 24px;
}

.sidebar-feed {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.sidebar-feed__item + .sidebar-feed__item {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.sidebar-feed__item h3 {
    margin: 8px 0 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.article-layout {
    margin-top: 24px;
}

.article-image-frame,
.article-body {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.article-image-frame {
    overflow: hidden;
    margin: 0 0 24px;
}

.article-image {
    aspect-ratio: 16 / 9;
}

.article-body {
    padding: 34px;
    line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3 {
    line-height: 1.15;
}

.prose p,
.prose li {
    color: color-mix(in srgb, var(--text) 88%, black 12%);
}

.prose code {
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 2px 6px;
}

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

    .hero,
    .article-hero,
    .content,
    .article-image-frame,
    .sidebar-card,
    .article-body {
        padding: 24px;
    }

    .article-image-frame {
        padding: 0;
    }
}
