/* philmichalski.com. One stylesheet, no frameworks, no web fonts. */

:root {
  --bg: #141311;
  --bg-alt: #191815;
  --surface: #1e1d1a;
  --line: #2c2a26;
  --line-strong: #3a3732;
  --text: #e9e5dc;
  --text-soft: #bdb7ab;
  --muted: #8f897e;
  --accent: #ee833b;
  --accent-soft: rgba(238, 131, 59, .14);
  --accent-ink: #1a0f07;
  --ok: #8fb58a;
  --error: #e08a76;
  --warn: #d9b45f;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --narrow: 760px;
  --gutter: 20px;
  --radius: 10px;
  --section: clamp(56px, 7vw, 96px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f0e9;
    --bg-alt: #ebe7de;
    --surface: #faf8f3;
    --line: #dcd6ca;
    --line-strong: #c9c2b3;
    --text: #1d1b17;
    --text-soft: #47433b;
    --muted: #6f695e;
    --accent: #b5541a;
    --accent-soft: rgba(181, 84, 26, .12);
    --accent-ink: #fbf7ef;
    --ok: #3f7a3a;
    --error: #b0442c;
    --warn: #8a6a12;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; 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: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; font-size: 15px; color: var(--text-soft);
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 420px) {
  .brand span { font-size: 15px; }
  .site-nav a { padding: 6px 9px; font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); color: var(--accent-ink); }
.btn--small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: " \2192"; }

