:root {
    color-scheme: dark;
    --paper: #0b1526;
    --text: #e4ece6;
    --muted: rgba(208, 222, 214, 0.58);
    --accent: #7df0c4;
    --line: rgba(220, 235, 225, 0.12);
    --serif: "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}
html {
    background: #020611;
    min-height: 100%;
}
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 19px/1.75 var(--serif);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -3;
    opacity: 0;
    transition: opacity 1.2s ease;
}
canvas.ready {
    opacity: 1;
}
.veil {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(2, 6, 17, 0.3) 0%, rgba(2, 6, 17, 0.6) 100%);
}
main {
    box-sizing: border-box;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    padding: max(64px, env(safe-area-inset-top)) 64px 120px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='.08 .08'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px 220px,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E") 0 0 / 600px 600px,
        rgba(7, 14, 28, 0.82);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
    box-shadow: 0 0 120px rgba(0, 0, 0, 0.45);
}
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(125, 240, 196, 0.35);
    text-underline-offset: 3px;
}
a:hover, a:focus-visible {
    text-decoration-color: currentColor;
}
header {
    display: flex;
    gap: 10px;
    font: 14px/1 var(--sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 88px;
}
header a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
header a:hover {
    color: var(--text);
}
h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
}
time {
    color: var(--muted);
    font: 14px/1.4 var(--sans);
    letter-spacing: 0.03em;
}
.posts {
    list-style: none;
    padding: 0;
    margin: 48px 0 0;
}
.posts li {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.posts li:last-child {
    border-bottom: 1px solid var(--line);
}
.posts a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
}
.posts a span {
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.posts a:hover span {
    color: var(--accent);
}
.posts a time {
    flex-shrink: 0;
}
.posts p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 17px;
}
.empty {
    color: var(--muted);
    font-style: italic;
    margin-top: 48px;
}
.prose {
    margin-top: 48px;
}
.prose p {
    margin: 0 0 1.25em;
}
.prose h2, .prose h3 {
    font-weight: 600;
    line-height: 1.3;
    margin: 2.2em 0 0.6em;
}
.prose h2 {
    font-size: 1.5rem;
}
.prose img, .prose video {
    max-width: 100%;
    border-radius: 4px;
    filter: saturate(0.92) contrast(0.97);
}
.prose blockquote {
    margin: 1.6em 0;
    padding-left: 20px;
    border-left: 2px solid rgba(125, 240, 196, 0.5);
    color: var(--muted);
    font-style: italic;
}
.prose code {
    font: 0.82em ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 5px;
    border-radius: 4px;
}
.prose pre {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 18px;
    overflow-x: auto;
    line-height: 1.55;
}
.prose pre code {
    background: none;
    padding: 0;
}
.prose hr {
    border: 0;
    text-align: center;
    margin: 2.8em 0;
}
.prose hr::after {
    content: "\2042";
    color: var(--muted);
}
@media (max-width: 760px) {
    main { border: 0; padding: max(40px, env(safe-area-inset-top)) 32px 96px; }
}
@media (max-width: 560px) {
    body { font-size: 18px; }
    main { padding: max(32px, env(safe-area-inset-top)) 22px 80px; }
    header { margin-bottom: 56px; }
    h1 { font-size: 2.05rem; }
    .posts a { flex-direction: column; gap: 4px; }
}
.prose a.zoom {
    display: block;
    cursor: zoom-in;
    text-decoration: none;
}
.prose a.zoom img {
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prose a.zoom:hover img {
    transform: scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 17, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}
.lightbox[hidden] {
    display: none;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
