:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --text: #171717;
    --muted: #5f5f5f;
    --line: #e7e2d8;
    --line-strong: #d8d1c3;
    --accent: #1d5c63;
    --accent-soft: #eef5f5;
    --max-width: 68rem;
    --copy-width: 42rem;
    --header-height: 4.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

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

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

p,
ul,
ol {
    margin-top: 0;
}

button,
summary {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(29, 92, 99, 0.28);
    outline-offset: 4px;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.page-shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 1.7rem + 0.9vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-nav a,
.mobile-nav__panel a {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.mobile-nav__panel a:hover,
.mobile-nav__panel a[aria-current="page"] {
    color: var(--accent);
}

.mobile-nav {
    display: none;
    position: relative;
}

.mobile-nav summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

.mobile-nav summary span {
    display: block;
    width: 1rem;
    height: 2px;
    margin: 2px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav__panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 13rem;
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
}

.site-main {
    padding: 2.5rem 0 4rem;
}

.page-home .page-shell {
    width: min(calc(100% - 2rem), 72rem);
}

.section-kicker {
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading,
.page-intro {
    margin-bottom: 1.75rem;
}

.page-intro .page-title {
    margin-bottom: 1rem;
}

.page-intro .article-meta {
    margin-bottom: 0.9rem;
}

.page-intro .page-lead {
    margin: 0;
}

.section-heading h2,
.page-title,
.hero__title,
.theme-card h3,
.work-card h3,
.featured-writing h3,
.post-card h2,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.05;
    color: var(--text);
}

.hero {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.portrait-frame {
    overflow: hidden;
    border-radius: 0.5rem;
    background: #eae5db;
}

.portrait-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero__content {
    max-width: 40rem;
}

.hero__name {
    margin: 0 0 0.35rem;
    font-size: clamp(2.8rem, 2.1rem + 1.8vw, 4.1rem);
}

.hero__eyebrow {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hero__lead,
.section-subtitle,
.page-lead,
.statement p,
.theme-card p,
.work-card p,
.featured-writing p,
.post-card__description,
.contact-copy,
.article-content,
.meta-block dd,
.site-footer__inner {
    color: var(--muted);
}

.hero__lead,
.section-subtitle,
.page-lead {
    max-width: var(--copy-width);
    font-size: 1.1rem;
}

.hero__summary {
    margin: 0.75rem 0 0;
    max-width: var(--copy-width);
    color: var(--muted);
    font-size: 1.02rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.button--primary:hover {
    background: #174c51;
    border-color: #174c51;
}

.button--secondary,
.button--ghost {
    background: transparent;
    color: var(--text);
}

.button--secondary:hover,
.button--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.meta-stack {
    display: grid;
    gap: 1rem;
}

.meta-block {
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.meta-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.meta-block dt {
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-block dd {
    margin: 0;
}

.tag-list,
.link-cluster,
.work-card__links,
.contact-links,
.social-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.text-link,
.link-cluster a,
.featured-writing__link,
.post-card__link,
.article-content a,
.article-back {
    color: var(--accent);
    font-weight: 700;
}

.content-section,
.page-intro,
.article-shell {
    margin-top: 4rem;
}

.page-intro + .article-shell {
    margin-top: 5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
    max-width: none;
}

.statement {
    max-width: var(--copy-width);
}

.statement__lede {
    font-size: 1.2rem;
    color: var(--text);
}

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

.theme-card {
    padding-top: 1rem;
    border-top: 1px solid var(--line-strong);
}

.theme-card__index {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.theme-card h3,
.work-card h3 {
    font-size: 1.9rem;
    margin-bottom: 0.7rem;
}

.section-heading--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
}

.work-grid,
.post-feed {
    display: grid;
    gap: 1.1rem 1.5rem;
}

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

.work-card,
.featured-writing,
.post-card,
.contact-panel {
    padding: 1.35rem 0 0;
    border-top: 1px solid var(--line-strong);
}

.work-card__meta,
.featured-writing__meta,
.post-card__meta,
.article-meta {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.work-card__links {
    margin-top: 0.85rem;
}

.work-card__links a,
.social-link,
.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
}

.work-card__links a:hover,
.social-link:hover,
.contact-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.featured-writing {
    max-width: 48rem;
}

.contact-panel {
    max-width: 48rem;
}

.contact-links {
    margin-top: 1rem;
}

.social-strip {
    margin-top: 1.25rem;
}

.page-title {
    font-size: clamp(2.8rem, 2.1rem + 2vw, 4.2rem);
    max-width: 16ch;
}

.post-feed {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.post-card h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.featured-writing h3 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.article-shell {
    max-width: 46rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
}

.article-content h2 {
    font-size: 2.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.9rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-content h4 {
    font-size: 1.4rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre {
    margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.3rem;
}

.article-content blockquote {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--line-strong);
}

.article-content code,
.article-content pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.article-content code {
    padding: 0.08rem 0.28rem;
    background: #f0ece3;
    border-radius: 0.2rem;
    font-size: 0.95em;
}

.article-content pre {
    overflow-x: auto;
    padding: 1rem;
    background: #1f2328;
    border-radius: 0.6rem;
    color: #f7f4ee;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    padding: 1.4rem 0 2.6rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 10rem minmax(0, 1fr);
    }

    .theme-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav--desktop {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .page-shell,
    .site-header__inner,
    .site-footer__inner {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portrait-frame {
        max-width: 9rem;
    }

    .section-heading--split,
    .site-footer__inner {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .site-main {
        padding-top: 1.5rem;
    }

    .button,
    .contact-links a,
    .social-link,
    .work-card__links a {
        width: 100%;
        justify-content: center;
    }

    .hero__actions,
    .contact-links,
    .social-strip,
    .work-card__links {
        display: grid;
    }

    .page-title,
    .section-heading h2 {
        max-width: none;
    }
}
