
/* ==========================================================================
   The Collapse of Complexity — Site Stylesheet
   Typography: Playfair Display + Inter
   Palette: Ink on Paper with Burnt Orange accent
   ========================================================================== */

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

:root {
    --ink: #1a1a1a;
    --ink-light: #4a4a4a;
    --ink-muted: #8a8a8a;
    --paper: #fafaf8;
    --paper-dark: #f0f0ec;
    --accent: #c45d3e;
    --accent-hover: #a84d32;
    --rule: #d4d4d0;
    --max-width: 720px;
    --essay-width: 660px;
}

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    min-height: 100vh;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--paper) !important;
    background: var(--ink);
    padding: 0.4rem 1rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--ink-light) !important;
    color: var(--paper) !important;
}

/* Dropdown nav */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.65em;
    opacity: 0.5;
}

.nav-links .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.5rem 0;
    padding-top: calc(0.5rem + 0.6rem);
    margin: 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 100;
    list-style: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

/* Bridge the gap between trigger and dropdown so hover isn't lost */
.nav-links .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.nav-links .nav-dropdown-menu li {
    padding: 0;
    list-style: none;
}

.nav-links .nav-dropdown-menu a {
    display: block;
    padding: 0.45rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links .nav-dropdown-menu a:hover {
    color: var(--ink);
    background: var(--paper-dark);
}

.nav-links .nav-dropdown-menu a.active {
    color: var(--ink);
}

.nav-links .nav-dropdown:hover > .nav-dropdown-menu,
.nav-links .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: 0.3s;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */

.page-body {
    padding-top: 56px; /* nav height */
}

.container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.essay-container {
    max-width: var(--essay-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Hero (Landing Page)
   ========================================================================== */

.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero .overline {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--ink-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.hero .authors {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Essay Header (Essay pages)
   ========================================================================== */

.essay-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 3rem;
}

.essay-header .essay-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.essay-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.essay-header .essay-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink-light);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Previously box */
.previously {
    background: var(--paper-dark);
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    color: var(--ink-light);
    line-height: 1.6;
}

.previously strong {
    color: var(--ink);
    font-weight: 500;
}

.previously a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

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

/* ==========================================================================
   Typography — Essay Content
   ========================================================================== */

.essay-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    margin: 3rem 0 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.essay-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2.5rem 0 0.8rem;
    line-height: 1.3;
}

.essay-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.essay-content p {
    margin-bottom: 1.3rem;
    color: var(--ink);
}

.essay-content strong {
    font-weight: 600;
}

.essay-content em {
    font-style: italic;
}

.essay-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 93, 62, 0.3);
    transition: border-color 0.2s;
}

.essay-content a:hover {
    border-bottom-color: var(--accent);
}

/* Blockquotes */
.essay-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ink-light);
    line-height: 1.7;
}

/* Lists */
.essay-content ul,
.essay-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.essay-content li {
    margin-bottom: 0.5rem;
}

/* Tables */
.essay-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.85rem;
}

.essay-content th {
    background: var(--paper-dark);
    font-weight: 600;
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 2px solid var(--rule);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.essay-content td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

/* Code blocks (retained for actual code, if any) */
.essay-content pre {
    background: var(--paper-dark);
    color: var(--ink);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 2rem 0;
    border: 1px solid var(--rule);
}

.essay-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.88em;
    background: var(--paper-dark);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.essay-content pre code {
    background: none;
    padding: 0;
}

/* ==========================================================================
   Figure Components — Styled replacements for ASCII diagrams
   ========================================================================== */

/* Base figure card */
.figure-card {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    margin: 2.5rem 0;
}

.figure-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
}

.figure-card p {
    font-size: 0.88rem;
    color: var(--ink);
    margin-bottom: 0.8rem;
    line-height: 1.65;
}

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

.figure-card strong {
    color: var(--ink);
    font-weight: 600;
}

.figure-card em {
    color: var(--ink-light);
}

/* Figure card with accent left border */
.figure-card--accent {
    border-left: 3px solid var(--accent);
}

/* Figure card items (for listed/numbered content within a card) */
.figure-card-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(212, 212, 208, 0.5);
    font-size: 0.88rem;
}

.figure-card-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.figure-card-item .item-label {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.2rem;
}

