:root {
    --bg-top: #dfe8de;
    --bg-bottom: #edf2ea;
    --paper: #f6f1e8;
    --surface: rgba(251, 248, 241, 0.82);
    --ink: #243329;
    --muted: #5f6f62;
    --accent: #355841;
    --accent-strong: #284131;
    --accent-soft: rgba(53, 88, 65, 0.12);
    --border: #c8d2c7;
    --shadow: rgba(28, 42, 31, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(53, 88, 65, 0.14), transparent 32%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    max-width: 780px;
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 44px 28px 60px;
    border: 1px solid rgba(40, 65, 49, 0.12);
    box-shadow: 0 18px 52px var(--shadow);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}

.logo-text {
    font-size: clamp(32px, 4.8vw, 56px);
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.logo-mark {
    display: block;
    width: auto;
    height: 60px;
    margin-top: 0;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.site-page .logo-mark {
    height: 80px;
}

.teachings-page .logo-mark {
    height: 80px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-page {
    max-width: 1100px;
    padding: 52px 52px 72px;
}

.site-page header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 84px;
}

.site-page nav {
    gap: 12px 28px;
}

.site-page .logo {
    line-height: 1;
}

.site-page main {
    max-width: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
}

nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
}

nav a:hover,
nav a.current {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.18em;
}

nav a:focus-visible,
.links a:focus-visible,
.project h2 a:focus-visible,
.entry-body h2 a:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    text-decoration: none;
}

main {
    padding-left: 0;
}

h1 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 40px;
}

h2 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 10px;
}

.bio {
    font-size: 30px;
    line-height: 1.45;
    margin-bottom: 50px;
    color: var(--ink);
}

