@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Spectral:ital,wght@0,300;0,600;1,300&display=swap');

:root {
    --ink: #1a1a18;
    --muted: #7a7872;
    --faint: #c8c6be;
    --accent: #2a6b4e;
    --accent2: #c84b2a;
    --link: #4a6f9f;
    --paper: #f5f3ed;
    --rule: #e2dfd6;
    --mono: 'DM Mono', monospace;
    --serif: 'Spectral', Georgia, serif;
}

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
}

.site-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 72px;
    align-items: start;
}

.hero.hero--single {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
}

.post-meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.writings>p:first-child {
    margin-top: 0;
}

.hero-name {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero.hero--single .hero-name {
    font-size: 42px;
}

.hero-role {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-role em {
    color: var(--ink);
    font-style: normal;
}

.cred-inline {
    margin-bottom: 28px;
}

.cred-inline-row {
    font-size: 12px;
    color: var(--muted);
    line-height: 2.1;
}

.cred-inline-row .role {
    color: var(--ink);
}

.cred-inline-row .role a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(74, 111, 159, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.cred-inline-row .role a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.socials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.socials a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: none;
    border-bottom: 0.5px solid var(--faint);
    padding-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: none;
    color: var(--muted);
    margin-bottom: 20px;
}

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

.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 0.5px solid var(--faint);
    padding-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}

.main-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.vis-box {
    border: 0.5px solid var(--rule);
    overflow: hidden;
}

canvas {
    width: 100%;
    display: block;
}

.section-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: none;
    color: var(--muted);
    margin-bottom: 20px;
}

.writings {
    margin-bottom: 48px;
}

article.writings p {
    line-height: 1.7;
}

article.writings p+p,
article.writings p+ul,
article.writings ul+p,
article.writings ul+ul {
    margin-top: 14px;
}

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

article.writings li+li {
    margin-top: 6px;
}

article.writings a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(74, 111, 159, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

article.writings a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

article.writings code {
    font-family: var(--mono);
    font-size: 0.92em;
    background: rgba(122, 120, 114, 0.1);
    border: 0.5px solid var(--rule);
    border-radius: 2px;
    padding: 0 4px;
}

.post-figure {
    max-width: 700px;
    margin: 18px auto 22px;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 0.5px solid var(--rule);
}

.post-figure figcaption {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.post-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--rule);
    cursor: pointer;
    text-decoration: none;
}

.post-row:first-of-type {
    border-top: 0.5px solid var(--rule);
}

.post-row:hover .post-title {
    color: var(--accent);
}

.post-date {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.post-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
    transition: color 0.15s;
}

.post-desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

.post-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--faint);
    white-space: nowrap;
}

.post-type.data {
    color: var(--accent2);
}

.post-type.quant {
    color: var(--accent);
}

footer {
    border-top: 0.5px solid var(--rule);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}