:root {
    --off-black: #1a1a1a;
    --off-white: #fafafa;
    --mid-gray: #666;
    --light-gray: #e5e5e5;
    --accent: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--off-black);
    background-color: var(--off-white);
    font-weight: 300;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
}

::selection {
    background: var(--off-black);
    color: var(--off-white);
}

:focus-visible {
    outline: 1px solid var(--off-black);
    outline-offset: 3px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navigation ────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--light-gray);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 1px 16px rgba(26, 26, 26, 0.06);
    border-bottom-color: transparent;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 500;
    font-size: 18px;
    color: var(--off-black);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--mid-gray);
    text-decoration: none;
    font-weight: 300;
    font-size: 14px;
    transition: color 0.2s ease;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--off-black);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--off-black);
}

.nav-links a:hover::after,
.nav-links a.current::after {
    width: 100%;
}

.nav-links a.current {
    color: var(--off-black);
}

/* ─── Headers ───────────────────────────────────────────── */

header {
    padding: 120px 0 80px;
    text-align: left;
}

/* Inner pages — h1 only, less bottom clearance */
header.page-header {
    padding-bottom: 40px;
}

h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 20px;
    color: var(--mid-gray);
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.5;
}

.intro {
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
}

/* ─── Home page ─────────────────────────────────────────── */

.home-header p:not(.tagline) {
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 16px;
    color: var(--accent);
}

/* Structural divider between tagline and intro */
.home-divider {
    width: 32px;
    height: 1px;
    background: var(--light-gray);
    margin: 0 0 32px 0;
}

/* ─── Section styling ───────────────────────────────────── */

section {
    margin-bottom: 80px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--light-gray);
    margin: 80px 0 40px 0;
}

h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
    margin-top: 32px;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ─── Focus areas ───────────────────────────────────────── */

.focus-areas {
    margin: 20px 0;
}

.focus-areas ul {
    list-style: none;
    margin-left: 0;
}

.focus-areas li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: var(--mid-gray);
    font-size: 15px;
}

.focus-areas li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--light-gray);
    font-weight: 300;
}

/* ─── Advisory sections ─────────────────────────────────── */

/* Left-border treatment: structural, like a margin annotation */
.advisory-section {
    margin-bottom: 48px;
    padding: 0 0 0 24px;
    border-left: 1px solid var(--light-gray);
    transition: border-left-color 0.25s ease;
}

.advisory-section:hover {
    border-left-color: var(--mid-gray);
}

.advisory-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

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

/* ─── Writing previews (legacy) ─────────────────────────── */

.writing-preview {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--light-gray);
}

.writing-preview:last-child {
    border-bottom: none;
}

/* ─── Writing list ──────────────────────────────────────── */

.article-list {
    list-style: none;
    padding-bottom: 80px;
}

.article-item {
    margin-bottom: 0;
    padding: 32px 0;
    border-bottom: 1px solid var(--light-gray);
}

.article-item:first-child {
    border-top: 1px solid var(--light-gray);
}

.article-meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-bottom: 10px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.article-item:hover .article-meta {
    color: var(--mid-gray);
}

.writing-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.writing-title a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s ease;
}

.article-item:hover .writing-title a {
    text-decoration: underline;
}

.writing-excerpt {
    color: var(--mid-gray);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.65;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mid-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, gap 0.2s ease;
}

.read-more:hover,
.article-item:hover .read-more {
    color: var(--off-black);
    gap: 10px;
}

/* ─── Advisory external link ────────────────────────────── */

.advisory-section a[target="_blank"] {
    color: var(--off-black);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--light-gray);
    transition: text-decoration-color 0.2s ease;
}

.advisory-section a[target="_blank"]:hover {
    text-decoration-color: var(--off-black);
}

/* ─── Contact ───────────────────────────────────────────── */

.contact-info {
    font-size: 16px;
    line-height: 1.8;
}

.contact-info a {
    color: var(--off-black);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--light-gray);
    transition: text-decoration-color 0.2s ease;
}

.contact-info a:hover {
    text-decoration-color: var(--off-black);
}

/* ─── Page content (generic single pages) ───────────────── */

.page-content {
    padding-bottom: 80px;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.75;
}

.page-content h2 {
    margin-top: 48px;
}

/* ─── Article body (writing single pages) ───────────────── */

.page-top {
    padding-top: 88px;
    padding-bottom: 16px;
}

.article-body {
    padding-bottom: 80px;
    max-width: 640px;
}

.article-body p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 400;
    margin-top: 56px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 12px;
}

.article-date {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid-gray);
    margin-bottom: 0;
    margin-top: -8px;
    font-weight: 400;
}

/* ─── Back link ─────────────────────────────────────────── */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mid-gray);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
    color: var(--off-black);
    gap: 10px;
}

/* ─── Footer ────────────────────────────────────────────── */

footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--light-gray);
    font-size: 14px;
    color: var(--mid-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--mid-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--off-black);
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    header {
        padding: 100px 0 60px;
    }

    header.page-header {
        padding-bottom: 32px;
    }

    section {
        margin-bottom: 60px;
    }

    .advisory-section {
        padding-left: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
