:root {
    color-scheme: dark;
    --bg: #060809;
    --border: #191f29;
    --text: #e6eaf2;
    --muted: #848da0;
    --blue: #7ba3ff;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --max-width: 680px;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: Archivo, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: min(calc(100% - 44px), var(--max-width));
    margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 8, 9, 0.92);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--mono);
    font-size: 0.82rem;
}

.wordmark {
    color: var(--text);
    font-weight: 500;
}

.wordmark:hover {
    text-decoration: none;
}

.wordmark .dot {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--muted);
    transition: color 150ms ease;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ---------- intro ---------- */

.intro {
    padding: 96px 0 72px;
}

h1 {
    font-size: 1.9rem;
    font-weight: 680;
    font-stretch: 100%;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.lede {
    max-width: 56ch;
    margin-top: 18px;
    color: var(--muted);
}

.lede a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

.lede a:hover {
    text-decoration-color: var(--blue);
}

.intro-meta {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

.intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- sections ---------- */

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

h2 {
    font-family: Archivo, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    font-stretch: 100%;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.section-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.entry {
    margin-top: 32px;
}

.entry h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.entry h3 a {
    color: var(--text);
}

.entry h3 a:hover {
    color: var(--blue);
    text-decoration: none;
}

.entry p {
    max-width: 60ch;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.98rem;
}

/* ---------- collapsible detail ---------- */

.entry details {
    margin-top: 12px;
}

.entry summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--blue);
    list-style: none;
}

.entry summary::-webkit-details-marker {
    display: none;
}

.entry summary::before {
    content: "+";
    display: inline-block;
    width: 0.9em;
    font-weight: 500;
}

.entry details[open] summary::before {
    content: "–";
}

.entry summary:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.details-body {
    margin-top: 14px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.details-body p {
    margin-top: 0;
}

.details-body p + p {
    margin-top: 12px;
}

.details-body ul {
    max-width: 62ch;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.details-body li + li {
    margin-top: 10px;
}

.details-body .photo-grid {
    margin-top: 20px;
}

/* ---------- video embed ---------- */

.video-embed {
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- images ---------- */

figure {
    margin-top: 18px;
}

figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
}

figcaption {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.photo-grid figure {
    margin-top: 0;
}

.photo-grid img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* ---------- contact ---------- */

.contact-links {
    margin-top: 8px;
    list-style: none;
    font-family: var(--mono);
    font-size: 0.9rem;
}

.contact-links li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.contact-links li:last-child {
    border-bottom: none;
}

.contact-key {
    min-width: 80px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 2;
}

.contact-links a {
    color: var(--text);
}

.contact-links a:hover {
    color: var(--blue);
    text-decoration: none;
}

/* ---------- footer ---------- */

footer {
    margin-top: auto;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 560px) {
    .intro {
        padding: 64px 0 56px;
    }

    .nav-links {
        gap: 14px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid img {
        aspect-ratio: auto;
    }
}
