/* Self-hosted IBM Plex, SIL Open Font License; see /fonts/. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600-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;
}

/* Base reset, independent of Laravel, Flux, and Tailwind. */
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
body { line-height: 1.5; }
:root {
    color-scheme: light dark;
    --canvas: #202223;
    --panel: #27292a;
    --ink: #ecebe5;
    --muted: #b3b2ac;
    --line: #414345;
    --separator: #ffffff12;
    --edge: #505254;
    --edge-hover: #797b7b;
    --highlight: #ffffff12;
    --shade: #00000024;
    --well: #242626;
    --well-shadow: #00000025;
    --radius-control: 5px;
    --radius-panel: 8px;
    --accent: #ef747a;
    --button-ink: #222426;
    --lamp: #ffd5d7;
    --lamp-glow: #e74752;
    --mono: 'IBM Plex Mono', monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --glass-surface: #27292a;
    --glass-tint: #27292ad9;
    --glass-edge: #ffffff14;
    --glass-glint: #ffffff06;
    --glass-shadow: #0000000d;
    --glass-hover: #ffffff0a;
    --glass-active: #ef747a14;
    --glass-active-edge: #ef747a1a;
    --accent-glow: #e7475225;
    --accent-hover: #ef747a24;
    --accent-hover-edge: #ef747a40;
    --code-comment: #9fa7a5;
    --code-punctuation: #c4c9c7;
    --code-keyword: #ef9297;
    --code-string: #b5cda5;
    --code-function: #e4c391;
    --code-number: #c2b5e2;
    --code-variable: #a8cbd3;
}
/* Follow system appearance directly, including changes while a page is open. */
@media (prefers-color-scheme: light) {
    :root {
        --canvas: #f5f3ed;
        --panel: #eeece5;
        --ink: #292c2b;
        --muted: #64665f;
        --line: #d6d5cd;
        --separator: #292c2b14;
        --edge: #c5c6bd;
        --edge-hover: #93958c;
        --highlight: #ffffffb3;
        --shade: #343a3010;
        --well: #e9e7df;
        --well-shadow: #343a3010;
        --accent: #a73842;
        --button-ink: #fffaf5;
        --lamp: #a73842;
        --lamp-glow: #a73842;
        --glass-surface: #eeece5;
        --glass-tint: #faf9f3c9;
        --glass-edge: #343a3024;
        --glass-glint: #ffffffb3;
        --glass-shadow: #343a3008;
        --glass-hover: #343a3009;
        --glass-active: #a738420c;
        --glass-active-edge: #a7384220;
        --accent-glow: transparent;
        --accent-hover: #a7384218;
        --accent-hover-edge: #a7384238;
        --code-comment: #62685e;
        --code-punctuation: #535b56;
        --code-keyword: #9d3541;
        --code-string: #426139;
        --code-function: #7a531c;
        --code-number: #71518c;
        --code-variable: #30646e;
    }
}
* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--button-ink); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--ink); color: var(--canvas); padding: 12px; }
.skip-link:focus { top: 12px; }
.site-shell { max-width: 1136px; padding: 0 48px; margin: auto; }
.site-header { padding: 32px 0; }
.main-nav {
    gap: 3px;
    padding: 5px;
    max-width: 100%;
    font: 13px var(--mono);
    border-radius: 999px;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    transition: background-color .15s;
}
.main-nav a[aria-current] {
    color: var(--accent);
    background: var(--glass-active);
}
.main-nav a:not([aria-current]):hover { background: var(--glass-hover); color: var(--ink); }
.main-nav a:focus-visible { outline-offset: -3px; }
.intro-section { padding: 48px 0 0; }
.section-label { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .065em; color: var(--muted); }
.intro-section h1 { font: 500 clamp(58px, 7vw, 88px)/1.06 var(--sans); letter-spacing: -.045em; margin: 20px 0 25px; }
.intro-section h1 > span { color: var(--accent); text-shadow: 0 0 16px var(--accent-glow); }
.intro-copy { max-width: 620px; font-size: 19px; line-height: 1.75; }
.intro-copy strong { font-weight: 600; }
.intro-copy p + p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.main-nav {
    background: linear-gradient(180deg, var(--glass-glint), transparent), var(--glass-surface);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--glass-glint);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .main-nav {
        background: linear-gradient(180deg, var(--glass-glint), transparent), var(--glass-tint);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font: 13px/1.5 var(--sans); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 5px; }
