:root {
    --paper: #f6f0e6;
    --paper-soft: #fbf8f1;
    --paper-deep: #eee4d5;

    --ink: #14120f;
    --ink-soft: #514a40;
    --ink-muted: #777064;

    --accent: #996b3c;
    --rule: rgba(20, 18, 15, 0.16);

    --container: 1120px;
    --narrow: 760px;
    --header-height: 72px;

    --font-display: "Playfair Display", Georgia, "Times New Roman", Times, serif;
	--font-serif: Georgia, "Times New Roman", Times, serif;
	--font-body: Georgia, "Times New Roman", Times, serif;
	--font-ui: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;

    --fs-body: 15.75px;
    --fs-body-mobile: 15.25px;

    --fs-kicker: 0.72rem;
    --fs-fine: 0.875rem;
    --fs-meta: 0.92rem;

    --fs-hero: clamp(2.2rem, 4.65vw, 4.45rem);
	--fs-page-title: clamp(2rem, 4.45vw, 3.8rem);
	--fs-section-title: clamp(1.4rem, 2.3vw, 1.9rem);
	--fs-prose-h2: clamp(1.32rem, 2vw, 1.72rem);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper-soft);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 0.65rem 0.85rem;
    color: var(--paper-soft);
    background: var(--ink);
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 48px, var(--narrow));
}

/* Header / navigation */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 32px;
    background: rgba(251, 248, 241, 0.84);
    border-bottom: 1px solid rgba(20, 18, 15, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-brand {
    flex: 0 0 auto;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 0.98rem;
    letter-spacing: 0.035em;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand img {
    max-height: 85px;
}

.site-nav {
    flex: 0 1 auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--paper);
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 66% 50%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(246, 240, 230, 0.95) 0%,
            rgba(246, 240, 230, 0.78) 30%,
            rgba(246, 240, 230, 0.30) 58%,
            rgba(246, 240, 230, 0.08) 100%
        );
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 640px);
    margin-left: max(24px, calc((100vw - var(--container)) / 2));
    padding-top: var(--header-height);
}

.hero h1,
.page-hero h1,
.section h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 12ch;
    font-size: var(--fs-hero);
}

.hero p:last-child {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.5;
}

/* Kicker / eyebrow labels */