/* ---------- Track labels (DAW lane style) ---------- */
.track {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.track::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.track__no { color: var(--accent); padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 4px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 20px; }
.section__intro { color: var(--text-soft); font-size: 18px; max-width: 62ch; margin-bottom: 32px; }
.prose { color: var(--text-soft); max-width: 66ch; }
.prose strong { color: var(--text); }
.split { display: grid; gap: 24px 64px; }
@media (min-width: 880px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split--media { grid-template-columns: 7fr 5fr; align-items: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); position: relative; }
.hero__roles { font: 500 13px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero__roles span { color: var(--accent); margin: 0 4px; }
.hero__title { font-size: clamp(46px, 11vw, 120px); letter-spacing: -.045em; font-weight: 650; line-height: .95; margin-bottom: 26px; }
.hero__lede { font-size: clamp(18px, 2.3vw, 22px); color: var(--text-soft); max-width: 40ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__actions .avail--hero { margin: 0 0 0 4px; min-height: 44px; padding: 0 18px 0 16px; }
@media (max-width: 560px) { .hero__actions .avail--hero { margin-left: 0; } }

.hero__wave { position: relative; height: clamp(70px, 11vw, 130px); margin: clamp(40px, 7vw, 72px) 0 0; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave path { fill: none; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wave--base path { stroke: var(--line-strong); }
.wave--played path { stroke: var(--accent); }
.wave--played { clip-path: inset(0 64% 0 0); animation: play 26s linear infinite; }
.wave__head { position: absolute; top: -8px; bottom: -8px; left: 36%; width: 1px; background: var(--text); opacity: .7; animation: head 26s linear infinite; }
@keyframes play { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes head { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .wave--played, .wave__head { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Availability badge ---------- */
.avail {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px 7px 12px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 9%, transparent);
  font: 500 14px/1.3 var(--font); color: var(--text); text-decoration: none;
}
a.avail:hover { color: var(--text); border-color: var(--ok); }
.avail__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); }
.avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: avail-pulse 2.4s ease-out infinite; }
@keyframes avail-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .avail__dot::after { animation: none; } }
.avail--block { display: flex; border-radius: 10px; padding: 14px 18px; margin: 0 0 28px; font-weight: 400; font-size: 15px; }
.avail--block .avail__dot { margin-top: 1px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--bg); padding: 20px; display: flex; flex-direction: column-reverse; gap: 4px; }
.section--alt .stats > div { background: var(--bg-alt); }
.stats dt { font-size: 13px; color: var(--muted); line-height: 1.35; }
.stats dd { margin: 0; font: 600 clamp(26px, 4vw, 38px)/1.1 var(--font); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats--hero { grid-template-columns: repeat(3, 1fr); } }
.stats--compact { grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.stats--compact > div { padding: 16px; }
.stats--compact dd { font-size: clamp(22px, 3vw, 30px); }

/* ---------- Pano ---------- */
.pano { margin: clamp(48px, 7vw, 80px) 0 0; }
.pano img { width: 100%; aspect-ratio: 1200 / 411; object-fit: cover; filter: contrast(1.05); }
.pano figcaption { font: 12px/1.4 var(--mono); color: var(--muted); padding-top: 12px; letter-spacing: .04em; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s; }
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
/* Box titles in the accent color */
.card h3, .show h3, .lib h3 { color: var(--accent); }
.card p { color: var(--text-soft); font-size: 16px; margin: 0; }

/* ---------- Games ---------- */
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .games { grid-template-columns: repeat(4, 1fr); } }
.game img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); transition: transform .3s ease; }
.game:hover img { transform: translateY(-3px); }
/* Fade-in for covers, added by site.js only (no JS = always visible) */
.game img.is-pending { opacity: 0; transform: translateY(14px); }
.game img.is-shown { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .game img.is-pending { transform: none; } }
.game__body { padding-top: 14px; }
.game h3 { font-size: 17px; margin-bottom: 6px; }
.game__count { font: 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 6px; }
.game__count strong { color: var(--accent); font-weight: 600; }
.game__note { font-size: 15px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.game__link { display: block; border-radius: 8px; }
.game h3 a { text-decoration: none; }
.game h3 a:hover, .game__link:hover + .game__body h3 a { color: var(--accent); }
.game__steam { margin: 10px 0 0; font: 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.game__steam a { color: var(--accent); text-decoration: none; }
.game__steam a::after { content: " \2197"; }
.game__steam a:hover { text-decoration: underline; }

/* ---------- Podcasts ---------- */
.shows { display: grid; gap: 20px; }
@media (min-width: 900px) { .shows { grid-template-columns: 1fr 1fr; } }
.show { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.show h3 { font-size: 22px; margin-bottom: 14px; }
.show__by { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-left: 6px; vertical-align: 3px; }
.show > p { color: var(--text-soft); font-size: 16px; }
.show { display: flex; flex-direction: column; }
.show .stats { margin-bottom: 0; margin-top: auto; padding-top: 0; }
.show > p { margin-bottom: 24px; }
.show .stats > div { background: var(--bg); }
/* Side by side: cards share row heights so title, text and stats tables line up exactly */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .show { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    .show .stats { margin-top: 0; }
  }
}

/* ---------- PMSFX ---------- */
.clients { margin: clamp(40px, 6vw, 64px) 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients__label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.clients__list li { font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -.01em; color: var(--text-soft); }
.clients__more { color: var(--muted) !important; font-weight: 400 !important; }

.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 20px; position: relative; padding-top: 28px; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -10px; left: -2px; font: 600 56px/1 Georgia, serif; color: var(--accent); }
.quote blockquote p { color: var(--text-soft); font-size: 16px; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.quote figcaption span { color: var(--muted); }

/* ---------- Field recording ---------- */
.libs { display: grid; gap: 16px; }
@media (min-width: 900px) { .libs { grid-template-columns: repeat(3, 1fr); } }
.lib { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.lib__meta { font: 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }
.lib h3 { font-size: 19px; margin-bottom: 10px; }
.lib p:last-child { color: var(--text-soft); font-size: 16px; margin: 0; }

.video { margin: 28px 0 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 120% at 30% 20%, var(--surface), var(--bg)); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__play { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: none; border: 0; color: var(--text); cursor: pointer; font: 500 16px/1.3 var(--font); padding: 20px; }
.video__play svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: var(--accent); fill: var(--accent-ink); transition: transform .2s; }
.video__play:hover svg { transform: scale(1.06); }
.video__play small { color: var(--muted); font: 12px var(--mono); }

.gear { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 760px) { .gear { grid-template-columns: 1fr 1fr; } }
.gear h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.gear ul { list-style: none; margin: 0; padding: 0; }
.gear li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.gear li span { font: 12px/1.9 var(--mono); color: var(--accent); white-space: nowrap; }

/* ---------- Music ---------- */
.player iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); background: var(--surface); display: block; }
.player__link { font-size: 13px; margin-top: 10px; color: var(--muted); }

/* ---------- Tools ---------- */
.tools { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tools > div { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .tools > div { grid-template-columns: 180px 1fr; } }
.tools dt { font: 500 12px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tools dd { margin: 0; color: var(--text-soft); }

/* ---------- CTA ---------- */
.cta { text-align: left; border-top: 1px solid var(--line); }
.cta .section__title { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer p { margin: 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }

/* ---------- Page head ---------- */
.page-head { padding-bottom: 40px; }
.page-head .section__title { font-size: clamp(32px, 5.5vw, 54px); }
.error-page { min-height: 50vh; }

/* ---------- Forms ---------- */
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], textarea, select {
  width: 100%; font: 16px/1.5 var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { color: var(--error); font-size: 14px; margin: 0; }
.field__hint { color: var(--muted); font-size: 13px; margin: 0; }
.field--riddle { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.riddle__tag { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 6px; margin-right: 6px; vertical-align: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; min-width: 180px; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }

.notice { padding: 14px 18px; border-radius: 8px; border: 1px solid; font-size: 15px; margin: 0 0 20px; }
.notice--ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.notice--error { border-color: color-mix(in srgb, var(--error) 50%, transparent); background: color-mix(in srgb, var(--error) 10%, transparent); }
.notice--warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
[hidden] { display: none !important; }

/* ---------- Blog ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item__link { display: grid; gap: 16px; padding: 28px 0; text-decoration: none; }
@media (min-width: 640px) { .post-item__link:has(.post-item__cover) { grid-template-columns: 200px 1fr; gap: 28px; } }
.post-item__cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.post-item h2 { font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 8px; transition: color .15s; }
.post-item__link:hover h2 { color: var(--accent); }
.post-item p:last-child { color: var(--text-soft); margin: 0; }
.post-meta { font: 13px/1.5 var(--mono); color: var(--muted); margin-bottom: 10px; }
.post-meta a { text-decoration: none; }
.post-list--compact li { border-top: 1px solid var(--line); }
.post-list--compact a { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; text-decoration: none; }
.post-list--compact time { font: 13px/1.9 var(--mono); color: var(--muted); min-width: 110px; }
.post-list--compact span { font-weight: 500; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; font-size: 15px; }
.pager__pos { color: var(--muted); font: 13px var(--mono); }
.empty { color: var(--muted); padding: 40px 0; }

.article__title { font-size: clamp(32px, 5.5vw, 52px); letter-spacing: -.03em; }
.article__cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 40px; }
.prose--article { color: var(--text); font-size: 18px; line-height: 1.75; max-width: none; }
.prose--article > * + * { margin-top: 1.2em; }
.prose--article p { margin-bottom: 0; }
.prose--article h2 { font-size: 28px; margin-top: 2em; }
.prose--article h3 { font-size: 22px; margin-top: 1.8em; }
.prose--article h4, .prose--article h5, .prose--article h6 { font-size: 18px; margin-top: 1.6em; }
.prose--article a { color: var(--accent); }
.prose--article ul, .prose--article ol { padding-left: 1.3em; margin-bottom: 0; }
.prose--article li + li { margin-top: .35em; }
.prose--article blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); color: var(--text-soft); font-style: italic; }
.prose--article blockquote > * + * { margin-top: 1em; }
.prose--article code { font: .88em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: .1em .4em; border-radius: 4px; }
.prose--article pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose--article pre code { background: none; border: 0; padding: 0; }
.prose--article hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.prose--article img { border-radius: 8px; }
.prose--article figure { margin-left: 0; margin-right: 0; }
.prose--article figcaption { font: 13px/1.5 var(--mono); color: var(--muted); margin-top: 10px; }
.embed { margin-left: 0; margin-right: 0; border-radius: var(--radius); overflow: hidden; }
.embed iframe { display: block; width: 100%; border: 0; }
.embed--youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.embed--soundcloud iframe { height: 166px; }
.embed--soundcloud-set iframe { height: 380px; }
.embed--bandcamp iframe { height: 120px; }
.embed-link a { font-weight: 500; }
.embed-unsupported { color: var(--muted); font: 13px var(--mono); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 48px; padding-bottom: var(--section); }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 500; }
.post-nav a span { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.post-nav__older { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__older { grid-column: 1; } }