.text-link:is(:hover, :focus-visible) { color: var(--accent); text-decoration-color: currentColor; }
.writing-section { margin-top: 64px; }
.writing-heading { margin-bottom: 16px; }
.writing-heading h2 { margin: 0; font: 500 24px/1.3 var(--sans); letter-spacing: -.025em; }
h2 { font: 500 31px/1.15 var(--sans); letter-spacing: -.03em; margin-top: 9px; }
/* Plain full-width links aligned with the page headings. */
.post-list { display: grid; gap: 8px; }
.post-copy { max-width: 800px; }
.post-row { display: block; min-width: 0; padding: 28px 0; }
.post-row:focus-visible { outline-offset: 6px; }
.post-row time { display: block; margin-top: 10px; font: 13px/1.6 var(--sans); color: var(--muted); }
.post-copy :is(h2, h3) { margin: 0; font: 500 clamp(22px, 2.2vw, 26px)/1.35 var(--sans); letter-spacing: -.025em; text-wrap: pretty; }
.writing-section .post-copy h3 { font-size: 23px; }
.post-copy p { max-width: 68ch; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.header-socials { display: flex; align-items: center; }
.social-links { gap: 8px; font: 13px/1.5 var(--sans); }
.social-links a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 4px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); white-space: nowrap; transition: background-color .15s; }
.social-links svg { flex: none; width: 16px; height: 16px; transition: color .15s; }
.social-links a:is(:hover, :focus-visible) { color: var(--ink); background: var(--glass-hover); border-color: var(--glass-edge); }
.social-links a:is(:hover, :focus-visible) svg { color: var(--accent); }
.social-links a:focus-visible { outline-offset: 2px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px 32px; border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0; font-size: 12px; color: var(--muted); }
.footer-signature { margin: 0; color: var(--ink); font: 500 clamp(34px, 5vw, 60px)/1.1 var(--sans); letter-spacing: -.045em; }
.footer-signature span { color: var(--accent); }
.footer-socials { display: none; }
.footer-meta { margin-left: auto; text-align: right; white-space: nowrap; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); align-items: center; gap: 32px 48px; margin-top: 36px; padding: 36px 0 8px; border-top: 1px solid var(--line); }
.newsletter h2 { margin: 9px 0 12px; font: 500 clamp(25px, 3vw, 31px)/1.2 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.newsletter h2 span { color: var(--accent); }
.newsletter-copy > p:last-child { max-width: 38ch; color: var(--muted); font-size: 14px; line-height: 1.75; }
.newsletter-form { min-width: 0; }
.newsletter-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.newsletter-form label { display: block; margin-bottom: 10px; color: var(--muted); font: 11px/1.5 var(--mono); }
.newsletter-controls { display: flex; align-items: stretch; gap: 8px; }
.newsletter-controls input[type='email'] { flex: 1; min-width: 0; min-height: 46px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: 14px/1.5 var(--sans); transition: border-color .15s; }
.newsletter-controls input::placeholder { color: var(--muted); opacity: .8; }
.newsletter-controls input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.newsletter-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 16px; border: 1px solid var(--glass-active-edge); border-radius: 999px; background: var(--glass-active); color: var(--accent); font: 11px/1.5 var(--mono); white-space: nowrap; transition: background .15s, border-color .15s; }
.newsletter-controls button:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover-edge); }
.newsletter-controls button span { font: 17px/1 var(--sans); }
.newsletter-controls button:focus-visible { outline-offset: 2px; }
.newsletter-hint { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.newsletter-hint a { text-decoration: underline; text-underline-offset: 3px; }
.newsletter-hint a:hover { color: var(--ink); }
.newsletter-preview { margin-top: 8px; color: var(--accent); font: 10px/1.6 var(--mono); }
@media (max-width: 760px) {
    .newsletter { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
    .newsletter-form { width: 100%; max-width: 460px; }
}
@media (max-width: 360px) {
    .newsletter-controls { flex-direction: column; }
}
.empty-state { padding: 25px 0; }

.collection-intro { padding: 0; }
.collection-intro h1 { margin: 16px 0 24px; font: 500 clamp(54px, 6vw, 76px)/1.06 var(--sans); letter-spacing: -.045em; }
.collection-intro h1 > span { color: var(--accent); }
.collection-description { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.writing-archive { margin-top: 40px; }

@media (max-width: 900px) {
    .site-shell { padding: 0 28px; }
}
@media (max-width: 640px) {
    .site-shell { padding: 0 22px; }
    .site-header { padding: 24px 0; }
    .main-nav a { padding-inline: 11px; }
    .header-socials { display: none; }
    .footer-signature, .footer-socials { flex-basis: 100%; }
    .footer-socials { display: block; }
    .site-footer { margin-top: 48px; gap: 16px; padding: 28px 0; }
    .footer-socials .social-links { margin-left: -5px; }
    .intro-section { padding-top: 24px; }
    .section-label { font-size: 9px; }
    .intro-section h1 { font-size: clamp(49px, 11vw, 67px); }
    .intro-copy { font-size: 17px; }
    .intro-copy p + p { font-size: 16px; }
    .writing-section { margin-top: 40px; }
    h2 { font-size: 28px; }
    .post-row { padding: 24px 0; }
    .post-copy :is(h2, h3), .writing-section .post-copy h3 { font-size: 22px; }
    .post-copy p { font-size: 15px; }
    .collection-description { font-size: 16px; }
    .writing-archive { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}



.page-content { padding-top: 48px; }
.home-content { padding-top: 0; }

@media (max-width: 640px) {
    .page-content { padding-top: 32px; }
    .home-content { padding-top: 0; }
}

/* Article reading layout */
.article-shell { width: 100%; }
.article-heading, .prose { max-width: 720px; margin-inline: 0; }
.article-heading { margin-bottom: 24px; }
.article-heading h1 { margin: 24px 0 12px; color: var(--ink); font: 500 clamp(34px, 4vw, 48px)/1.16 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.prose { font-size: 17px; line-height: 1.85; overflow-wrap: break-word; }
.prose p { margin: 0 0 24px; color: var(--ink); font-size: inherit; line-height: inherit; }
.prose > p:first-child { color: var(--muted); font-size: 19px; line-height: 1.75; margin-bottom: 36px; }
.prose h2 { margin: 48px 0 18px; color: var(--ink); font: 500 30px/1.3 var(--sans); letter-spacing: -.03em; }
.prose h3 { margin: 36px 0 14px; color: var(--ink); font: 500 23px/1.4 var(--sans); letter-spacing: -.02em; }
.prose :is(h2, h3, h4) { scroll-margin-top: 24px; }
.prose :is(ul, ol) { margin: 0 0 24px; padding-left: 24px; }
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--edge); font-style: italic; }
.prose blockquote p { color: var(--muted); }
.prose img { max-width: 100%; height: auto; margin: 28px 0; border: 1px solid var(--edge); border-radius: var(--radius-panel); }
.prose :not(pre) > code { font-family: var(--mono); font-size: .85em; background: var(--panel); padding: 2px 5px; border-radius: var(--radius-control); overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow-x: auto; margin: 28px 0; padding: 20px; border: 1px solid var(--edge); border-radius: var(--radius-panel); font: 13px/1.8 var(--mono); box-shadow: 0 2px 5px var(--shade); }
.prose pre code { font: inherit; }
.prose mark { background: color-mix(in srgb, var(--accent) 10%, var(--canvas)); color: var(--ink); padding: 2px 4px; border-radius: 3px; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--separator); }
.prose table { display: block; max-width: 100%; overflow-x: auto; margin: 28px 0; font-size: 14px; }
.prose :is(th, td) { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
    .article-heading { margin-bottom: 24px; }
    .article-heading h1 { margin-top: 16px; }
    .prose { font-size: 16px; line-height: 1.8; }
    .prose > p:first-child { font-size: 17px; }
    .prose h2 { font-size: 26px; margin-top: 38px; }
    .prose h3 { font-size: 21px; }
    .prose pre { padding: 16px; font-size: 12px; }
}

@media (prefers-reduced-transparency: reduce) {
    .main-nav {
        background: var(--glass-surface);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
/* Shared page structures. */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.main-nav, .social-links { display: flex; }
.social-links { flex-wrap: wrap; }
.writing-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px 10px 10px; border: 1px solid transparent; border-radius: 999px; color: var(--muted); font: 500 14px/1.5 var(--sans); transition: color .15s, background-color .15s; }
.article-back svg { flex: none; }
.article-back:is(:hover, :focus-visible) { color: var(--accent); }
.project-link:focus-visible, .article-back:focus-visible { outline-offset: 2px; }
.prose pre { background: var(--panel); }
.token.comment, .token.prolog, .token.doctype { color: var(--code-comment); }
.token.punctuation { color: var(--code-punctuation); }
.token.keyword, .token.tag, .token.boolean { color: var(--code-keyword); }
.token.string, .token.attr-value { color: var(--code-string); }
.token.function, .token.class-name { color: var(--code-function); }
.token.number, .token.constant { color: var(--code-number); }
.token.operator, .token.variable, .token.property { color: var(--code-variable); }

/* Compact, visible authorship for articles. */
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font: 13px/1.6 var(--sans); }
.article-byline a { display: inline-flex; align-items: center; min-height: 44px; }
.article-byline a:hover { color: var(--accent); }

@media (min-width: 1000px) {
    .prose > :is(pre, img, figure), .prose > p:has(> img) { width: calc(100% + 160px); max-width: none; margin-inline: 0; }
}

/* Project cards */
.project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    margin-top: 40px;
}
.project-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--separator);
    border-radius: 18px;
    background: linear-gradient(155deg, var(--glass-glint), transparent 55%), color-mix(in srgb, var(--panel) 65%, var(--canvas));
    box-shadow: inset 0 1px 0 var(--glass-glint), 0 3px 12px var(--glass-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.project-heading { display: flex; align-items: center; gap: 16px; }
.project-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border: 1px solid var(--glass-active-edge);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--glass-glint), transparent), var(--glass-active);
    color: var(--accent);
    box-shadow: inset 0 1px 0 var(--glass-glint);
}
.project-row h2 { margin: 0; font: 500 27px/1.2 var(--sans); letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-title-link { display: inline-flex; align-items: center; min-height: 44px; }
.project-title-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.project-title-link:is(:hover, :focus-visible) { color: var(--accent); }
.project-details { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 24px; }
.project-summary { color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.project-actions { display: flex; align-items: center; margin-top: auto; }
.project-link { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font: 13px/1.5 var(--sans); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 5px; }
.project-link:is(:hover, :focus-visible) { color: var(--accent); text-decoration-color: currentColor; }
.project-row:has(.project-title-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-title-link:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
    .project-row:has(.project-title-link:hover) {
        transform: translateY(-2px);
        border-color: var(--edge);
        box-shadow: inset 0 1px 0 var(--glass-glint), 0 10px 24px var(--glass-shadow);
    }
}
@media (max-width: 800px) {
    .project-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; margin-top: 32px; }
    .project-row { padding: 24px; gap: 20px; }
    .project-row h2 { font-size: 26px; }
    .project-summary { font-size: 15px; }
}
@media (max-width: 360px) {
    .project-row { padding: 20px; }
    .project-heading { gap: 12px; }
    .project-row h2 { font-size: 23px; }
    .project-icon { flex-basis: 42px; height: 42px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-row:has(.project-title-link:hover) { transform: none; }
}
