:root {
    --cream: #fbf7ef;
    --paper: #fffdf8;
    --sage: #83947a;
    --sage-dark: #53644f;
    --peach: #e7aa86;
    --ink: #27312a;
    --muted: #68726b;
    --line: #dfe4d8;
    --shadow: 0 18px 55px rgba(54, 68, 55, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(231, 170, 134, 0.17), transparent 30rem),
        linear-gradient(180deg, var(--cream), #f7f8f2);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(83, 100, 79, 0.13);
    background: rgba(251, 247, 239, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.header-inner {
    min-height: 104px;
}

.visual-mark {
    display: block;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(69, 80, 67, 0.16);
}

.visual-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--sage-dark);
    font-weight: 750;
    text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
    color: white;
    background: var(--sage-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
    padding-block: clamp(70px, 10vw, 130px);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.14;
    text-wrap: balance;
}

h1 {
    max-width: 850px;
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.hero p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-visual {
    position: relative;
    padding: 18px;
}

.hero-visual::before {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: 48% 52% 47% 53%;
    content: "";
    transform: rotate(7deg);
}

.hero-visual img {
    position: relative;
    display: block;
    border-radius: 48% 52% 50% 50%;
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.section-heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.articles-section {
    padding-block: 30px 110px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: 0 12px 34px rgba(60, 73, 60, 0.06);
}

.article-card h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.article-card h2 a {
    text-decoration: none;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible {
    color: var(--sage-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-card > p:not(.eyebrow) {
    margin: 0 0 24px;
    color: var(--muted);
}

.read-more {
    margin-top: auto;
    color: var(--sage-dark);
    font-weight: 800;
    text-decoration: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    color: white;
    background: var(--sage-dark);
    font-weight: 800;
    text-decoration: none;
}

.blog-intro {
    padding-block: clamp(60px, 9vw, 105px) 42px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    text-decoration: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(230px, 1fr);
    gap: clamp(42px, 7vw, 84px);
    align-items: start;
    padding-block: clamp(55px, 8vw, 100px);
}

.article-content {
    padding: clamp(26px, 5vw, 60px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.article-content h1 {
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
}

.article-content h2 {
    margin-top: 2.1em;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.article-content h3 {
    margin-top: 1.8em;
}

.article-content p,
.article-content li {
    color: #404b43;
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    min-width: 150px;
    padding: 11px;
    border: 1px solid var(--line);
    text-align: left;
}

.article-content img {
    height: auto;
    border-radius: 20px;
}

.article-sidebar {
    position: sticky;
    top: 132px;
}

.article-sidebar section {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.82);
}

.article-sidebar h2 {
    margin-top: 0;
    font-size: 1.18rem;
}

.article-sidebar ul {
    margin: 0;
    padding-left: 19px;
}

.article-sidebar li + li {
    margin-top: 10px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--sage-dark);
    color: white;
}

.footer-inner {
    min-height: 104px;
}

.footer-inner p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: white;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.empty-state {
    padding: 46px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    text-align: center;
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .shell {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 86px;
    }

    .visual-mark {
        width: 62px;
        height: 62px;
    }

    nav a {
        padding: 9px 13px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 52px;
    }

    .hero-visual {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .article-card {
        min-height: 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 28px;
    }
}

