/* Warm paper, an editorial serif, a quiet mono for labels, one blue accent. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations");
  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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); }

:root {
  color-scheme: light dark;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --paper: #faf8f3;
  --surface: #fffefb;
  --sunken: #f2efe7;
  --ink: #1a1916;
  --ink-2: #3b3934;
  --muted: #75716a;
  --rule: #e6e2d7;
  --rule-strong: #d3cdbe;
  --accent: #2346dc;
  --accent-ink: #fff;
  --danger: #b4321e;
  --danger-soft: #fbece7;
  --shadow: 0 1px 2px rgb(40 32 16 / .04), 0 6px 20px -10px rgb(40 32 16 / .12);
  --shadow-lift: 0 2px 4px rgb(40 32 16 / .05), 0 18px 40px -18px rgb(40 32 16 / .22);
  --radius: 14px;
  --measure: 40rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Older rules and scripts refer to these names. */
  --link: var(--accent);
  --hover: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110f;
    --surface: #1a1916;
    --sunken: #201e1b;
    --ink: #edeae2;
    --ink-2: #cdc9bf;
    --muted: #98938a;
    --rule: #2a2824;
    --rule-strong: #3b3833;
    --accent: #8ea4ff;
    --accent-ink: #0e1430;
    --danger: #ff9a85;
    --danger-soft: #2c1814;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 6px rgb(0 0 0 / .4), 0 22px 44px -18px rgb(0 0 0 / .75);
  }
}
:root { --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent); --accent-line: color-mix(in srgb, var(--accent) 45%, transparent); }

* { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 115%;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  scroll-padding-top: 1.5rem;
  scrollbar-gutter: stable;
}
body { max-width: var(--measure); margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.25rem) 1.25rem 2.5rem; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: inherit; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header: the mark, the name away from Home, and a quiet mono navigation. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 11vw, 5.5rem); }
.site-name { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500; letter-spacing: -.012em; }
.site-name:hover { color: var(--ink); }
.site-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.1rem; font-style: italic; font-weight: 450; line-height: 1; padding-bottom: .12rem; transition: transform .3s var(--ease); }
.site-name:hover .site-mark { transform: rotate(-8deg) scale(1.04); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .15rem; font-family: var(--mono); font-size: .68rem; font-weight: 450; letter-spacing: .06em; text-transform: uppercase; }
.site-header nav a { padding: .45rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; transition: color .15s, background-color .15s; }
.site-header nav a:hover { color: var(--ink); background: var(--sunken); }
.site-header nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
[aria-current="page"] { text-decoration: none; }

/* Type */
.page-heading { margin-bottom: 1.75rem; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 7.5vw, 3.6rem); font-weight: 380; line-height: 1.02; letter-spacing: -.035em; margin: 0; }
h2 { font-size: 1.4rem; font-weight: 450; line-height: 1.3; letter-spacing: -.015em; margin: 2.6rem 0 .8rem; }
h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.4; margin: 1.75rem 0 .4rem; }
p { margin: 0 0 1.15rem; }
strong { font-weight: 600; }
.prose { color: var(--ink-2); }
.prose strong, .prose h2, .prose h3 { color: var(--ink); }
.lede { color: var(--muted); font-size: 1.2rem; line-height: 1.45; margin: 1rem 0 0; }
.eyebrow { font-family: var(--mono); font-size: .68rem; font-weight: 450; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 1rem; }

/* Home: the name set large, the first sentence as the lede. */
.home .page-heading { margin-bottom: 1.6rem; }
.home h1 { font-size: clamp(3rem, 11vw, 5rem); font-weight: 340; letter-spacing: -.045em; line-height: .95; }
.home .prose > p:first-child { color: var(--ink); font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.35; letter-spacing: -.012em; margin-bottom: 1.5rem; }
.about .prose > p:first-child, .meet .prose > p:first-child, .writing .prose > p:first-child { color: var(--ink); font-size: 1.2rem; line-height: 1.45; }

