@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/libre-baskerville-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/libre-baskerville-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Libre Baskerville";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/libre-baskerville-italic-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Libre Baskerville";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/libre-baskerville-italic-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    unicode-range:
        U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --bg: #fdfcfb;
    --fg: #3d3d3d;
    --heading: #1a1a1a;
    --muted: #6e6e6e;
    --surface-1: #f4f2ef;
    --surface-2: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --accent: #2c5282;
    --accent-hover: #1a365d;
    --accent-light: #ebf4ff;
    --accent-warm: #cc6b4a;
    --code-string: #a84f2f;
    --code-type: #5b4a9e;
    --float-blur: saturate(150%) blur(24px);
    --float-bg: rgba(244, 242, 239, 0.72);
    --float-shadow: 0 6px 36px rgba(38, 30, 22, 0.18);
    --float-shadow-compact: 0 4px 24px rgba(38, 30, 22, 0.14);
    --float-rim: rgba(255, 255, 255, 0.7);
    --raised-bg: #ffffff;
    --raised-shadow: 0 1px 3px rgba(38, 30, 22, 0.12);
    --font-sans:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-mono:
        "JetBrains Mono", ui-monospace, "SF Mono", "SFMono-Regular", Consolas,
        "Liberation Mono", Menlo, monospace;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --fg: #c0c0c0;
        --heading: #f5f5f5;
        --muted: #8a8a8a;
        --surface-1: #1a1a1a;
        --surface-2: #242424;
        --border: rgba(255, 255, 255, 0.1);
        --border-strong: rgba(255, 255, 255, 0.2);
        --accent: #7cb3f0;
        --accent-hover: #9cc5f5;
        --accent-light: rgba(124, 179, 240, 0.18);
        --accent-warm: #e08867;
        --code-string: #e08867;
        --code-type: #b3a6ec;
        --float-bg: rgba(26, 26, 26, 0.72);
        --float-shadow: 0 6px 36px rgba(0, 0, 0, 0.45);
        --float-shadow-compact: 0 4px 24px rgba(0, 0, 0, 0.45);
        --float-rim: rgba(180, 180, 180, 0.1);
        --raised-bg: rgba(255, 255, 255, 0.12);
        --raised-shadow: none;
        color-scheme: dark;
    }
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection {
    background: var(--accent-light);
    color: var(--heading);
}
[hidden] {
    display: none !important;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
[tabindex="-1"]:focus {
    outline: none;
}
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}
.underline-grow {
    position: relative;
    text-decoration: none;
}
.underline-grow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transition:
        width 0.3s ease,
        opacity 0.2s ease;
}
.underline-grow:hover::after {
    width: 100%;
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.prose {
    font-size: 19px;
    line-height: 1.65;
}
.prose p {
    margin: 0 0 24px;
}
.prose > :last-child {
    margin-bottom: 0;
}
.prose h1,
.prose h2,
.prose h3 {
    color: var(--heading);
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 48px 0 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.prose h1 {
    font-size: 30px;
}
.prose h2 {
    font-size: 25px;
}
.prose h3 {
    font-size: 21px;
}
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}
.prose a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}
.prose ul,
.prose ol {
    margin: 0 0 24px;
    padding-left: 24px;
}
.prose li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.prose li:last-child {
    margin-bottom: 0;
}
.prose blockquote {
    margin: 32px 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent-warm);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 0.95em;
    font-style: italic;
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-1);
    border: 0.5px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
}
.prose pre {
    background: var(--surface-1);
    border: 0.5px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
}
.prose pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.prose .tok-keyword {
    color: var(--accent);
}
.prose .tok-type {
    color: var(--code-type);
}
.prose .tok-string,
.prose .tok-number {
    color: var(--code-string);
}
.prose .tok-comment {
    color: var(--muted);
}
.prose img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 8px 0 24px;
}
.prose hr {
    border: none;
    border-top: 0.5px solid var(--border);
    margin: 40px 0;
}
.prose sup a,
.prose sup a:hover {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7em;
    font-weight: 600;
    padding: 0 2px;
}
.prose sup a:hover {
    color: var(--accent);
}
.prose ol.footnotes {
    margin-top: 24px;
    padding-top: 8px;
    font-size: 14px;
    color: var(--muted);
}
.prose ol.footnotes li {
    margin-bottom: 10px;
}
@media screen and (max-width: 720px) {
    .prose {
        font-size: 17px;
    }
}
.photo-subnav {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.photo-subnav a {
    padding-bottom: 3px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
}
.photo-subnav a:hover {
    color: var(--heading);
}
.photo-subnav a.active {
    color: var(--heading);
    border-bottom-color: var(--accent-warm);
}
.photo-feed {
    --row-height: 280px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.photo-feed::after {
    content: "";
    flex: 1000 0 var(--row-height);
}
.photo-tile {
    max-width: 100%;
    margin: 0;
}
.photo-tile a {
    display: block;
    border-radius: 8px;
    background: var(--surface-1);
    overflow: hidden;
    transition: opacity 0.2s ease;
}
.photo-tile a:hover {
    opacity: 0.82;
}
.photo-tile img {
    display: block;
    width: 100%;
    height: auto;
}
.album-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
    margin: 0;
    padding: 0;
}
.album-grid a {
    display: block;
    text-decoration: none;
    color: var(--heading);
}
.album-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-1);
    transition: opacity 0.2s ease;
}
.album-grid a:hover .album-cover {
    opacity: 0.82;
}
.album-name {
    display: block;
    margin-top: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 26px;
    transition: color 0.2s ease;
}
.album-grid a:hover .album-name {
    color: var(--accent);
}
.album-count {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}
@media screen and (max-width: 720px) {
    .photo-feed {
        --row-height: 200px;
    }
    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
    .album-name {
        font-size: 16px;
        line-height: 24px;
    }
}
@media screen and (max-width: 480px) {
    .photo-feed .photo-tile {
        flex: 1 1 100%;
    }
    .photo-feed::after {
        content: none;
    }
}
html {
    scroll-behavior: smooth;
}
.back-link {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    background: var(--float-bg);
    -webkit-backdrop-filter: var(--float-blur);
    backdrop-filter: var(--float-blur);
    border: 0.5px solid var(--border);
    border-radius: 999px;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: var(--heading);
}
.page {
    max-width: 700px;
    margin: 0 auto;
    padding: 96px 24px 120px;
    animation: fade-in-up 0.5s ease-out both;
}
.page-wide {
    max-width: 1040px;
}
.page-title {
    margin: 0 0 32px;
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--heading);
    text-wrap: balance;
}
.page .date {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--muted);
}
.page-intro {
    margin: -20px 0 0;
    font-size: 17px;
    color: var(--muted);
}
.page-intro a {
    color: var(--accent);
    text-underline-offset: 3px;
}
.page-intro a:hover {
    color: var(--accent-hover);
}
.post-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 0.5px solid var(--border);
}
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.post-nav:empty {
    display: none;
}
.post-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 17px;
    line-height: 1.4;
    color: var(--heading);
    text-decoration: none;
}
.post-nav a span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}
.post-nav a strong {
    font-family: var(--font-serif);
    font-weight: 400;
    transition: color 0.2s ease;
}
.post-nav a:hover strong {
    color: var(--accent);
}
.post-nav [rel="prev"] {
    grid-column: 1;
}
.post-nav [rel="next"] {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}
.all-posts {
    display: inline-block;
    margin-top: 32px;
    font-size: 15px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.all-posts:hover {
    color: var(--heading);
}
.archive-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.archive-jump a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.archive-jump a:hover {
    color: var(--heading);
}
.archive-year {
    margin-top: 48px;
    scroll-margin-top: 80px;
}
.archive-year h2 {
    margin: 0 0 8px;
    padding-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    border-bottom: 0.5px solid var(--border);
}
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.archive-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 10px 0;
}
.archive-list a {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.4;
    color: var(--heading);
    text-decoration: none;
    transition: color 0.2s ease;
}
.archive-list a:hover {
    color: var(--accent);
}
.archive-list time {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--muted);
}
.page-wide .photo-feed,
.page-wide .album-grid {
    margin-top: 32px;
}
.photo-full {
    margin: 0;
}
.photo-full img {
    display: block;
    max-width: 100%;
    max-height: 78dvh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background: var(--surface-1);
}
.photo-full figcaption {
    margin-top: 20px;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 30px;
    color: var(--heading);
    text-align: center;
    text-wrap: balance;
}
.photo-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin: 24px 0 0;
    font-family: var(--font-mono);
    font-size: 13px;
}
.photo-meta dt {
    display: inline;
    color: var(--muted);
}
.photo-meta dt::after {
    content: " ";
}
.photo-meta dd {
    display: inline;
    margin: 0;
    color: var(--fg);
}
.pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: 16px;
    margin-top: 56px;
    padding-top: 20px;
    border-top: 0.5px solid var(--border);
    font-size: 14px;
}
.pager a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.pager a:hover {
    color: var(--heading);
}
.pager [rel="prev"] {
    grid-column: 1;
    justify-self: start;
}
.pager .all-posts {
    grid-column: 2;
    margin-top: 0;
}
.pager [rel="next"] {
    grid-column: 3;
    justify-self: end;
}
@media screen and (max-width: 720px) {
    .page {
        padding: 80px 20px;
    }
    .page-title {
        font-size: 30px;
    }
    .back-link {
        top: 16px;
        left: 16px;
    }
    .archive-list li {
        flex-direction: column;
        gap: 2px;
    }
    .archive-list a {
        font-size: 16px;
    }
    .photo-full figcaption {
        font-size: 17px;
        line-height: 27px;
    }
    .pager {
        font-size: 13px;
        gap: 12px;
    }
}
.ar-667 {
    flex: 0.667 1 calc(0.667 * var(--row-height));
}
.ar-668 {
    flex: 0.668 1 calc(0.668 * var(--row-height));
}
.ar-1000 {
    flex: 1 1 calc(1 * var(--row-height));
}
.ar-1500 {
    flex: 1.5 1 calc(1.5 * var(--row-height));
}