/* Comparison layout (before/after, side-by-side) */
.figure-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.figure-compare-col {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.5rem;
}

.figure-compare-col--highlight {
    border-color: var(--accent);
    border-width: 1.5px;
}

.figure-compare-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}

.figure-compare-col--highlight h4 {
    color: var(--accent);
}

.figure-compare-col p,
.figure-compare-col li {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.figure-compare-col ul {
    list-style: none;
    padding: 0;
}

.figure-compare-col li::before {
    content: "→ ";
    color: var(--ink-muted);
}

.figure-compare-col--highlight li::before {
    color: var(--accent);
}

@media (max-width: 600px) {
    .figure-compare {
        grid-template-columns: 1fr;
    }
}

/* Flow diagram (vertical steps with connectors) */
.figure-flow {
    margin: 2.5rem 0;
}

.figure-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
}

.figure-flow-step:not(:last-child) {
    border-bottom: 1px solid rgba(212, 212, 208, 0.4);
}

.figure-flow-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 1.8rem;
    text-align: center;
    line-height: 1.4;
}

.figure-flow-content {
    flex: 1;
}

.figure-flow-content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.figure-flow-content p {
    font-size: 0.85rem;
    color: var(--ink-light);
    margin: 0;
    line-height: 1.55;
}

.figure-flow-arrow {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.75rem;
    padding: 0.2rem 0;
    letter-spacing: 0.1em;
}

/* Data metric display */
.figure-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.figure-metric {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.2rem;
    text-align: center;
}

.figure-metric-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.figure-metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Scenario / example box */
.figure-scenario {
    background: var(--paper-dark);
    border-left: 3px solid #4a7c8c;
    border-radius: 0 4px 4px 0;
    padding: 1.5rem 1.8rem;
    margin: 2rem 0;
}

.figure-scenario-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a7c8c;
    margin-bottom: 0.8rem;
}

.figure-scenario p {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

/* Summary progression (end-of-essay summary boxes) */
.figure-summary {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.8rem 2rem;
    margin: 2.5rem 0;
}

.figure-summary-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.figure-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
}

.figure-summary-item .check {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

/* Architecture layers (stacked boxes) */
.figure-layers {
    margin: 2.5rem 0;
}

.figure-layer {
    border: 1px solid var(--rule);
    padding: 1rem 1.5rem;
    margin-bottom: -1px;
    font-size: 0.88rem;
}

.figure-layer:first-child {
    border-radius: 4px 4px 0 0;
}

.figure-layer:last-child {
    border-radius: 0 0 4px 4px;
}

.figure-layer-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.figure-layer-desc {
    color: var(--ink-light);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.figure-layer:nth-child(odd) {
    background: var(--paper-dark);
}

.figure-layer:nth-child(even) {
    background: var(--paper);
}

/* Key Insight boxes */
.key-insight {
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}

.key-insight-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.key-insight p {
    font-size: 0.92rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

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

/* Deep Dive, Evidence, In Practice boxes */
.callout-box {
    border-left: 3px solid var(--ink-muted);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(0,0,0,0.015);
}

.callout-box.deep-dive {
    border-left-color: #4a7c8c;
}

.callout-box.evidence {
    border-left-color: #6b8e5a;
}

.callout-box.practice {
    border-left-color: #9a7b4f;
}

.callout-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* First paragraph of essay — drop cap style */
.essay-content .opening-paragraph::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    float: left;
    font-size: 3.5rem;
    line-height: 0.85;
    padding-right: 0.1em;
    padding-top: 0.05em;
    color: var(--ink);
    font-weight: 700;
}

/* ==========================================================================
   Horizontal Rule / Section Breaks
   ========================================================================== */

.section-break {
    width: 60px;
    height: 1px;
    background: var(--rule);
    margin: 3rem auto;
    border: none;
}

.rule {
    width: 60px;
    height: 1px;
    background: var(--rule);
    margin: 0 auto;
}

/* ==========================================================================
   Essay Navigation (Prev / Next)
   ========================================================================== */

.essay-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 4rem 0 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    gap: 1rem;
}

.essay-nav a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 1rem;
    border-radius: 4px;
    transition: background 0.2s;
    max-width: 48%;
}

.essay-nav a:hover {
    background: var(--paper-dark);
}

