:root {
    --canvas: #141215;
    --surface: #1C1A1E;
    --border: #322E34;
    --text: #F6E9EC;
    --muted: #B8AEB2;
    --subtle: #8E8489;
    --brand: #C66B7C;
    --brand-strong: #D99FAD;
    --tag-bg: #2A1A20;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--canvas);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
header.site { padding: 28px 0; border-bottom: 1px solid var(--border); }
.wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}
.wordmark .dot { color: var(--brand); }
.site-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.site-row a.back { color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-row a.back:hover { text-decoration: underline; }
.hero { padding: 56px 0 8px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: 0.02em; margin-bottom: 12px; }
h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.dateline { font-size: 13px; color: var(--subtle); }
main { padding-bottom: 24px; }
article { padding: 26px 0 4px; }
article p { font-size: 17px; line-height: 1.75; color: var(--text); margin: 0 0 20px; }
article h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 38px 0 14px; }
article a { color: var(--brand); text-decoration: none; font-weight: 500; }
article a:hover { text-decoration: underline; }
article em { color: var(--brand-strong); font-style: italic; }

/* tables */
.table-wrap {
    overflow-x: auto;
    margin: 8px 0 28px;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
article table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13.5px;
    line-height: 1.45;
}
article th, article td {
    text-align: left;
    vertical-align: top;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
}
article thead th {
    color: var(--brand-strong);
    font-weight: 600;
    font-size: 13px;
    background: var(--tag-bg);
}
article tbody th {
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
}
article tbody td { color: var(--text); }
article tbody tr:last-child th,
article tbody tr:last-child td { border-bottom: none; }

/* callout: a boxed operator aside or key figure */
.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 8px 0 28px;
}
.callout p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--text); }
.callout .big {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(22px, 4vw, 30px);
    color: var(--brand-strong);
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 6px;
}

/* pull: a large signature line */
.pull {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(20px, 3.2vw, 26px) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.01em;
    color: var(--brand-strong) !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0 !important;
    margin: 30px 0 !important;
}

/* stack: the value-realization framework diagram */
.stack { margin: 14px 0 30px; }
.stack-rail {
    font-size: 12px;
    color: var(--subtle);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 18px;
}
.stack-flow { list-style: none; margin: 0; padding: 0; }
.stack-flow li {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
}
.stack-flow li:last-child { margin-bottom: 0; }
.stack-flow li::after {
    content: "\2193";
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    color: var(--brand);
    font-size: 17px;
    line-height: 1;
}
.stack-flow li:last-child::after { content: none; }
.stack-flow li.terminal { border-color: var(--brand); background: var(--tag-bg); }
.stack-flow .s-k {
    font-weight: 600;
    color: var(--brand-strong);
    font-size: 14px;
    min-width: 168px;
}
.stack-flow .s-q { color: var(--muted); font-size: 14px; }

.allessays { margin: 6px 0 20px; font-size: 14px; }
.allessays a { color: var(--brand); text-decoration: none; font-weight: 500; }
.allessays a:hover { text-decoration: underline; }
.related { margin: 26px 0 8px; font-size: 14px; color: var(--muted); }
.related a { color: var(--brand); text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* sources */
.sources { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 15px; margin: 0 0 12px; color: var(--muted); }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { font-size: 13.5px; line-height: 1.5; color: var(--subtle); margin-bottom: 8px; }
.sources a { color: var(--brand); text-decoration: none; font-weight: 500; word-break: break-word; }
.sources a:hover { text-decoration: underline; }

footer.site {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding: 32px 0 48px;
    font-size: 14px;
    color: var(--muted);
}
footer.site a { color: var(--brand); text-decoration: none; font-weight: 500; }
footer.site a:hover { text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
@media (max-width: 560px) {
    .hero { padding-top: 40px; }
    .stack-flow .s-k { min-width: 100%; }
}