.site-page .bio {
    max-width: 15ch;
    font-size: clamp(42px, 6vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.page-shell {
    display: grid;
    gap: 22px;
}

.page-intro {
    max-width: 640px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.page-kicker {
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-intro h1 {
    margin-bottom: 10px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.page-intro .lede {
    max-width: 32ch;
    margin-bottom: 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.home-title {
    max-width: 14ch;
    margin-bottom: 14px;
    font-size: clamp(52px, 7.5vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: normal;
}

.section-label {
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.home-section {
    margin-top: 70px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.site-page .home-section {
    max-width: 520px;
    margin-top: 46px;
}

.home-list {
    max-width: 920px;
}

.body-copy {
    margin-bottom: 30px;
    font-size: 22px;
    line-height: 1.55;
    color: var(--muted);
}

.entry-list {
    display: grid;
    gap: 0;
}

.entry-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.entry-row:last-of-type {
    border-bottom: 1px solid var(--border);
}

.entry-side {
    padding-top: 5px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.entry-body {
    max-width: 760px;
}

.entry-body h2 {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: normal;
}

.entry-body h2 a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.entry-summary {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
}

.entry-note {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.reading-list .entry-row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0 20px;
    padding: 18px 0;
}

.reading-list .entry-side {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.reading-list .entry-body h2 {
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.24;
}

.links {
    list-style: none;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.links li {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.links a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.links a:hover {
    text-decoration: none;
}

.project {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.site-page .project p,
.site-page .links li {
    max-width: 660px;
}

.project:last-of-type {
    border-bottom: 1px solid var(--border);
    margin-bottom: 42px;
}

.project h2 a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.cta {
    max-width: 700px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
}

.cta a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.lede {
    font-size: 24px;
    line-height: 1.55;
    margin-bottom: 50px;
    color: var(--muted);
}

.writing-list {
    display: grid;
    gap: 0;
}

.writing-entry {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.writing-entry:first-of-type {
    border-top: 1px solid var(--border);
}

.eyebrow,
.article-meta,
.article-status {
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.writing-date {
    padding-top: 4px;
}

.writing-body {
    max-width: 760px;
}

.writing-entry h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 2.1vw, 27px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.writing-entry h2 a,
.back-link {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.writing-description {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.52;
    color: var(--muted);
}

.writing-entry p,
.article-body p,
.article-body blockquote {
    margin-bottom: 24px;
}

.article-toc {
    margin-bottom: 45px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.article-toc ol {
    margin: 14px 0 0 20px;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.article-shell {
    max-width: 760px;
}

.teachings-page {
    color: var(--ink);
    max-width: 1100px;
    padding: 52px 52px 72px;
}

.teachings-page header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 84px;
}

.teachings-page .logo,
.teachings-page nav a,
.teachings-page a {
    color: var(--ink);
}

.teachings-page .logo {
    line-height: 1;
}

.teachings-page nav {
    gap: 12px 28px;
}

.teachings-page main {
    max-width: none;
}

.teachings-page nav a.current,
.teachings-page nav a:hover,
.teachings-page .writing-entry h2 a,
.teachings-page .back-link {
    text-decoration-color: var(--accent);
}

.teachings-page .eyebrow,
.teachings-page .article-meta,
.teachings-page .article-status {
    color: var(--accent);
}

.archive-shell {
    display: grid;
    gap: 28px;
}

.archive-intro {
    max-width: 620px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.archive-kicker {
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.archive-intro h1 {
    margin-bottom: 8px;
    font-size: clamp(36px, 4.8vw, 56px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.archive-intro .lede {
    max-width: 29ch;
    margin-bottom: 0;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.52;
}

.article-header {
    margin-bottom: 55px;
}

.article-header h1 {
    font-size: clamp(44px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 12px 0 22px;
}

.article-deck {
    max-width: 32ch;
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 55px 0 18px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: normal;
    margin: 35px 0 12px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 28px 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body pre {
    margin: 0 0 28px;
    padding: 18px 20px;
    overflow-x: auto;
    background: #203327;
    color: #f6f3ec;
}

.article-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--accent-soft);
    padding: 2px 5px;
}

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

.table-wrap {
    margin: 0 0 28px;
    overflow-x: auto;
    border: 1px solid var(--border);
    background: var(--surface);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.table-wrap thead {
    background: var(--accent-soft);
}

.table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.article-body blockquote {
    padding-left: 24px;
    border-left: 2px solid var(--accent);
    font-style: italic;
}

.video-embed {
    margin: 0 0 28px;
}

.video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    background: #111;
}

.video-embed-small {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.image-embed {
    margin: 0 0 28px;
}

.image-embed img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    background: #111;
}

.image-embed-small {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.image-embed-phone {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.image-embed-phone img {
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(11, 16, 13, 0.18);
}

.article-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

a {
    color: var(--ink);
}

@media (max-width: 600px) {
    body {
        font-size: 18px;
        min-height: calc(100vh - 20px);
        margin: 10px;
        padding: 26px 18px 34px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 50px;
    }

    nav {
        gap: 16px 24px;
    }

    .bio {
        font-size: 24px;
    }

    .site-page {
        max-width: none;
        margin: 0;
        padding: 30px 22px 40px;
        border: 0;
        box-shadow: none;
    }

    .site-page .logo {
        gap: 10px;
    }

    .site-page .logo-text,
    .teachings-page .logo-text {
        font-size: 34px;
    }

    .logo-mark,
    .site-page .logo-mark,
    .teachings-page .logo-mark {
        height: 52px;
        margin-top: 0;
    }

    .lede,
    .article-deck {
        font-size: 21px;
    }

    .site-page header {
        gap: 14px;
        margin-bottom: 48px;
    }

    .site-page nav {
        gap: 10px 18px;
    }

    .page-intro {
        padding-bottom: 20px;
    }

    .page-intro h1,
    .home-title {
        margin-bottom: 12px;
        font-size: 42px;
        max-width: 100%;
    }

    .page-intro .lede {
        font-size: 21px;
    }

    .entry-row,
    .reading-list .entry-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .entry-side {
        padding-top: 0;
    }

    .entry-body h2,
    .reading-list .entry-body h2 {
        font-size: 22px;
    }

    .entry-summary,
    .cta {
        font-size: 18px;
    }

    .teachings-page {
        max-width: none;
        margin: 0;
        padding: 30px 22px 40px;
        border: 0;
        box-shadow: none;
    }

    .teachings-page header {
        gap: 14px;
        margin-bottom: 48px;
    }

    .teachings-page nav {
        gap: 10px 18px;
    }

    .archive-intro {
        padding-bottom: 16px;
    }

    .archive-intro h1 {
        margin-bottom: 10px;
        font-size: 34px;
    }

    .archive-intro .lede {
        font-size: 17px;
    }

    .writing-entry {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 0;
    }

    .writing-date {
        padding-top: 0;
    }

    .writing-entry h2 {
        font-size: 22px;
    }

    .writing-description {
        font-size: 16px;
    }

    .article-header h1 {
        font-size: 34px;
    }
}