.essay-nav .nav-direction {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

.essay-nav .nav-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.essay-nav .next {
    text-align: right;
    margin-left: auto;
}

/* ==========================================================================
   Essay List (Landing Page)
   ========================================================================== */

.essay-list {
    margin: 3rem auto;
    max-width: 600px;
}

.essay-list a {
    display: flex;
    align-items: baseline;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    transition: background 0.15s;
}

.essay-list a:first-child {
    border-top: 1px solid var(--rule);
}

.essay-list a:hover {
    background: var(--paper-dark);
}

.essay-list .essay-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    color: var(--ink-muted);
    width: 2.5rem;
    flex-shrink: 0;
}

.essay-list .essay-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}

.essay-list .essay-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--ink-muted);
    margin-left: 0.5rem;
}

/* ==========================================================================
   CTA / Email Signup
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: 3rem 0;
}

.cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--ink-light);
    margin-bottom: 1.2rem;
}

.email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: white;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
}

.email-input:focus {
    border-color: var(--ink-muted);
}

.email-input::placeholder {
    color: var(--ink-muted);
}

.submit-btn {
    padding: 0.7rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--ink-light);
}

.success-message {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.8rem;
}

/* Start Reading button */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: var(--ink);
}

/* ==========================================================================
   Thesis Block
   ========================================================================== */

.thesis-block {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink-light);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

/* Flow line */
.flow-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-align: center;
    margin: 1.5rem 0;
}

.flow-line span {
    color: var(--rule);
    margin: 0 0.3rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--rule);
    margin-top: 2rem;
}

.site-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

.site-footer a {
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--ink-light);
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-content {
    padding: 4rem 0;
}

.author-bio {
    margin-bottom: 3rem;
}

.author-bio h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio p {
    margin-bottom: 1rem;
    color: var(--ink-light);
}

/* ==========================================================================
   Table of Contents (within essays)
   ========================================================================== */

.essay-toc {
    background: var(--paper-dark);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    margin: 2rem 0 3rem;
}

.essay-toc-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.8rem;
}

.essay-toc ol {
    list-style: none;
    counter-reset: toc;
}

.essay-toc li {
    counter-increment: toc;
    padding: 0.3rem 0;
}

.essay-toc li::before {
    content: counter(toc) ".";
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-right: 0.6rem;
}

.essay-toc a {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.essay-toc a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    html { font-size: 17px; }

    body { overflow-x: hidden; }

    .hero h1 { font-size: 2.6rem; }
    .essay-header h1 { font-size: 2.2rem; }

    .container, .essay-container { padding: 0 1.5rem; }
    .hero { padding: 5rem 1.5rem 3rem; }
    .essay-header { padding: 4rem 1.5rem 2.5rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.8rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .nav-dropdown > a::after {
        content: ' \25BE';
    }

    .nav-links .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        padding-left: 1rem;
        min-width: 0;
        margin: 0;
    }

    .nav-links .nav-dropdown.open > .nav-dropdown-menu {
        display: block;
    }

    .nav-links .nav-dropdown-menu li {
        padding: 0;
        list-style: none;
    }

    .nav-links .nav-dropdown-menu a {
        padding: 0.3rem 0;
    }

    .nav-links .nav-dropdown-menu a:hover {
        background: none;
    }

    .essay-nav {
        flex-direction: column;
    }

    .essay-nav a {
        max-width: 100%;
    }

    .essay-nav .next {
        text-align: left;
    }

    .essay-list .essay-desc {
        display: none;
    }

    .email-form {
        flex-direction: column;
    }

    /* Ensure wide elements don't overflow on mobile */
    .essay-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .figure-card {
        padding: 1.4rem 1.2rem;
    }

    .key-insight {
        padding: 1.2rem 1.2rem;
    }

    .callout-box {
        padding: 0.8rem 1.2rem;
    }

    .figure-scenario {
        padding: 1.2rem 1.4rem;
    }

    .figure-summary {
        padding: 1.4rem 1.2rem;
    }

    .essay-toc {
        padding: 1.2rem 1.4rem;
    }
}

