:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #272824;
  --body: #565750;
  --muted: #73746b;
  --line: #e5e5df;
  --accent: #75694f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #e9e5dc; color: var(--ink); }
.site-shell { width: min(1040px, calc(100% - 96px)); margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
.profile-page { display: flex; align-items: center; }
.introduction { display: grid; width: 100%; grid-template-columns: 280px minmax(0, 1fr); grid-template-areas: "portrait identity" "portrait bio"; gap: 24px 64px; align-items: start; padding-block: 48px; }
.identity { grid-area: identity; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.identity h1 { margin: 0 0 0 -3px; font-size: clamp(52px, 6vw, 76px); letter-spacing: -.055em; line-height: 1.05; }
.biography { grid-area: bio; max-width: 640px; }
.biography p { margin: 0 0 13px; color: var(--body); font-size: 16px; line-height: 1.75; }
.sound-trigger { display: inline; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: inherit; text-decoration: underline; text-decoration-color: #b6b4aa; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.sound-trigger:hover, .sound-trigger[aria-pressed="true"] { color: var(--accent); text-decoration-color: currentColor; }
.sound-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.reset-trigger { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 5px; padding: 0; border: 1px solid rgba(115,116,107,.25); border-radius: 50%; background: rgba(255,255,255,.45); color: var(--muted); font: 17px/1 var(--sans); cursor: pointer; }
.reset-trigger[hidden] { display: none; }
.reset-trigger:hover { background: rgba(255,255,255,.8); color: var(--ink); border-color: var(--muted); }
.reset-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reset-trigger:disabled { cursor: default; opacity: .5; }
.audio-status:empty { display: none; }
.biography .audio-status { color: var(--accent); font-size: 13px; }
.portrait { grid-area: portrait; align-self: center; display: block; width: 280px; height: 340px; object-fit: cover; object-position: center 35%; filter: grayscale(1); }
.document-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.document-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration-color: #b6b4aa; }
.document-links span { margin-left: 4px; color: var(--accent); }
.empty-state { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.post-list { list-style: none; padding: 0; margin: 28px 0 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-list a { padding: 22px 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 24px; text-decoration: none; }
.post-list a:hover .post-list-title { text-decoration: underline; text-underline-offset: 6px; }
.post-list-title { font-family: var(--serif); font-size: 25px; letter-spacing: -.025em; line-height: 1.35; }
.post-list time, .post-date { font-size: 12px; color: var(--muted); line-height: 1.7; }
.writing-page { padding-block: 32px 80px; }
.writing-page .page-heading { margin-top: 40px; }
.page-heading h1 { margin: 0 0 38px; font-size: clamp(56px, 7vw, 84px); line-height: 1.1; letter-spacing: -.055em; }
.writing-page .post-list, .writing-page .empty-state { border-top: 1px solid var(--line); padding-top: 28px; }
.post-page { padding-block: 55px 120px; }
.back-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.post { max-width: 680px; margin: 66px auto 0; }
.post-header { margin-bottom: 45px; }
.post-date { margin: 0 0 20px; }
.post h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.post-body { color: var(--body); font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.post-body p, .post-body ul, .post-body ol, .post-body pre, .post-body blockquote, .post-body figure { margin: 0 0 1.5em; }
.post-body h2, .post-body h3 { color: var(--ink); line-height: 1.3; margin: 1.8em 0 .6em; letter-spacing: -.025em; }
.post-body h2 { font-size: 33px; }
.post-body h3 { font-size: 26px; }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { padding-left: 24px; border-left: 1px solid #b6b4aa; font-style: italic; }
.post-body code { font-size: .85em; background: #f6f6f3; padding: 2px 4px; }
.post-body pre { padding: 20px; background: #f6f6f3; overflow-x: auto; }
.post-body pre code { padding: 0; background: none; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 16px; background: white; z-index: 10; }
.skip-link:focus { top: 16px; }
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 48px); }
  .introduction { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "portrait identity" "bio bio"; gap: 24px 20px; padding-block: 32px; }
  .eyebrow { margin-bottom: 14px; font-size: 9px; letter-spacing: .09em; }
  .identity h1 { font-size: clamp(40px, 11vw, 60px); margin-left: -2px; }
  .portrait { width: 112px; height: 136px; }
  .biography { max-width: none; }
  .biography p { font-size: 15px; line-height: 1.7; }
  .writing-page { padding-block: 24px 70px; }
  .post-page { padding-block: 35px 75px; }
  .post { margin-top: 45px; }
  .post-list a { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 360px) {
  .site-shell { width: calc(100% - 40px); }
  .introduction { column-gap: 14px; grid-template-columns: 80px minmax(0, 1fr); }
  .portrait { width: 80px; height: 104px; }
  .identity h1 { font-size: 37px; }
}
@media print {
  .site-shell { width: 100%; }
  .back-link, .skip-link { display: none; }
  .introduction, .writing-page, .post-page { padding-block: 30px; }
  .post { max-width: none; margin-top: 0; }
  a { color: inherit; }
}

/* Waveform-driven Bliss and portrait reveal. */
body { --xp-reveal: 0; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: #4d8cce url("https://upload.wikimedia.org/wikipedia/en/2/27/Bliss_%28Windows_XP%29.png") center center / cover no-repeat;
  opacity: var(--xp-reveal);
}
.introduction { position: relative; isolation: isolate; }
.introduction::before {
  content: ""; position: absolute; inset: -12px -42px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 20px 80px rgba(15,38,52,.14);
  z-index: -1; opacity: var(--xp-reveal);
}
.portrait { filter: grayscale(calc(1 - var(--xp-reveal))); }
@media (max-width:760px) { .introduction::before { inset: 0 -12px; } }
@media (prefers-reduced-motion:reduce) {
  body.xp-mode { --xp-reveal: 1 !important; }
}