/* Section labels inside long pages. */
.writing .prose > h2, .projects .prose > h2 { font-family: var(--mono); font-size: .68rem; font-weight: 450; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 2.75rem 0 1rem; display: flex; align-items: center; gap: .75rem; }
.writing .prose > h2::after, .projects .prose > h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.projects h2 + p { color: var(--muted); font-size: .95rem; }

/* Writing cards: the publisher's own image, then a quiet caption. */
.writing-cards { display: grid; gap: 1.5rem; margin: 1rem 0 1.5rem; }
.writing-card { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.writing-card:hover, .writing-card:focus-within { transform: translateY(-3px); border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.writing-card-link { display: block; color: var(--ink); text-decoration: none; }
.writing-card-link:hover { color: var(--ink); }
.writing-card-link:focus-visible { outline-offset: -4px; border-radius: 18px; }
.writing-card-image { width: 100%; height: auto; border-bottom: 1px solid var(--rule); }
.writing-card-copy { padding: 1.3rem 1.5rem 1.5rem; }
.writing-card-meta { margin: 0 0 .6rem; color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; }
.writing-card-title { margin: 0; color: var(--ink); font-size: 1.55rem; font-weight: 420; line-height: 1.18; letter-spacing: -.02em; transition: color .15s; }
.writing-card-link:hover .writing-card-title { color: var(--accent); }
.writing-card-summary { margin: .75rem 0 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.writing-card-read { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 520px) {
  .writing-card-copy { padding: 1.1rem 1.15rem 1.25rem; }
  .writing-card-title { font-size: 1.3rem; }
}

/* The X feed widens past the reading column to fit up to four readable cards. */
.x-feed { --x-width: max(100%, min(100vw - 2.5rem, 72rem)); width: var(--x-width); margin: clamp(3rem, 8vw, 4.5rem) 0 0 calc((100% - var(--x-width)) / 2); }
/* The heading stays pinned while scrolling, so filters and search are always at hand. */
.x-feed-heading { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 0 -.75rem 1rem; padding: .7rem .75rem; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.x-feed-heading h2 { margin: 0; color: var(--muted); font: inherit; letter-spacing: inherit; }
.x-feed-heading > a { color: var(--muted); text-decoration: none; }
.x-feed-heading > a:hover { color: var(--accent); }
.x-post { scroll-margin-top: 6rem; }
.x-post:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lift); }
/* Search: a quiet field in the pinned heading; "/" focuses it. */
.x-search { position: relative; flex: 1 1 14rem; max-width: 22rem; margin: 0 0 0 auto; }
.x-search::before { content: ""; position: absolute; top: 50%; left: .8rem; width: .85rem; height: .85rem; background: var(--muted); transform: translateY(-50%); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.x-search::after { content: "/"; position: absolute; top: 50%; right: .55rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid var(--rule-strong); border-radius: 5px; color: var(--muted); font-size: .66rem; transform: translateY(-50%); pointer-events: none; }
.x-search:focus-within::after { display: none; }
.x-search input { width: 100%; height: 2.15rem; padding: 0 2.2rem 0 2.15rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font: 400 .9rem/1 var(--serif); letter-spacing: 0; text-transform: none; transition: border-color .15s, box-shadow .15s; }
.x-search input::placeholder { color: var(--muted); }
.x-search input:hover { border-color: var(--rule-strong); }
.x-search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.x-search input::-webkit-search-cancel-button { cursor: pointer; }
.x-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.x-search-status { margin: -.2rem 0 1rem; color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.x-searching > .x-posts:not(.x-results), .x-searching > .x-next:not(.x-results-more), .x-searching > .x-filter-empty { display: none; }
.x-results .x-post-text mark, .x-results .x-article mark, .x-results-static mark, .x-post mark { padding: 0 .08em; border-radius: 3px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: inherit; }
.x-result-where { margin: .8rem 0 0; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.x-result-where a { color: var(--muted); text-decoration: none; }
.x-result-where a:hover { color: var(--accent); }
/* Feed filters, added by x-feed.js, sit in one segmented control. */
.x-filters { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); }
.x-filters button { padding: .35rem .8rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color .15s, background-color .15s; }
.x-filters button:hover { color: var(--ink); }
.x-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.x-filter-empty { margin: 1.5rem 0; color: var(--muted); font-size: .9rem; text-align: center; }
.x-post[hidden], .x-filter-empty[hidden] { display: none; }
.x-posts { position: relative; overflow-anchor: none; columns: 280px 4; column-gap: .85rem; }
.x-posts[data-masonry] { columns: auto; }
.x-posts[data-masonry] > .x-post { position: absolute; margin: 0; }
.x-post { display: inline-block; vertical-align: top; width: 100%; break-inside: avoid; margin: 0 0 .85rem; padding: .95rem 1rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: .9rem; transition: border-color .2s, box-shadow .3s var(--ease); }
.x-post:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.x-post-author { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; }
.x-avatar { flex: 0 0 28px; }
.x-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.x-author-details { display: grid; gap: .05rem; min-width: 0; }
.x-author { min-width: 0; color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 500; line-height: 1.25; }
.x-brand, .x-brand:visited { display: inline-flex; flex: 0 0 auto; margin-left: auto; padding: .25rem; border-radius: 6px; color: var(--muted); opacity: .7; transition: opacity .15s, color .15s; }
.x-brand:hover { color: var(--ink); opacity: 1; }
.x-post-text, .x-post-more summary { white-space: pre-wrap; line-height: 1.5; }
.x-post-more summary { cursor: pointer; list-style: none; }
.x-post-more summary::-webkit-details-marker { display: none; }
.x-expand, .x-collapse { color: var(--accent); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.x-collapse, .x-post-more[open] .x-excerpt, .x-post-more[open] .x-expand { display: none; }
.x-post-more[open] .x-collapse { display: inline; }
.x-post-more[open] summary { margin-bottom: .35rem; }
.x-post-meta { font-family: var(--mono); font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.x-post-meta > a { color: var(--muted); text-decoration: none; }
.x-post-meta > a:hover { color: var(--accent); }
.x-next { margin: 2rem 0 .5rem; text-align: center; overflow-anchor: none; }
.x-next a { display: inline-block; min-width: 11rem; padding: .7rem 1.4rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.x-next a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.x-quote { margin: .7rem 0 0; padding: .65rem .7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font-size: .84rem; }
.x-quote .x-post-author { margin-bottom: .4rem; }
.x-quote .x-author { font-size: .76rem; }
.x-quote .x-avatar { flex-basis: 20px; }
.x-quote .x-avatar img { width: 20px; height: 20px; }
.x-quote .x-brand svg { width: 13px; height: 13px; }
.x-quote-unavailable { margin: .75rem 0 0; color: var(--muted); font-size: .8rem; }
.x-article { margin-top: .5rem; }
.x-article-cover { display: block; overflow: hidden; border-radius: 8px; margin-bottom: .6rem; }
.x-article-cover img { width: 100%; max-height: 12rem; object-fit: cover; }
.x-article-label { margin-bottom: .2rem; color: var(--muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; }
.x-post .x-article-title { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 450; line-height: 1.3; letter-spacing: -.01em; }
.x-article-title a { text-decoration: none; }
.x-article-title a:hover { text-decoration: underline; }
.x-post .x-article-excerpt { margin: 0; color: var(--ink-2); font-size: inherit; line-height: 1.5; }
.x-quote .x-article-title { font-size: 1rem; }
.x-quote .x-article-cover img { max-height: 9rem; }
.x-media-grid { display: grid; gap: .3rem; margin-top: .65rem; }
.x-media-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x-media { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 10px; background: var(--sunken); }
.x-media img, .x-media video { max-height: 14rem; width: 100%; object-fit: contain; }
.x-quote .x-media img, .x-quote .x-media video { max-height: 10rem; }
.x-media-multiple img, .x-media-multiple video { height: 8rem; object-fit: cover; }
/* Players get more room than photos, so portrait and square clips stay watchable. */
:is(.x-gif, .x-video) video { max-height: min(26rem, 70vh); }
.x-quote :is(.x-gif, .x-video) video { max-height: min(22rem, 60vh); }
.x-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: .3rem .6rem; color: white; background: #111b; border-radius: 50%; }
/* X-style player chrome over cached GIFs and videos (x-player.js). */
.x-gif, .x-video { background: #000; }
[data-player] { color: #fff; font: 600 .7rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.x-player-surface { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.x-player-surface:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.x-player-big { position: absolute; top: 50%; left: 50%; display: none; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #111b; transform: translate(-50%, -50%); pointer-events: none; }
[data-player]:not([data-state="playing"]) .x-player-big { display: grid; }
[data-autoplay]:not([data-controls="full"]) .x-player-big { display: none; }
.x-player-spin { position: absolute; top: 50%; left: 50%; display: none; width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; border: 3px solid #fff5; border-top-color: #fff; border-radius: 50%; pointer-events: none; animation: x-spin .8s linear infinite, x-appear .2s .35s both; }
[data-waiting] .x-player-spin { display: block; }
@keyframes x-spin { to { transform: rotate(1turn); } }
@keyframes x-appear { from { opacity: 0; } }
.x-player-badge { position: absolute; left: .35rem; bottom: .35rem; padding: .2rem .35rem; border-radius: .2rem; background: #000a; letter-spacing: .03em; pointer-events: none; }
.x-player-bar { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; padding: .35rem; pointer-events: none; }
.x-player-bar > * { pointer-events: auto; }
.x-player-bar button { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.x-player-bar button:focus-visible, .x-player-seek:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.x-player-time { margin-right: auto; padding: .3rem .45rem; border-radius: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-player-time:empty { display: none; }
/* Before playback and while playing untouched, show only the time and sound switch. */
[data-controls="poster"] .x-player-sound, .x-player-bar > :is(.x-player-play, .x-player-full, .x-player-seek) { display: none; }
[data-controls="poster"] .x-player-time, [data-controls="idle"] :is(.x-player-time, .x-player-mute) { background: #000a; }
.x-player-bar button:hover { background: #fff2; }
[data-controls="full"] .x-player-bar { padding-top: 1.6rem; background: linear-gradient(transparent, #000b); }
[data-controls="full"] .x-player-bar > :is(.x-player-play, .x-player-full) { display: grid; }
[data-controls="full"] .x-player-seek { display: block; }
/* Volume opens above the sound button, over the video, so nothing in the bar moves. */
.x-player-sound { position: relative; display: grid; }
.x-player-volume { position: absolute; z-index: 1; bottom: 100%; left: 50%; display: none; width: 1.9rem; height: 5.2rem; margin-left: -.95rem; border-radius: 1rem; background: #000c; }
[data-controls="full"] .x-player-sound:is(:hover, :has(:focus-visible)) .x-player-volume { display: block; }
.x-player-level { --level: 100%; position: absolute; top: 50%; left: 50%; width: 3.9rem; height: 1.2rem; margin: -.6rem 0 0 -1.95rem; background: none; cursor: pointer; transform: rotate(-90deg); appearance: none; -webkit-appearance: none; }
.x-player-level:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.x-player-level::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--level), #fff6 var(--level)); }
.x-player-level::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--level), #fff6 var(--level)); }
.x-player-level::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; -webkit-appearance: none; }
.x-player-level::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }
@media (hover: none) { [data-controls="full"] .x-player-sound .x-player-volume { display: none; } }
.x-player-seek { --progress: 0%; order: -1; flex: 1 1 100%; height: 1rem; margin: 0 .3rem; background: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.x-player-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--progress), #fff6 var(--progress)); }
.x-player-seek::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--progress), #fff6 var(--progress)); }
.x-player-seek::-webkit-slider-thumb { width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; -webkit-appearance: none; }
.x-player-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; }
[data-player]:fullscreen { display: flex; align-items: center; border-radius: 0; }
[data-player]:fullscreen video { width: 100%; height: 100%; max-height: none; }
/* Full screen scales the controls up and hides the pointer with them. */
[data-player]:fullscreen { font-size: 1rem; }
[data-player]:fullscreen .x-player-bar { padding: 2.5rem 1.25rem .75rem; }
[data-player]:fullscreen .x-player-bar button { width: 2.6rem; height: 2.6rem; }
[data-player]:fullscreen .x-player-bar svg { width: 26px; height: 26px; }
[data-player]:fullscreen[data-controls="idle"] .x-player-surface { cursor: none; }
@media (prefers-reduced-motion: reduce) { .x-player-spin { animation: x-appear .2s .35s both; } }
@media (max-width: 600px) { .x-posts { columns: 1; } .x-post { font-size: .95rem; } .x-feed-heading { gap: .5rem .6rem; padding: .55rem .75rem; } .x-feed-heading > a { display: none; } .x-search { order: 2; flex-basis: 100%; max-width: none; } .x-search::after { display: none; } }

/* Long-form content */
ul, ol { padding-left: 1.3rem; margin: .5rem 0 1.25rem; }
li + li { margin-top: .45rem; }
li::marker { color: var(--muted); }
.prose blockquote { margin: 1.75rem 0; padding: .1rem 0 .1rem 1.25rem; border-left: 2px solid var(--accent); color: var(--ink); font-style: italic; font-size: 1.1rem; }
hr { height: 1px; margin: 2.5rem 0; border: 0; background: var(--rule); }
pre { overflow-x: auto; margin: 1.5rem 0; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--sunken); font-size: .8rem; line-height: 1.65; }
code { font-family: var(--mono); font-size: .84em; font-variant-numeric: tabular-nums; }
:not(pre) > code { padding: .1em .35em; border-radius: 5px; background: var(--sunken); }
pre code { font-size: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.recording { margin: 1.75rem 0 2rem; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #111; box-shadow: var(--shadow); }
.video-poster { display: block; position: relative; width: 100%; height: 100%; border: 0; padding: 0; background: #111; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-poster:hover img { transform: scale(1.02); }
.video-poster span { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .85rem; border-radius: 999px; background: #000c; color: #fff; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
table { display: block; max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .55rem .8rem; border-bottom: 1px solid var(--rule); text-align: left; }
th { font-family: var(--mono); font-size: .66rem; font-weight: 450; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.page-notes { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.page-notes p { margin-bottom: .3rem; }
.page-notes a { color: var(--muted); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; margin-top: clamp(4rem, 10vw, 6rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.skip-link { position: absolute; top: .5rem; left: 1rem; padding: .35rem .7rem; border-radius: 999px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.not-found h1 { margin-bottom: 1rem; }
.not-found nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.not-found nav a { padding: .55rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.not-found nav a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .site-name > span:not(.site-mark) { display: none; } .site-header nav { gap: 0; } .site-header nav a { padding: .45rem .55rem; } }
@media (max-width: 420px) { html { font-size: 106.25%; } }

/* Booking (/meet/): server-rendered open times and a plain form, no scripts. */
.booking { margin-top: 2rem; }
.booking svg { flex: none; }
.meet-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.meet-facts > li { position: relative; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .45rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.meet-facts > li.meet-zone-item { padding: 0; border: 0; background: none; }
.meet-zone summary { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; list-style: none; transition: border-color .15s, color .15s; }
.meet-zone summary::-webkit-details-marker { display: none; }
.meet-zone summary::after { content: ""; width: .4rem; height: .4rem; margin: 0 .1rem 0 .15rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.1rem) rotate(45deg); transition: transform .2s; }
.meet-zone[open] summary::after { transform: translateY(.08rem) rotate(-135deg); }
.meet-zone summary:hover, .meet-zone[open] summary { border-color: var(--ink); color: var(--ink); }
.meet-zone form { position: absolute; z-index: 2; top: calc(100% + .4rem); left: 0; display: grid; gap: .6rem; width: min(20rem, calc(100vw - 2.5rem)); padding: .9rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lift); text-transform: none; letter-spacing: 0; }
.meet-zone label { color: var(--muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.meet-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.meet-range { margin: 0; color: var(--ink); font-size: 1.25rem; font-weight: 450; letter-spacing: -.015em; }
.meet-pager { display: flex; gap: .4rem; margin: 0; }
.meet-pager a, .meet-pager span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.meet-pager a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.meet-pager span { color: var(--muted); opacity: .45; }
.meet-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); gap: 1.25rem .6rem; }
.meet-day { min-width: 0; }
.meet-day h2 { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .65rem; padding: 0 .1rem; font-size: 1rem; font-weight: 450; letter-spacing: -.01em; }
.meet-dow { color: var(--muted); font-family: var(--mono); font-size: .64rem; font-weight: 450; letter-spacing: .07em; text-transform: uppercase; }
.meet-date { color: var(--ink); }
.meet-times { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.meet-times li + li { margin-top: 0; }
.meet-times a { display: block; padding: .5rem .4rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: .74rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; text-align: center; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s, transform .2s var(--ease); }
.meet-times a:hover, .meet-times a:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.meet-times a:focus-visible { outline-offset: 2px; }
.meet-empty { margin: 1.5rem 0; padding: 2rem 1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.meet-alt { margin: 2rem 0 0; color: var(--muted); font-size: .9rem; }
.meet-alt a { color: var(--ink-2); }
.meet-error { margin: 0 0 1.25rem; padding: .75rem 1rem; border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: .95rem; }
.meet-error a { color: inherit; }
.meet-chosen { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.75rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.meet-chosen-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.meet-chosen-text { display: grid; gap: .1rem; min-width: 0; margin-right: auto; }
.meet-chosen-text strong { color: var(--ink); font-size: 1.05rem; font-weight: 550; line-height: 1.3; }
.meet-chosen-text span { color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.meet-change { flex: none; color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.meet-form { display: grid; gap: 1.1rem; }
.meet-form p { margin: 0; }
.meet-form label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .95rem; font-weight: 500; }
.meet-form input, .meet-form textarea, .meet-zone select { width: 100%; padding: .7rem .85rem; border: 1px solid var(--rule-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.meet-form textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.meet-zone select { padding: .55rem .65rem; font-size: .95rem; }
.booking :is(input, textarea, select):hover { border-color: var(--muted); }
.booking :is(input, textarea, select):focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.booking button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background-color .15s, transform .2s var(--ease); }
.booking button:hover { background: var(--accent); color: var(--accent-ink); }
.booking button:active { transform: translateY(1px); }
.meet-form button svg { transition: transform .2s var(--ease); }
.meet-form button:hover svg { transform: translateX(3px); }
.meet-zone button { padding: .6rem 1rem; }
.meet-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meet-booked { text-align: left; }
.meet-done-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.meet-done { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none; }
.meet-booked h2 { margin: 0; font-size: 1.9rem; font-weight: 400; letter-spacing: -.025em; }
.meet-booked > p { color: var(--ink-2); }
@media (max-width: 560px) {
  .meet-week { grid-template-columns: 1fr; gap: 1.5rem; }
  .meet-day h2 { margin-bottom: .55rem; }
  .meet-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meet-range { font-size: 1.1rem; }
  .meet-chosen { flex-wrap: wrap; }
}

/* Pages appear at once; only hover and focus feedback animates. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #000; --ink-2: #111; --muted: #333; }
  body { max-width: none; padding: 0; }
  .site-header, .site-footer, .skip-link { display: none; }
  pre, h2, h3 { break-inside: avoid; }
}