@media (max-width: 480px) {
    html { font-size: 16px; }
    .hero h1 { font-size: 2.2rem; }
    .essay-header h1 { font-size: 1.9rem; }
    .container, .essay-container { padding: 0 1.25rem; }
    .hero { padding: 4rem 1.25rem 3rem; }
    .essay-header { padding: 4rem 1.25rem 2rem; }
}

/* ==========================================================================
   Infographic Components
   ========================================================================== */

/* Base infographic container */
.infographic {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 2rem 2rem 1.8rem;
    margin: 2.5rem 0;
    overflow: hidden;
}

.infographic-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.infographic-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.infographic-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Horizontal bar chart */
.ig-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ig-bar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ig-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink);
    min-width: 90px;
    text-align: right;
    flex-shrink: 0;
}

.ig-bar-track {
    flex: 1;
    height: 28px;
    background: var(--paper-dark);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.ig-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.6rem;
    transition: width 0.6s ease;
    min-width: 2.5rem;
}

.ig-bar-fill--muted {
    background: var(--rule);
}

.ig-bar-fill--dark {
    background: var(--ink);
}

.ig-bar-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.ig-bar-value--outside {
    position: absolute;
    right: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink);
}

/* Node/connection diagram */
.ig-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    padding: 1rem 0;
}

.ig-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.ig-node--muted {
    background: var(--rule);
}

/* Equation / multiplication visual */
.ig-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.ig-equation-item {
    text-align: center;
}

.ig-equation-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.ig-equation-value--accent {
    color: var(--accent);
}

.ig-equation-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem;
}

.ig-equation-op {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--ink-muted);
    line-height: 1;
}

/* Two-panel comparison (before/after) */
.ig-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.ig-compare-panel {
    padding: 1.2rem 1.4rem;
    border-radius: 4px;
    border: 1px solid var(--rule);
}

.ig-compare-panel--before {
    background: #f5f0eb;
    border-color: #d4c8bc;
}

.ig-compare-panel--after {
    background: #edf3ed;
    border-color: #b8ccb8;
}

.ig-compare-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.ig-compare-panel--before .ig-compare-heading {
    color: #8a7260;
}

.ig-compare-panel--after .ig-compare-heading {
    color: #5a7a5a;
}

.ig-compare-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--ink);
    padding: 0.35rem 0;
    line-height: 1.5;
}

/* Layered stack */
.ig-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ig-stack-layer {
    padding: 0.9rem 1.4rem;
    border: 1px solid var(--rule);
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ig-stack-layer:first-child {
    border-radius: 4px 4px 0 0;
}

.ig-stack-layer:last-child {
    border-radius: 0 0 4px 4px;
}

.ig-stack-layer:nth-child(odd) {
    background: var(--paper-dark);
}

.ig-stack-layer:nth-child(even) {
    background: var(--paper);
}

.ig-stack-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 1.6rem;
    text-align: center;
}

.ig-stack-content {
    flex: 1;
}

.ig-stack-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.ig-stack-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* Circular cycle diagram */
.ig-cycle {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 1rem auto;
}

.ig-cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.ig-cycle-center-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.ig-cycle-center-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ig-cycle svg {
    width: 100%;
    height: 100%;
}

.ig-cycle-node {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    fill: var(--ink);
    text-anchor: middle;
}

/* 2x2 Matrix / Grid */
.ig-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.ig-matrix-cell {
    padding: 1.2rem;
    border-radius: 4px;
    background: var(--paper-dark);
    border: 1px solid var(--rule);
}

.ig-matrix-cell--accent {
    border-color: var(--accent);
    border-width: 1.5px;
}

.ig-matrix-icon {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ig-matrix-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.ig-matrix-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Branching path */
.ig-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ig-branch-trunk {
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: var(--paper-dark);
    border: 1px solid var(--rule);
    border-radius: 4px;
    margin-bottom: 0;
}

.ig-branch-trunk-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
}

.ig-branch-connector {
    width: 1px;
    height: 1.2rem;
    background: var(--rule);
}

.ig-branch-fork {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    width: 100%;
    position: relative;
}

.ig-branch-fork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: var(--rule);
}

.ig-branch-path {
    padding: 1rem 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--rule);
    position: relative;
}

.ig-branch-path::before {
    content: '';
    position: absolute;
    top: -1.2rem;
    left: 50%;
    width: 1px;
    height: 1.2rem;
    background: var(--rule);
}

