:root {
    --bg: #f3efe4;
    --paper: rgba(255, 251, 245, 0.82);
    --paper-strong: #fffaf0;
    --ink: #18222b;
    --muted: #51606c;
    --line: rgba(24, 34, 43, 0.12);
    --accent: #9b4d1f;
    --accent-soft: #d89a68;
    --shadow: 0 20px 50px rgba(71, 52, 28, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(216, 154, 104, 0.35), transparent 28%),
        radial-gradient(circle at bottom right, rgba(155, 77, 31, 0.18), transparent 24%),
        linear-gradient(180deg, #f7f1e4 0%, #efe7d8 100%);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

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

.site-header {
    margin-bottom: 34px;
}

.brand {
    text-decoration: none;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-nav a,
.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--accent);
}

.hero,
.content-section,
.feature-card,
.mini-card,
.post-card,
.article-shell,
.project-card {
    border: 1px solid var(--line);
    background: var(--paper);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero,
.content-section,
.article-shell {
    border-radius: 32px;
    padding: 36px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(155, 77, 31, 0.18) 0%, rgba(155, 77, 31, 0) 72%);
}

.eyebrow,
.card-label {
    margin: 0 0 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

h1 {
    max-width: 13ch;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.1;
}

p,
li {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.lede {
    max-width: 700px;
    font-size: 1.18rem;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(155, 77, 31, 0.3);
    color: var(--accent);
}

.button-primary {
    background: var(--ink);
    color: #fffaf0;
    border-color: var(--ink);
}

.button-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fffaf0;
}

.section-grid,
.split-list,
.card-grid {
    display: grid;
    gap: 18px;
}

.section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.feature-card,
.mini-card,
.post-card,
.project-card {
    border-radius: 28px;
    padding: 28px;
}

.project-card img,
.feature-project img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin: 0 0 18px;
    background: var(--paper-strong);
}

.feature-project {
    border-radius: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--paper);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.content-section {
    margin-bottom: 22px;
}

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

.stack > * + * {
    margin-top: 12px;
}

.split-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 0;
    color: var(--accent);
    font-size: 0.95rem;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.article-shell {
    max-width: 860px;
    margin: 0 auto 22px;
}

.article-shell h1 {
    max-width: 16ch;
}

.article-shell p + h2 {
    margin-top: 28px;
}

.article-shell ul {
    padding-left: 20px;
}

.site-footer {
    margin-top: 12px;
    padding: 16px 4px 0;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    color: var(--ink);
}

@media (max-width: 840px) {
    .section-grid,
    .split-list,
    .card-grid,
    .site-header,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .content-section,
    .article-shell {
        padding: 28px 22px;
    }

    .feature-card,
    .mini-card,
    .post-card,
    .project-card {
        padding: 24px 22px;
    }
}