.kicker,
p.kicker,
.page-kicker,
.section-kicker,
.eyebrow,
.overline,
.supertitle,
.pretitle,
.section .kicker,
.section p.kicker,
.page-hero .kicker,
.page-hero p.kicker,
.hero .kicker,
.hero p.kicker,
.framework-entry .kicker,
.framework-entry p.kicker,
.cv-page .kicker,
.cv-page p.kicker,
.frameworks-page .kicker,
.frameworks-page p.kicker {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: var(--fs-kicker);
    font-weight: 650;
    letter-spacing: 0.10em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Sections */

.section {
    padding: clamp(72px, 10vw, 140px) 0;
    border-top: 1px solid var(--rule);
}

.intro-section,
.works-section,
.contact-section {
    background: var(--paper-soft);
}

.research-section,
.statement-section {
    background: var(--paper-deep);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.intro-section h2,
.research-section h2,
.works-section h2,
.statement-section h2,
.contact-section h2,
.framework-entry h2,
.cv-page h2,
.frameworks-page h2 {
    font-size: var(--fs-section-title);
}

.section p {
    color: var(--ink-soft);
}

.section p:last-child {
    margin-bottom: 0;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 3rem;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.theme-grid article {
    min-height: 260px;
    padding: clamp(24px, 3vw, 40px);
    background: #f8f3eb;
}

.theme-grid h3 {
    margin: 0 0 0.75rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.18;
}

.theme-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Selected works */

.selected-works {
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.selected-works li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--rule);
}

.selected-works span {
    display: block;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.25;
}

.selected-works em {
    display: block;
    margin-top: 0.25rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.45;
}

.text-link-row {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Generic page hero */

.page-main {
    padding-top: var(--header-height);
}

.page-hero {
    padding: clamp(72px, 9vw, 128px) 0 clamp(48px, 6vw, 96px);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.page-hero h1,
.page-title,
.cv-title,
.frameworks-title {
    font-family: var(--font-display);
    font-size: var(--fs-page-title);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 0.98;
}

.page-hero p,
.page-lead,
.lead,
.cv-lead,
.frameworks-lead {
    max-width: 40rem;
    margin: 1rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Publications */

.publications-section {
    background: var(--paper-soft);
}

.publication-year {
    margin-bottom: 4rem;
}

.publication-year:last-child {
    margin-bottom: 0;
}

.publication-year h2 {
    margin: 0 0 1.2rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.15;
}

.publication-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.publication-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.publication-list cite {
    display: block;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.03rem;
    font-style: normal;
    line-height: 1.35;
}

.publication-meta,
.cv-meta,
.framework-meta,
.page-updated {
    color: var(--ink-soft);
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.publication-meta {
    display: block;
    margin-top: 0.38rem;
}

.cv-meta {
    margin-top: 0.25rem;
}

.page-updated {
    margin-top: 2.25rem;
    color: var(--ink-muted);
    font-size: var(--fs-fine);
}

/* Prose / legal / CV / framework pages */

.prose {
    max-width: var(--narrow);
    font-size: 1rem;
}

.prose h2,
.cv-page h2,
.frameworks-page h2,
.cv-section h2,
.framework-section h2,
.framework-card h2,
.framework-card h3,
.cv-block h2,
.content-block h2 {
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--fs-prose-h2);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
}

.prose h3,
.cv-page h3,
.frameworks-page h3,
.cv-section h3,
.framework-section h3,
.cv-block h3,
.content-block h3 {
    margin-top: 1.55rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: var(--fs-prose-h3);
    font-weight: 500;
    line-height: 1.22;
}

.prose p,
.prose li,
.cv-section,
.cv-section p,
.cv-section li,
.framework-section,
.framework-section p,
.framework-section li,
.framework-card,
.framework-card p,
.framework-card li,
.content-block,
.content-block p,
.content-block li {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.58;
}

.prose ul,
.prose ol {
    padding-left: 1.4rem;
}

.prose li + li {
    margin-top: 0.45rem;
}

.framework-entry {
    padding-top: 2.2rem;
    margin-top: 2.2rem;
    border-top: 1px solid var(--rule);
}

.framework-entry:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.cv-entry {
    margin-top: 1.45rem;
}

.cv-entry + .cv-entry {
    margin-top: 1.8rem;
}

.cv-list {
    margin-top: 1rem;
}

.cv-list li {
    margin-top: 0.35rem;
}

.framework-grid,
.cv-grid,
.card-grid,
.framework-card,
.cv-card,
.info-card {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Footer */

.site-footer {
    min-height: 160px;
    padding: 28px 0;
    color: #8d8477;
    background: #e9dfd0;
    border-top: 1px solid var(--rule);
}

.site-footer,
.site-footer p,
.site-footer li,
.footer-line,
.footer-nav,
.footer-nav a,
.site-footer {
    color: #8d8477;
    font-family: var(--font-ui);
    font-size: var(--fs-fine);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
}

.footer-line--company {
    color: #8d8477;
    font-weight: 500;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.65rem;
}

.footer-nav a {
    position: relative;
    color: #8d8477;
    font-weight: 500;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease,
        text-underline-offset 160ms ease;
}

.footer-nav a + a::before {
    content: "·";
    display: inline-block;
    margin-right: 0.15rem;
    color: #aaa196;
    font-weight: 400;
    text-decoration: none;
}

.footer-nav a {
    position: relative;
    color: #8d8477;
    font-weight: 500;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease,
        text-underline-offset 160ms ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.28em;
}

.footer-nav a:focus-visible {
    color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    text-decoration: underline;
}

/* Menu toggle */

.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(20, 18, 15, 0.22);
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.site-menu-toggle__label {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.10em;
    line-height: 1;
    text-transform: uppercase;
}

.site-menu-toggle__icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.site-menu-toggle__icon span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.site-header--menu-open .site-menu-toggle__icon span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.site-header--menu-open .site-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.site-header--menu-open .site-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.publication-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.publication-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--rule);
}

.publication-item article {
    transition:
        transform 160ms ease,
        opacity 160ms ease;
}

.publication-title {
    display: block;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 1.06rem;
    font-style: normal;
    line-height: 1.32;
}

.publication-title a {
    color: inherit;
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

.publication-title a:hover,
.publication-title a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    margin: 0.42rem 0 0;
    color: var(--ink-soft);
    font-family: var(--font-ui);
    font-size: var(--fs-meta);
    font-weight: 400;
    line-height: 1.45;
}

.publication-meta span,
.publication-meta time {
    display: inline-flex;
    align-items: baseline;
}

.publication-meta span + span::before,
.publication-meta time::before {
    content: "·";
    margin-right: 0.65rem;
    color: var(--ink-muted);
}

.publication-meta a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.2em;
}

.publication-meta a:hover,
.publication-meta a:focus-visible {
    color: var(--accent);
}

.publication-summary {
    margin: 0.55rem 0 0;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.55;
}

.publication-taxonomy {
    display: grid;
    gap: 0.2rem;
    margin: 0.65rem 0 0;
    color: var(--ink-muted);
    font-family: var(--font-ui);
    font-size: 0.84rem;
    line-height: 1.45;
}

.publication-item--featured .publication-title {
    font-size: 1.12rem;
}

/* Responsive */

@media (max-width: 980px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-grid article {
        min-height: 220px;
    }

    .hero-image img {
        object-position: 72% 50%;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    body {
        font-size: var(--fs-body-mobile);
    }

    .container,
    .container.narrow {
        width: min(100% - 40px, var(--container));
    }

    .site-header {
        min-height: var(--header-height);
        padding: 0 20px;
        gap: 1rem;
    }

    .site-brand {
        font-size: 0.95rem;
    }

    .site-brand img {
        max-height: 75px;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 90;
        display: none;
        padding: 0.85rem 20px 1rem;
        background: rgba(251, 248, 241, 0.97);
        border-bottom: 1px solid rgba(20, 18, 15, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .site-header--menu-open .site-nav {
        display: block;
    }

    .site-nav ul {
        display: grid;
        gap: 0.2rem;
        justify-content: stretch;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        display: block;
        padding: 0.72rem 0;
        font-size: 0.85rem;
        letter-spacing: 0.10em;
        border-top: 1px solid rgba(20, 18, 15, 0.10);
    }

    .site-nav li:first-child a {
        border-top: 0;
    }

    .hero {
        align-items: end;
        min-height: 100svh;
    }

    .hero-image img {
        object-position: 74% 50%;
    }

    .hero::after {
        background:
            linear-gradient(
                0deg,
                rgba(246, 240, 230, 0.97) 0%,
                rgba(246, 240, 230, 0.90) 42%,
                rgba(246, 240, 230, 0.22) 100%
            );
    }

    .hero-copy {
        width: min(100% - 40px, 540px);
        margin: 0 auto;
        padding: 0 0 56px;
    }

    .hero h1 {
        max-width: 10.5ch;
        font-size: clamp(2rem, 9.4vw, 3.25rem);
    }

    .hero p:last-child {
        font-size: 0.94rem;
    }

    .page-hero h1,
    .page-title,
    .cv-title,
    .frameworks-title {
        font-size: clamp(1.95rem, 8.5vw, 3.15rem);
    }

    .page-hero p,
    .page-lead,
    .lead,
    .cv-lead,
    .frameworks-lead {
        font-size: 0.92rem;
    }

    .page-hero h1,
    .page-title,
    .cv-title,
    .frameworks-title {
        font-size: clamp(1.9rem, 8vw, 2.95rem);
    }

    .hero h1 {
        font-size: clamp(1.95rem, 9vw, 3.05rem);
    }

    .kicker,
    p.kicker,
    .section .kicker,
    .section p.kicker,
    .page-hero .kicker,
    .page-hero p.kicker,
    .hero .kicker,
    .hero p.kicker,
    .framework-entry .kicker,
    .framework-entry p.kicker,
    .cv-page .kicker,
    .cv-page p.kicker,
    .frameworks-page .kicker,
    .frameworks-page p.kicker {
        color: var(--accent);
        font-size: 0.68rem;
        letter-spacing: 0.10em;
    }

    .section {
        padding: 64px 0;
    }

    .section h2,
    .prose h2,
    .cv-page h2,
    .frameworks-page h2,
    .cv-section h2,
    .framework-section h2,
    .framework-card h2,
    .framework-card h3,
    .cv-block h2,
    .content-block h2 {
        font-size: clamp(1.22rem, 5.2vw, 1.58rem);
    }

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

    .theme-grid article {
        min-height: auto;
    }

    .contact-links {
        display: block;
    }

    .contact-links a {
        display: block;
        width: max-content;
        margin-top: 0.7rem;
    }

    .footer-nav {
        gap: 0.25rem 0.75rem;
    }

    .publication-item {
        padding: 1.1rem 0;
    }

    .publication-title {
        font-size: 1rem;
    }

    .publication-item--featured .publication-title {
        font-size: 1.04rem;
    }

    .publication-meta {
        display: block;
        font-size: 0.88rem;
    }

    .publication-meta span,
    .publication-meta time {
        display: block;
    }

    .publication-meta span + span::before,
    .publication-meta time::before {
        content: "";
        margin-right: 0;
    }

    .publication-summary {
        font-size: 0.94rem;
    }

    .publication-taxonomy {
        font-size: 0.82rem;
    }
}

@media (max-width: 460px) {
    .site-header {
        padding-right: 16px;
        padding-left: 16px;
    }

    .site-brand img {
        max-height: 65px;
    }

    .site-menu-toggle__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .site-menu-toggle {
        width: 42px;
        height: 38px;
        padding: 0;
    }

    .hero-copy {
        padding-bottom: 44px;
    }

    .hero h1 {
        max-width: 9ch;
        font-size: clamp(1.92rem, 10vw, 2.85rem);
    }

    .page-hero {
        padding-top: 64px;
    }

    .page-hero h1,
    .page-title,
    .cv-title,
    .frameworks-title {
        font-size: clamp(1.85rem, 9vw, 2.75rem);
    }

    .site-footer,
    .site-footer p,
    .site-footer li,
    .footer-line,
    .footer-nav,
    .footer-nav a,
    .site-footer {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 9.4vw, 2.65rem);
    }

    .page-hero h1,
    .page-title,
    .cv-title,
    .frameworks-title {
        font-size: clamp(1.8rem, 8.5vw, 2.5rem);
    }
}