.ig-branch-path--success {
    background: #edf3ed;
    border-color: #b8ccb8;
}

.ig-branch-path--failure {
    background: #f5f0eb;
    border-color: #d4c8bc;
}

.ig-branch-path-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.ig-branch-path--success .ig-branch-path-title {
    color: #5a7a5a;
}

.ig-branch-path--failure .ig-branch-path-title {
    color: #8a7260;
}

.ig-branch-path-items {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-light);
    line-height: 1.6;
}

/* Step progression (zoom levels) */
.ig-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ig-step {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ig-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 2.5rem;
    flex-shrink: 0;
}

.ig-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ig-step-line {
    width: 1px;
    flex: 1;
    background: var(--rule);
}

.ig-step-content {
    padding: 0.2rem 0 1.2rem 0.8rem;
    flex: 1;
}

.ig-step-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.ig-step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* J-Curve */
.ig-jcurve {
    padding: 1rem 0;
}

.ig-jcurve svg {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

/* Three-column outcome */
.ig-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
}

.ig-three-col-card {
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--rule);
    text-align: center;
}

.ig-three-col-card--warn {
    background: #f7eeee;
    border-color: #d4b8b8;
}

.ig-three-col-card--mid {
    background: #f5f0eb;
    border-color: #d4c8bc;
}

.ig-three-col-card--success {
    background: #edf3ed;
    border-color: #b8ccb8;
}

.ig-three-col-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ig-three-col-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.ig-three-col-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--ink-light);
    line-height: 1.5;
}

/* Flywheel */
.ig-flywheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 1rem auto;
}

.ig-flywheel svg {
    width: 100%;
    height: 100%;
}

/* Infographic footnote */
.ig-footnote {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--ink-muted);
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--rule);
    line-height: 1.5;
}

/* Responsive infographics */
@media (max-width: 768px) {
    .infographic {
        padding: 1.4rem 1.2rem;
    }

    .ig-compare {
        grid-template-columns: 1fr;
    }

    .ig-matrix {
        grid-template-columns: 1fr;
    }

    .ig-three-col {
        grid-template-columns: 1fr;
    }

    .ig-branch-fork {
        grid-template-columns: 1fr;
    }

    .ig-branch-fork::before {
        display: none;
    }

    .ig-branch-path::before {
        left: 1.5rem;
    }

    .ig-bar-label {
        min-width: 70px;
        font-size: 0.65rem;
    }

    .ig-cycle {
        width: 260px;
        height: 260px;
    }

    .ig-equation {
        gap: 0.6rem;
    }

    .ig-equation-value {
        font-size: 1.5rem;
    }
}

    

        .drafts-index {
            max-width: 720px;
            margin: 0 auto;
            padding: 120px 24px 80px;
        }
        .drafts-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.4rem;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 0.3em;
        }
        .drafts-subtitle {
            font-size: 1.05rem;
            color: var(--ink-muted);
            margin-bottom: 3rem;
            line-height: 1.6;
        }
        .essay-list {
            list-style: none;
            padding: 0;
        }
        .essay-list li {
            border-bottom: 1px solid var(--rule);
        }
        .essay-list li:first-child {
            border-top: 1px solid var(--rule);
        }
        .essay-link {
            display: flex;
            align-items: baseline;
            gap: 1.2rem;
            padding: 1.4rem 0;
            text-decoration: none;
            color: var(--ink);
            transition: color 0.2s;
        }
        .essay-link:hover {
            color: var(--accent);
        }
        .essay-number {
            font-family: 'Playfair Display', serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
            min-width: 2rem;
            letter-spacing: 0.05em;
        }
        .essay-info {
            flex: 1;
        }
        .essay-name {
            font-family: 'Playfair Display', serif;
            font-size: 1.35rem;
            font-weight: 600;
            display: block;
            margin-bottom: 0.25em;
        }
        .essay-desc {
            font-size: 0.88rem;
            color: var(--ink-light);
            line-height: 1.5;
        }
        .essay-arrow {
            color: var(--ink-muted);
            font-size: 1.1rem;
            transition: transform 0.2s, color 0.2s;
        }
        .essay-link:hover .essay-arrow {
            transform: translateX(4px);
            color: var(--accent);
        }
    