@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
/* Layout and styling adapted from jeff.henshaw.org */
/* ------------------------- DOCUMENT SETUP ------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background-color: #ffffff;
  color: #444444;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* ------------------------- ARTICLE PAGES ------------------------- */
.document-wrapper {
  max-width: 48em;
  width: 100%;
  min-height: 100%;
  margin: 40px auto;
  padding: 0 2em 2em;
  color: #444444;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.755;
  tab-size: 4;
  /* Headings */
}
.document-wrapper h1, .document-wrapper h2, .document-wrapper h3, .document-wrapper h4, .document-wrapper h5, .document-wrapper h6 {
  display: block;
  font-weight: 600;
  line-height: 1.521;
}
.document-wrapper h1 {
  font-size: 2em;
  padding-top: 0.8em;
  margin-bottom: 1em;
}
.document-wrapper h2 {
  font-size: 1.6em;
  padding-top: 0.66em;
  margin-bottom: 0.7em;
}
.document-wrapper h3 {
  font-size: 1.27em;
  padding-top: 0.53em;
  margin-bottom: 0.25em;
}
.document-wrapper h4, .document-wrapper h5, .document-wrapper h6 {
  padding-top: 0.4em;
  padding-bottom: 0.27em;
}
.document-wrapper {
  /* Body text */
}
.document-wrapper p {
  display: block;
  margin-bottom: 1.8em;
}
.document-wrapper a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.document-wrapper strong, .document-wrapper b, .document-wrapper th {
  font-weight: bold;
}
.document-wrapper em, .document-wrapper i {
  font-style: italic;
}
.document-wrapper {
  /* Lists */
}
.document-wrapper ul, .document-wrapper ol {
  display: block;
  padding-inline-start: 2.13em;
  margin-bottom: 1em;
}
.document-wrapper ul {
  list-style-type: disc;
}
.document-wrapper ul ul {
  list-style-type: circle;
}
.document-wrapper ul ul ul {
  list-style-type: disc;
}
.document-wrapper ol {
  list-style-type: decimal;
}
.document-wrapper li {
  display: list-item;
}
.document-wrapper li::marker {
  color: var(--accent);
}
.document-wrapper li > p {
  display: inline;
}
.document-wrapper {
  /* Quotes: an accent bar in the left gutter */
}
.document-wrapper blockquote {
  display: block;
  position: relative;
  padding-inline-start: 2.13em;
  margin-bottom: 1.8em;
}
.document-wrapper blockquote::before {
  content: "";
  position: absolute;
  top: -0.4em;
  left: 1em;
  width: 0.13em;
  height: calc(100% + 0.8em);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.33em;
}
.document-wrapper hr {
  display: block;
  margin: 2em 0 0.5em;
  border: none;
  border-top: 1px solid #d9d9d9;
}
.document-wrapper {
  /* Code */
}
.document-wrapper code, .document-wrapper pre {
  font-family: "Menlo", ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.91em;
}
.document-wrapper code {
  padding: 0.25em;
  color: #444444;
  background-color: #F3F5F7;
  border-radius: 0.25em;
}
.document-wrapper pre {
  display: block;
  white-space: pre-wrap;
}
.document-wrapper pre code {
  display: block;
}
.document-wrapper {
  /* Tables */
}
.document-wrapper table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.755em;
  border: 1px solid #d9d9d9;
  border-collapse: collapse;
}
.document-wrapper tr:nth-child(odd) {
  background-color: #F3F5F7;
}
.document-wrapper th, .document-wrapper td {
  min-width: 5em;
  padding: 0.37em 0.75em;
  text-align: left;
  border-right: 1px solid #d9d9d9;
}
.document-wrapper th:last-child, .document-wrapper td:last-child {
  border-right: none;
}
.document-wrapper {
  /* Media */
}
.document-wrapper img {
  display: inline;
  max-width: 100%;
}
.document-wrapper iframe {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border: none;
  aspect-ratio: 660/440;
}
.document-wrapper iframe.portrait {
  aspect-ratio: 440/782;
  margin: 0 auto 20px;
}
.document-wrapper {
  /* Image size hints from the markdown: ![alt](photo.jpg#half) */
}
.document-wrapper img {
  width: 100%;
}
.document-wrapper img[src*="#half"] {
  width: 49%;
}
.document-wrapper img[src*="#twothirds"] {
  width: 66%;
}
.document-wrapper img[src*="#third"] {
  width: 32%;
}
.document-wrapper {
  /* Date pill at the end of a bearnote */
}
.document-wrapper .date {
  display: inline-block;
  margin-bottom: 38px;
  padding: 6px 10px;
  font-size: 14px;
  background-color: lightgray;
  border-radius: 7px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
.document-wrapper {
  /* Date under a post's title */
}
.document-wrapper .dateline {
  display: block;
  margin: -0.9em 0 1.8em;
  color: #888888;
}
.document-wrapper {
  /* Home link at the top and bottom of a post */
}
.document-wrapper #header {
  margin: 20px auto;
  text-align: center;
}
.document-wrapper #footer {
  margin-top: 30px;
  padding-top: 5px;
  font-size: 14.5px;
  color: #888888;
  text-align: center;
  border-top: 1px dotted #444444;
}
.document-wrapper .home-icon {
  display: inline-block;
  height: 38px;
  padding: 5px;
}
.document-wrapper .home-icon a {
  font-size: 30px;
  line-height: 1;
}
.document-wrapper .home-icon a:hover {
  opacity: 0.6;
}
/* ------------------------- HOME PAGE ------------------------- */
/* Depth: the microphone is small and far back on the wall; the type is in
   front of it, sharp, overlapping the edge of the mic's shadow, with a faint
   shadow of its own. Text is positioned in % of the stage and sized in
   container units so the whole composition scales as one piece.
   Identity-block structure adapted from jeff.henshaw.org. */
body.home {
  min-height: 100vh;
  background: #EBE1D3;
  color: #282828;
  -webkit-font-smoothing: antialiased;
}
.stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 1600 / 1000;
  container-type: inline-size;
  overflow: hidden;
  --px: 0;
  --py: 0;
}
.stage-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -5px), 0);
  transition: transform .25s ease-out;
}
.stage-text {
  position: absolute;
  left: 37%;
  top: 31%;
  font-size: clamp(12px, 1.02cqw, 16px);
  line-height: 1.6;
  text-align: left;
  color: #1f1b17;

  transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 8px), 0);
  transition: transform .25s ease-out;
}
.nameField {
  font-size: 2.1em;
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: none;
  line-height: 1.2;
  margin: 0 0 1.1em;
  color: #1f1b17;
}
/* The type floats above the wall: a tight contact shadow plus two longer, softer ones (light from the upper left, same as the mic's shadow). Sizes in em so it scales with the stage. */
.stage-text { text-shadow: .06em .1em .08em rgba(70, 52, 34, .20), .14em .5em .7em rgba(70, 52, 34, .26), .3em 1.1em 1.6em rgba(70, 52, 34, .20); }
.stage-text .nameField { text-shadow: .03em .05em .05em rgba(70, 52, 34, .22), .07em .22em .3em rgba(70, 52, 34, .28), .14em .5em .75em rgba(70, 52, 34, .22); }
.stage-text .menu-icon svg { filter: drop-shadow(.07em .3em .35em rgba(70, 52, 34, .32)); }
.entry { margin: 0 0 .95em; line-height: 1.45; }
.titleline {
  display: inline-block;
  font-size: .72em;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: .15em;
}
.entry a { color: #1f1b17; text-decoration: none; font-size: 1em; font-weight: 400; letter-spacing: .01em; transition: color .2s ease; }
.entry a:hover, .entry a:focus-visible { color: var(--accent); }
.menu { margin-top: 1.5em; margin-left: -6px; display: flex; gap: 6px; }
.menu-icon { display: inline-block; padding: 6px; color: #1f1b17; }
.menu-icon a { display: inline-flex; align-items: center; text-decoration: none !important; color: inherit; transition: color .2s ease, transform .2s ease; }
.menu-icon a:hover { color: var(--accent); transform: translateY(-1px); }
.menu-icon svg { width: 20px; height: 20px; }

.subtitle { font-size: 1.15em; font-weight: 400; letter-spacing: .02em; margin-bottom: 1em; text-transform: lowercase; }
.roles { font-size: .8em; font-weight: 500; letter-spacing: .1em; text-transform: lowercase; color: rgba(31, 27, 23, .6); line-height: 1.9; }
.roles span { white-space: nowrap; }
.roles .dot { margin: 0 .7em; opacity: .7; }

@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.stage-text .nameField, .stage-text .entry, .stage-text .menu-icon { opacity: 0; animation: slideIn .6s ease-out forwards; }
.stage-text .entry:nth-of-type(2) { animation-delay: .15s; }
.stage-text .entry:nth-of-type(3) { animation-delay: .3s; }
.stage-text .menu-icon:nth-of-type(1) { animation-delay: .6s; }
.stage-text .menu-icon:nth-of-type(2) { animation-delay: .7s; }
.stage-text .menu-icon:nth-of-type(3) { animation-delay: .8s; }
.stage-text .menu-icon:nth-of-type(4) { animation-delay: .9s; }
.stage-text .menu-icon:nth-of-type(5) { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .stage-text .nameField, .stage-text .entry, .stage-text .menu-icon { opacity: 1; animation: none; }
  .stage-photo, .stage-text { transform: none !important; transition: none; }
}

/* Phones and any tall (portrait) screen, tablets included: the picture is
   cropped to the mic and its shadow, and the text overlaps the bottom of the
   shadow so it still sits in front of it. Sizes use vw so it scales. */
@media (max-width: 544px), (max-aspect-ratio: 11/10) {
  .stage { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; }
  .stage-photo { position: relative; inset: auto; display: block; width: 168%; max-width: none; height: auto; margin: 0 0 -50vw -66%; transform: none !important; }
  .stage-text { position: relative; left: auto; top: auto; padding: 0 12vw 56px; font-size: clamp(14px, 2.3vw, 22px); transform: none !important; }
  .nameField { font-size: 2em; letter-spacing: .08em; }
  .roles { letter-spacing: .09em; }
  .roles .dot { margin: 0 .4em; }
}
@media (min-width: 545px) and (max-aspect-ratio: 11/10) {
  .stage-photo { width: 120%; margin: 0 0 -26vw -22%; }
}
@media (max-width: 544px) {
  .document-wrapper { width: 95%; margin: 40px auto; padding: 0; font-size: 17px; }
  .document-wrapper h1, .document-wrapper h2, .document-wrapper h3, .document-wrapper h4, .document-wrapper h5, .document-wrapper h6 { font-weight: 700; }
  .document-wrapper img[src*="#half"], .document-wrapper img[src*="#twothirds"], .document-wrapper img[src*="#third"] { width: 100%; }
}


.document-wrapper .home-icon img { display: block; }

/* ------------------------- LINKED POSTS, QUOTES, FOOTNOTES ------------------------- */
/* A post with `link:` in its front matter: the headline goes to the outside page (marked with an arrow), the date is the permalink to this site's own page. */
.document-wrapper h1.linked a { color: inherit; text-decoration: none; }
.document-wrapper h1.linked a:hover, .document-wrapper h1.linked a:focus-visible { color: var(--accent); }
.document-wrapper h1 .ext { font-size: .72em; font-weight: 500; margin-left: .3em; opacity: .75; position: relative; top: -.14em; }
.document-wrapper h1.linked a:hover .ext { opacity: 1; }
.document-wrapper .dateline a { color: inherit; text-decoration: none; }
.document-wrapper .dateline a:hover, .document-wrapper .dateline a:focus-visible { color: var(--accent); }
/* Quotes: a quiet hairline rule, set a little in from the text */
.document-wrapper blockquote { padding-inline-start: 1.4em; margin-inline: 0; color: #666; }
.document-wrapper blockquote::before { left: 0; width: 2px; height: calc(100% + .6em); top: -.3em; background-color: #cfcbc4; border: 0; border-radius: 1px; }
.document-wrapper blockquote p { margin-bottom: .8em; }
.document-wrapper blockquote p:last-child { margin-bottom: 0; }
/* Footnotes (kramdown): small numbers in the text, a quiet list at the end with a way back */
.document-wrapper sup a.footnote { text-decoration: none; font-size: .78em; padding: 0 .12em; }
.document-wrapper .footnotes { margin-top: 2.4em; padding-top: .8em; border-top: 1px solid #e3e0da; font-size: .88em; color: #777; }
.document-wrapper .footnotes ol { padding-left: 1.4em; }
.document-wrapper .footnotes li { margin-bottom: .5em; }
.document-wrapper .footnotes a.reversefootnote { text-decoration: none; margin-left: .3em; }

/* ------------------------- LINKED POSTS, QUOTES, FOOTNOTES ------------------------- */
/* A post with `link:` in its front matter: the headline goes to the outside page (marked with an arrow), the date is the permalink to this site's own page. */
.document-wrapper h1.linked a, .document-wrapper h3.linked a { color: inherit; text-decoration: none; }
.document-wrapper h1.linked a:hover, .document-wrapper h1.linked a:focus-visible, .document-wrapper h3.linked a:hover, .document-wrapper h3.linked a:focus-visible { color: var(--accent); }
.document-wrapper .ext { font-size: .72em; font-weight: 500; margin-left: .3em; opacity: .75; position: relative; top: -.14em; }
.document-wrapper a:hover .ext { opacity: 1; }
.document-wrapper .dateline a { color: inherit; text-decoration: none; }
.document-wrapper .dateline a:hover, .document-wrapper .dateline a:focus-visible { color: var(--accent); }
.document-wrapper blockquote { padding-inline-start: 1.4em; margin-inline: 0; color: #666; }
.document-wrapper blockquote::before { left: 0; width: 2px; height: calc(100% + .6em); top: -.3em; background-color: #cfcbc4; border: 0; border-radius: 1px; }
.document-wrapper blockquote p { margin-bottom: .8em; }
.document-wrapper blockquote p:last-child { margin-bottom: 0; }
.document-wrapper sup a.footnote { text-decoration: none; font-size: .78em; padding: 0 .12em; }
.document-wrapper .footnotes { margin-top: 2.4em; padding-top: .8em; border-top: 1px solid #e3e0da; font-size: .88em; color: #777; }
.document-wrapper .footnotes ol { padding-left: 1.4em; }
.document-wrapper .footnotes li { margin-bottom: .5em; }
.document-wrapper .footnotes a.reversefootnote { text-decoration: none; margin-left: .3em; }
.document-wrapper .home-icon img { display: block; }

/* ------------------------- BLOG: NAV, HOME LIST, ARCHIVE ------------------------- */
.document-wrapper .site-nav { text-align: center; margin: .3em 0 2.6em; font-size: .86em; letter-spacing: .03em; }
.document-wrapper .site-nav a { color: #888; text-decoration: none; margin: 0 .85em; }
.document-wrapper .site-nav a:hover, .document-wrapper .site-nav a:focus-visible { color: var(--accent); }
.document-wrapper .site-nav a.current { color: #444; }
.document-wrapper .entry-post { margin-bottom: 3.4em; }
.document-wrapper .entry-post h3 { margin: 0 0 .5em; font-size: 1.5em; }
.document-wrapper .entry-post h3 a { color: inherit; text-decoration: none; }
.document-wrapper .entry-post h3 a:hover { color: var(--accent); }
.document-wrapper .entry-post .dateline { margin: 0 0 1.1em; }
.document-wrapper .archive-month { font-size: 1em; font-weight: 600; margin: 2em 0 .4em; color: #888; letter-spacing: .02em; }
.document-wrapper ul.archive-list { list-style: none; padding: 0; margin: 0 0 1em; }
.document-wrapper ul.archive-list li { margin: .35em 0; }
.document-wrapper .archive-day { display: inline-block; min-width: 3.6em; color: #999; font-variant-numeric: tabular-nums; }
.document-wrapper ul.archive-list a { color: inherit; text-decoration: none; }
.document-wrapper ul.archive-list a:hover { color: var(--accent); }

/* ------------------------- WARM THEME: MATCH THE MIC PAGE (hryb.org) ------------------------- */
/* Same wall colour, ink, light letterspaced type and red-on-hover accent as the microphone page, so blog and front page read as one site. Everything above is Jeff's neutral base; this block overrides the colours and type only, not the layout. */
:root {
  --wall: #EBE1D3;
  --ink: #1f1b17;
  --ink-soft: rgba(31, 27, 23, .72);
  --ink-mute: rgba(31, 27, 23, .66);
  --ink-faint: rgba(31, 27, 23, .38);
  --rule: rgba(31, 27, 23, .16);
  --wash: rgba(31, 27, 23, .06);
  --accent: #2F6B4F;
}
body { background-color: var(--wall); color: var(--ink); -webkit-font-smoothing: antialiased; }
.document-wrapper { color: var(--ink); }
.document-wrapper p, .document-wrapper li { color: var(--ink); }
/* Titles: light and a little open, like the name on the mic page */
.document-wrapper h1, .document-wrapper h2, .document-wrapper h3 { font-weight: 400; letter-spacing: .02em; }
.document-wrapper h1 { font-weight: 300; letter-spacing: .06em; }
.document-wrapper .entry-post h3 { font-weight: 400; }
/* Links: ink, with the accent only on hover (as on the mic page) */
.document-wrapper a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; transition: color .2s ease, text-decoration-color .2s ease; }
.document-wrapper a:hover, .document-wrapper a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }
.document-wrapper li::marker { color: var(--ink-faint); }
.document-wrapper h1.linked a, .document-wrapper h3.linked a, .document-wrapper .entry-post h3 a, .document-wrapper .dateline a, .document-wrapper ul.archive-list a, .document-wrapper .site-nav a, .document-wrapper #footer a, .document-wrapper .home-icon a, .document-wrapper a.footnote, .document-wrapper a.reversefootnote { text-decoration: none; }
/* Dates and small labels: lowercase, tracked, quiet */
.document-wrapper .dateline { color: var(--ink-mute); font-size: .86em; letter-spacing: .1em; text-transform: lowercase; }
.document-wrapper .dateline a { color: inherit; }
.document-wrapper .archive-month { color: var(--ink-mute); font-weight: 500; letter-spacing: .14em; text-transform: lowercase; font-size: .86em; }
.document-wrapper .archive-day { color: var(--ink-mute); }
.document-wrapper ul.archive-list a { color: var(--ink); }
/* Navigation */
.document-wrapper .site-nav { font-size: .8em; letter-spacing: .14em; text-transform: lowercase; }
.document-wrapper .site-nav a { color: var(--ink-mute); }
.document-wrapper .site-nav a.current { color: var(--ink); }
.document-wrapper .site-nav a:hover, .document-wrapper .site-nav a:focus-visible { color: var(--accent); }
/* Footer */
.document-wrapper #footer { color: var(--ink-mute); border-top: 1px solid var(--rule); letter-spacing: .04em; }
.document-wrapper #footer a { color: var(--ink-mute); }
.document-wrapper #footer a:hover { color: var(--accent); }
/* Rules, quotes, footnotes, tables, code */
.document-wrapper hr { border-top-color: var(--rule); }
.document-wrapper blockquote { color: var(--ink-soft); }
.document-wrapper blockquote::before { background-color: var(--ink-faint); }
.document-wrapper .footnotes { border-top-color: var(--rule); color: var(--ink-mute); }
.document-wrapper code { color: var(--ink); background-color: var(--wash); }
.document-wrapper table, .document-wrapper th, .document-wrapper td { border-color: var(--rule); }
.document-wrapper tr:nth-child(odd) { background-color: var(--wash); }
.document-wrapper .date { background-color: var(--wash); color: var(--ink-soft); }
::selection { background: var(--sel); }

/* ------------------------- LAYOUT: SIDEBAR + READING COLUMN ------------------------- */
/* Borrowed from Daring Fireball's structure: a quiet right-aligned sidebar (masthead + nav) beside one narrow reading column, whitespace doing the work. Under 1000px the sidebar becomes a header band and everything stacks. */
body { position: relative; display: flow-root; overflow-x: hidden; }
.document-wrapper { position: relative; z-index: 1; display: grid; grid-template-columns: 11.5em minmax(0, 1fr); grid-template-areas: "side main" "side foot"; column-gap: 4em; align-items: start; width: auto; max-width: 57em; margin: 0 auto; padding: 0 24px 3em; font-size: calc(17px * var(--fs, 1)); line-height: 1.68; }
.document-wrapper > #header { grid-area: side; text-align: right; margin: 0; padding: 10.6em 0 0; }
.document-wrapper > .content { grid-area: main; max-width: 38em; padding-top: 10.6em; }
.document-wrapper > #footer { grid-area: foot; max-width: 48.7em; }

/* Sidebar: mic hanging from the top edge, name, then the nav stacked and right-aligned */
@keyframes mic-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.document-wrapper .wordmark { display: block; margin: 1em 0 0; font-size: .95em; font-weight: 400; letter-spacing: .18em; line-height: 1.2; color: var(--ink); text-decoration: none; transition: color .2s ease; }
.document-wrapper .wordmark:hover, .document-wrapper .wordmark:focus-visible { color: var(--accent); }
.document-wrapper .site-nav { display: flex; flex-direction: column; align-items: flex-end; gap: .7em; margin: 2.2em 0 0; text-align: right; font-size: .74em; letter-spacing: .16em; text-transform: lowercase; }
.document-wrapper .site-nav a { margin: 0; }

/* Titles: light, open, lowercase like the rest of the house style. One headline per page. */
.document-wrapper h1 { font-size: 2.3em; font-weight: 300; letter-spacing: .035em; line-height: 1.2; padding-top: 0; margin: 0 0 .8em; }
.document-wrapper h2 { font-size: 1.5em; font-weight: 400; letter-spacing: .02em; line-height: 1.3; padding-top: .9em; margin-bottom: .5em; }
.document-wrapper h3 { font-size: 1.2em; font-weight: 500; padding-top: .6em; }
.document-wrapper strong, .document-wrapper b { font-weight: 600; }
.document-wrapper p { margin-bottom: 1.5em; }
.document-wrapper .dateline { display: block; margin: 0 0 .9em; font-size: .74em; letter-spacing: .16em; font-weight: 500; }
.document-wrapper h1 + .dateline { margin-top: -.4em; }

/* Writing list: titles are quiet underlined links; whitespace separates entries */
.document-wrapper .entry-post { margin: 0 0 4.6em; padding: 0; border: 0; }
.document-wrapper .entry-post h3 { font-size: 1.55em; font-weight: 400; letter-spacing: .03em; line-height: 1.28; padding-top: 0; margin: 0 0 .6em; }
.document-wrapper .entry-post h3 a { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .32em; }
.document-wrapper .entry-post h3 a:hover, .document-wrapper .entry-post h3 a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }

/* Images and media: soft corners, warm shadow */
.document-wrapper .content img { border-radius: 14px; box-shadow: 0 1px 2px var(--shadow-a), 0 22px 44px -18px var(--shadow-b); }
.document-wrapper iframe { border-radius: 14px; }
.document-wrapper em { color: var(--ink-soft); }

/* Footer */
.document-wrapper #footer { margin-top: 3em; padding-top: 1.6em; font-size: .78em; letter-spacing: .12em; text-transform: lowercase; text-align: left; }
.document-wrapper #footer .sep { margin: 0 .9em; opacity: .6; }

/* Entrance */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.document-wrapper .wordmark, .document-wrapper .site-nav, .document-wrapper > .content, .document-wrapper > #footer { opacity: 0; animation: rise .7s ease-out .12s forwards; }
.document-wrapper > .content { animation-delay: .2s; }
.document-wrapper > #footer { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .document-wrapper .wordmark, .document-wrapper .site-nav, .document-wrapper > .content, .document-wrapper > #footer, .mast-mic { opacity: 1; animation: none; } }

/* Tablet: the sidebar becomes a header band, mic hangs at the top right */
@media (max-width: 999px) {
  .document-wrapper { display: block; max-width: 44em; padding: 0 28px 3em; }
  .document-wrapper > #header { text-align: left; min-height: 9.5em; padding-top: 2.4em; margin-bottom: 1.6em; }
  .document-wrapper .wordmark { margin: 0; }
  .document-wrapper .site-nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: .5em 1.6em; margin-top: 1em; max-width: calc(100% - clamp(110px, 18vw, 170px)); text-align: left; }
  .document-wrapper > .content { max-width: none; padding-top: 0; }
  .document-wrapper > #footer { max-width: none; }
}
/* Phones */
@media (max-width: 560px) {
  .document-wrapper { margin: 0; padding: 0 22px 2.5em; }
  .document-wrapper > #header { padding-top: 2em; min-height: 8.2em; margin-bottom: 1.2em; }
  .document-wrapper .site-nav { max-width: calc(100% - 100px); gap: .45em 1em; letter-spacing: .11em; }
  .document-wrapper h1 { font-size: 1.95em; }
  .document-wrapper .entry-post { margin-bottom: 3.4em; }
  .document-wrapper .entry-post h3 { font-size: 1.4em; }
}


/* The mic: one place, one direction on every page, like the front page. Top right, hanging from the top edge and facing the text; only its size changes with the screen. It stays above the first line of content (the content starts below its height), so it never sits on text. */
.mast-mic { position: absolute; top: 0; right: clamp(22px, 3vw, 48px); width: clamp(88px, 14vw, 190px); height: auto; z-index: 0; pointer-events: none; user-select: none; opacity: 0; animation: mic-in 1s ease-out .15s forwards; }

/* Quote attribution (About page "kind words") */
.document-wrapper blockquote cite { display: block; font-style: normal; font-size: .8em; letter-spacing: .1em; text-transform: lowercase; color: var(--ink-mute); }
.document-wrapper blockquote + blockquote { margin-top: 2em; }
.document-wrapper .content h2 + ul, .document-wrapper .content h2 + blockquote { margin-top: .4em; }
.document-wrapper ul ul { margin: .4em 0 0; }
/* shown only in the private draft preview (published: false posts are never built for the live site) */
.draft-flag { margin-left: .6em; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .78em; letter-spacing: .08em; text-transform: lowercase; }

/* ------------------------- DAY HEADINGS ON THE HOME PAGE ------------------------- */
.document-wrapper .day { font-size: .74em; font-weight: 500; letter-spacing: .16em; text-transform: lowercase; color: var(--ink-mute); line-height: 1.4; padding: 0 0 .7em; margin: 0 0 2.2em; border-bottom: 1px solid var(--rule); }
.document-wrapper .content > .entry-post + .day { margin-top: 1.4em; }
.document-wrapper .entry-post + .entry-post { margin-top: -1.8em; }
.document-wrapper .entry-post .perma { margin-left: .5em; font-size: .62em; color: var(--ink-faint); text-decoration: none; letter-spacing: 0; vertical-align: .18em; }
.document-wrapper .entry-post .perma:hover, .document-wrapper .entry-post .perma:focus-visible { color: var(--accent); }

/* ------------------------- COLOUR TOKENS: LIGHT, DARK, AND THE SLOW BLEND BETWEEN THEM ------------------------- */
/* Every colour is registered as a typed property so the browser can blend it frame by frame. The blend only runs while html has .theme-anim (added for the moment of a switch), so page loads never animate. */
@property --wall { syntax: "<color>"; inherits: true; initial-value: #EBE1D3; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1f1b17; }
@property --ink-soft { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .72); }
@property --ink-mute { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .66); }
@property --ink-faint { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .38); }
@property --rule { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .16); }
@property --wash { syntax: "<color>"; inherits: true; initial-value: rgba(31, 27, 23, .06); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #2F6B4F; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #F6F0E6; }
@property --shadow-a { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .10); }
@property --shadow-b { syntax: "<color>"; inherits: true; initial-value: rgba(70, 52, 34, .34); }
@property --sel { syntax: "<color>"; inherits: true; initial-value: rgba(47, 107, 79, .2); }
@property --mic-b { syntax: "<number>"; inherits: true; initial-value: 1; }

:root { --panel: #F6F0E6; --shadow-a: rgba(70, 52, 34, .10); --shadow-b: rgba(70, 52, 34, .34); --sel: rgba(47, 107, 79, .2); --mic-b: 1; color-scheme: light; }
/* Dark: the same room at night. Warm charcoal wall, cream ink, a lighter green that still reads on it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #181410; --ink: #EDE5D9; --ink-soft: rgba(237, 229, 217, .76); --ink-mute: rgba(237, 229, 217, .58); --ink-faint: rgba(237, 229, 217, .38);
    --rule: rgba(237, 229, 217, .16); --wash: rgba(237, 229, 217, .06); --accent: #7CC5A0; --panel: #221D18;
    --shadow-a: rgba(0, 0, 0, .35); --shadow-b: rgba(0, 0, 0, .6); --sel: rgba(124, 197, 160, .3); --mic-b: .72; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #181410; --ink: #EDE5D9; --ink-soft: rgba(237, 229, 217, .76); --ink-mute: rgba(237, 229, 217, .58); --ink-faint: rgba(237, 229, 217, .38);
  --rule: rgba(237, 229, 217, .16); --wash: rgba(237, 229, 217, .06); --accent: #7CC5A0; --panel: #221D18;
  --shadow-a: rgba(0, 0, 0, .35); --shadow-b: rgba(0, 0, 0, .6); --sel: rgba(124, 197, 160, .3); --mic-b: .72; color-scheme: dark;
}
.mast-mic { filter: brightness(var(--mic-b, 1)); }
.document-wrapper .content img { filter: brightness(calc(.6 + var(--mic-b, 1) * .4)); }

/* The slow change: 2.6 seconds, gentle at both ends */
:root.theme-anim {
  transition: --wall 2.6s cubic-bezier(.45, .05, .25, 1), --ink 2.6s cubic-bezier(.45, .05, .25, 1), --ink-soft 2.6s cubic-bezier(.45, .05, .25, 1), --ink-mute 2.6s cubic-bezier(.45, .05, .25, 1),
    --ink-faint 2.6s cubic-bezier(.45, .05, .25, 1), --rule 2.6s cubic-bezier(.45, .05, .25, 1), --wash 2.6s cubic-bezier(.45, .05, .25, 1), --accent 2.6s cubic-bezier(.45, .05, .25, 1),
    --panel 2.6s cubic-bezier(.45, .05, .25, 1), --shadow-a 2.6s cubic-bezier(.45, .05, .25, 1), --shadow-b 2.6s cubic-bezier(.45, .05, .25, 1), --sel 2.6s cubic-bezier(.45, .05, .25, 1), --mic-b 2.6s cubic-bezier(.45, .05, .25, 1);
}

/* The horizon glow: warm light rises from the bottom edge for dark to light, and sinks away (dusk colours) for light to dark. It sits behind the text, over the wall. */
.dawn { position: fixed; top: -30%; left: 0; right: 0; height: 160%; z-index: 0; pointer-events: none; opacity: 0; will-change: opacity, transform; }
.dawn.rise { background: radial-gradient(ellipse 110% 39% at 50% 81.25%, rgba(255, 196, 120, .95) 0%, rgba(255, 152, 96, .7) 28%, rgba(255, 120, 90, .28) 52%, rgba(255, 120, 90, 0) 74%); animation: dawn-rise 2.6s cubic-bezier(.45, .05, .25, 1) forwards; }
.dawn.set { background: radial-gradient(ellipse 110% 39% at 50% 81.25%, rgba(255, 150, 96, .9) 0%, rgba(214, 92, 120, .62) 30%, rgba(96, 70, 150, .34) 54%, rgba(60, 50, 120, 0) 76%); animation: dawn-set 2.6s cubic-bezier(.45, .05, .25, 1) forwards; }
@keyframes dawn-rise { 0% { opacity: 0; transform: translateY(46%); } 38% { opacity: .85; transform: translateY(14%); } 70% { opacity: .5; transform: translateY(-6%); } 100% { opacity: 0; transform: translateY(-24%); } }
@keyframes dawn-set { 0% { opacity: 0; transform: translateY(-24%); } 34% { opacity: .75; transform: translateY(-2%); } 70% { opacity: .45; transform: translateY(20%); } 100% { opacity: 0; transform: translateY(48%); } }
@media (prefers-reduced-motion: reduce) { .dawn { display: none; } :root.theme-anim { transition: none; } }

/* ------------------------- TOOLS: THEME SWITCH + DISPLAY PREFERENCES ------------------------- */
.tools { display: none; position: relative; margin-top: 1.7em; gap: .3em; justify-content: flex-end; }
.js .tools { display: flex; }
.tool { appearance: none; border: 0; background: transparent; color: var(--ink-mute); width: 2.35em; height: 2.35em; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; transition: color .2s ease, background-color .2s ease; }
.tool:hover { color: var(--accent); background: var(--wash); }
.tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool[aria-expanded="true"] { color: var(--accent); background: var(--wash); }
.tool svg { width: 1.3em; height: 1.3em; display: block; overflow: visible; }
.tool .aa { font-size: .78em; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.tool .aa small { font-size: .78em; font-weight: 500; }

/* Sun to moon: the orb grows and a cut-out circle slides across it, the rays turn and fade. Same markup, driven only by the theme. */
.theme-toggle .orb, .theme-toggle .moon-cut, .theme-toggle .rays { transition: transform 1.3s cubic-bezier(.45, .05, .25, 1), opacity 1.3s cubic-bezier(.45, .05, .25, 1); transform-origin: 12px 12px; }
.theme-toggle .moon-cut { transform: translate(11px, -11px); }
.theme-toggle .rays { transform: rotate(0) scale(1); opacity: 1; }
:root[data-theme="dark"] .theme-toggle .orb { transform: scale(1.65); }
:root[data-theme="dark"] .theme-toggle .moon-cut { transform: translate(0, 0); }
:root[data-theme="dark"] .theme-toggle .rays { transform: rotate(90deg) scale(.4); opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .orb { transform: scale(1.65); }
  :root:not([data-theme="light"]) .theme-toggle .moon-cut { transform: translate(0, 0); }
  :root:not([data-theme="light"]) .theme-toggle .rays { transform: rotate(90deg) scale(.4); opacity: 0; }
}

.prefs { position: absolute; top: calc(100% + .6em); right: 0; z-index: 20; width: 19.5em; max-width: calc(100vw - 44px); padding: 1.15em 1.2em 1.1em; text-align: left; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 2px 4px var(--shadow-a), 0 24px 48px -16px var(--shadow-b); font-size: .8em; letter-spacing: .02em; text-transform: none; line-height: 1.4; transform-origin: top right; animation: prefs-in .22s ease-out; }
.prefs[hidden] { display: none; }
@keyframes prefs-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.prefs h2 { font-size: 1em; font-weight: 600; letter-spacing: .12em; text-transform: lowercase; padding: 0; margin: 0 0 1em; color: var(--ink-mute); }
.prefs .row { display: block; border: 0; padding: 0; margin: 0 0 1.05em; min-width: 0; }
.prefs legend, .prefs .lab { display: block; padding: 0; margin: 0 0 .45em; font-size: .86em; letter-spacing: .1em; text-transform: lowercase; color: var(--ink-mute); }
.prefs .seg { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; }
.prefs .seg button { flex: 1; appearance: none; border: 0; background: transparent; color: var(--ink-soft); font: inherit; padding: .42em .5em; border-radius: 999px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.prefs .seg button:hover { color: var(--accent); }
.prefs .seg button[aria-pressed="true"] { background: var(--accent); color: var(--wall); }
.prefs .seg button:focus-visible, .prefs .reset:focus-visible, .prefs input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prefs .sizes { display: flex; align-items: center; gap: .7em; }
.prefs .sizes .sm { font-size: .9em; } .prefs .sizes .lg { font-size: 1.35em; } .prefs .sizes span { color: var(--ink-mute); }
.prefs input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.prefs .seg button.serif-sample { font-family: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.prefs .reset { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: .86em; letter-spacing: .1em; text-transform: lowercase; color: var(--ink-mute); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; }
.prefs .reset:hover { color: var(--accent); }

/* Reading typeface (display preference): sans is the default; serif changes the writing, not the navigation */
:root[data-font="serif"] .document-wrapper .content { font-family: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
:root[data-font="serif"] .document-wrapper .content h1, :root[data-font="serif"] .document-wrapper .content h2, :root[data-font="serif"] .document-wrapper .content h3 { letter-spacing: .01em; }

@media (max-width: 999px) {
  .tools { justify-content: flex-start; max-width: calc(100% - clamp(110px, 18vw, 170px)); margin-top: 1em; margin-left: -.5em; }
  .prefs { right: auto; left: 0; transform-origin: top left; }
}

/* Tools stacked vertically (2026-11-16): theme switch on top, Aa below, in every layout */
.js .tools { flex-direction: column; align-items: flex-end; gap: .15em; }
@media (max-width: 999px) { .js .tools { align-items: flex-start; max-width: none; } }

/* Permalink mark on linked posts: a small chain link in the same thin outline as the link icon on larry.hryb.org (replaces the § sign) */
.document-wrapper .entry-post .perma { display: inline-block; margin-left: .6em; font-size: 1em; line-height: 0; vertical-align: .02em; color: var(--ink-faint); }
.document-wrapper .entry-post .perma svg { display: block; width: .62em; height: .62em; }
.document-wrapper .entry-post .perma:hover, .document-wrapper .entry-post .perma:focus-visible { color: var(--accent); }

/* Bluesky comments (comments.js). Quiet: hairline rules, the blog's own ink and accent, no boxes. */
#bsky-comments { margin: 3.2em 0 0; padding-top: 1.4em; border-top: 1px solid var(--rule); }
#bsky-comments[hidden] { display: none; }
.bc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.bc-title { font-size: .78em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0; }
.bc-stats { font-size: .78em; color: var(--ink-faint); }
.bc-intro { font-size: .86em; color: var(--ink-mute); margin: .5em 0 1.4em; }
.bc-join { color: var(--accent); text-decoration: none; font-weight: 500; }
.bc-join:hover, .bc-join:focus-visible { text-decoration: underline; }
.bc-list { list-style: none; margin: 0; padding: 0; }
.bc-reply { padding: .9em 0; border-top: 1px solid var(--rule); }
.bc-list > .bc-reply:first-child { border-top: 0; padding-top: 0; }
.bc-nested { margin: .6em 0 0 1.1em; padding-left: 1em; border-left: 1px solid var(--rule); }
.bc-nested .bc-reply { border-top: 0; padding: .55em 0; }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: .8em; }
.bc-who { display: inline-flex; align-items: center; gap: .55em; color: var(--ink); text-decoration: none; min-width: 0; }
.bc-avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover; background: var(--wash); }
.bc-avatar-none { display: inline-block; }
.bc-name { font-size: .9em; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-author { font-size: .68em; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 0 .4em; }
.bc-when { font-size: .78em; color: var(--ink-faint); text-decoration: none; white-space: nowrap; }
.bc-when:hover, .bc-who:hover .bc-name { color: var(--accent); }
.bc-text { margin: .35em 0 0 calc(26px + .55em); font-size: .95em; line-height: 1.5; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.bc-text a { color: var(--accent); }
.bc-likes { display: block; margin: .25em 0 0 calc(26px + .55em); font-size: .74em; color: var(--ink-faint); }
.bc-empty { font-size: .86em; color: var(--ink-faint); }
.bc-images { display: flex; gap: .4em; flex-wrap: wrap; margin: .5em 0 0 calc(26px + .55em); }
.bc-images img { display: block; height: 110px; max-width: 100%; border-radius: 6px; object-fit: cover; background: var(--wash); }
/* Comments must beat the article's own list and image rules (main.content ul/li/img). */
main.content #bsky-comments ul, main.content #bsky-comments li { list-style: none; margin-left: 0; padding-left: 0; }
main.content #bsky-comments ul::marker, main.content #bsky-comments li::marker { content: none; }
main.content #bsky-comments li::before { content: none; display: none; }
main.content #bsky-comments .bc-nested { margin: .6em 0 0 1.1em; padding-left: 1em; border-left: 1px solid var(--rule); }
main.content #bsky-comments img.bc-avatar { width: 26px; height: 26px; max-width: none; margin: 0; border-radius: 50%; box-shadow: none; object-fit: cover; }
main.content #bsky-comments .bc-images img { width: auto; height: 110px; max-width: 100%; margin: 0; box-shadow: none; }
main.content #bsky-comments .bc-text, main.content #bsky-comments .bc-likes { margin-left: calc(26px + .55em); }
main.content #bsky-comments .bc-text { margin-top: .35em; margin-bottom: 0; text-indent: 0; }
main.content #bsky-comments h2.bc-title { font-size: .78em; margin: 0; }
main.content #bsky-comments .bc-who, main.content #bsky-comments .bc-when { border-bottom: 0; text-decoration: none; }
main.content #bsky-comments p.bc-text, main.content #bsky-comments .bc-likes, main.content #bsky-comments .bc-images { display: block; }
main.content #bsky-comments .bc-images { display: flex; }
main.content #bsky-comments .bc-more { display: block; margin: .4em 0 0 calc(26px + .55em); font-size: .8em; color: var(--accent); text-decoration: none; }
main.content #bsky-comments .bc-link { display: block; margin: .35em 0 0 calc(26px + .55em); font-size: .82em; color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main.content #bsky-comments .bc-note { margin: 1.6em 0 0; padding-top: .9em; border-top: 1px solid var(--rule); font-size: .76em; line-height: 1.5; color: var(--ink-faint); }
main.content #bsky-comments .bc-sort { display: flex; gap: 1.1em; margin: 0 0 1.1em; }
main.content #bsky-comments .bc-sortbtn { all: unset; cursor: pointer; font-size: .74em; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: .2em; border-bottom: 1px solid transparent; }
main.content #bsky-comments .bc-sortbtn:hover { color: var(--ink-mute); }
main.content #bsky-comments .bc-sortbtn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
main.content #bsky-comments .bc-sortbtn:focus-visible, main.content #bsky-comments .bc-showmore:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
main.content #bsky-comments .bc-showmore { all: unset; cursor: pointer; display: block; margin: 1em 0 0; font-size: .84em; color: var(--accent); }
main.content #bsky-comments .bc-showmore[hidden] { display: none; }
/* "Liked by": small overlapping portraits, a hairline ring in the page colour, one quiet line of text */
main.content #bsky-comments .bc-liked { display: flex; align-items: center; gap: .7em; margin: -.3em 0 1.3em; }
main.content #bsky-comments .bc-liked[hidden], main.content #bsky-comments .bc-quotes[hidden] { display: none; }
main.content #bsky-comments .bc-faces { display: inline-flex; flex: none; }
main.content #bsky-comments .bc-face { display: inline-block; width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--wall); background: var(--wash); overflow: hidden; border: 0; }
main.content #bsky-comments .bc-face:first-child { margin-left: 0; }
main.content #bsky-comments .bc-face img { display: block; width: 22px; height: 22px; max-width: none; margin: 0; border-radius: 50%; box-shadow: none; object-fit: cover; filter: none; }
main.content #bsky-comments .bc-face-none { display: block; width: 22px; height: 22px; }
main.content #bsky-comments .bc-liked-text { font-size: .78em; color: var(--ink-mute); line-height: 1.35; }
main.content #bsky-comments .bc-quotes { margin: 2em 0 0; }
main.content #bsky-comments h3.bc-subtitle { font-size: .74em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 1em; padding-top: 1.2em; border-top: 1px solid var(--rule); }
/* comment counts on the home page (own line under the post) and in the archive (after the title) */
.document-wrapper .cc-line { margin: .3em 0 0; font-size: .8em; }
.document-wrapper .cc-line:has(.cc[hidden]) { display: none; }
.document-wrapper .cc[hidden] { display: none; }
.document-wrapper .cc a { color: var(--ink-mute); text-decoration: none; }
.document-wrapper .cc a:hover, .document-wrapper .cc a:focus-visible { color: var(--accent); }
.document-wrapper .archive-list .cc { font-size: .82em; }
.document-wrapper .archive-list .cc::before { content: " \00b7  "; color: var(--ink-faint); }
.document-wrapper .archive-list .cc a, .document-wrapper .cc-line .cc a { color: var(--ink-mute); border-bottom: 0; text-decoration: none; }
.document-wrapper .archive-list .cc a:hover, .document-wrapper .cc-line .cc a:hover { color: var(--accent); }
/* per-comment Reply link, next to the date */
main.content #bsky-comments .bc-meta { display: inline-flex; align-items: baseline; gap: .7em; white-space: nowrap; }
main.content #bsky-comments .bc-replylink { font-size: .74em; letter-spacing: .06em; color: var(--ink-faint); text-decoration: none; border-bottom: 0; }
main.content #bsky-comments .bc-replylink:hover, main.content #bsky-comments .bc-replylink:focus-visible { color: var(--accent); }
main.content #bsky-comments .bc-outro { margin: 1.6em 0 0; }

/* Photo gallery (post front matter: gallery: [paths]). Peeking carousel, scale-and-fade, pill dots, tap for full screen. No library. */
.document-wrapper .gallery { width: 100%; margin: 2em 0 2.4em; }
.document-wrapper .gallery-track { display: flex; gap: 14px; overflow-x: auto; padding: 8px 9%; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.document-wrapper .gallery-track::-webkit-scrollbar { display: none; }
.document-wrapper .gallery-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 18px; }
.document-wrapper .gallery-slide { flex: 0 0 82%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--wash); box-shadow: 0 1px 2px var(--shadow-a), 0 24px 48px -20px var(--shadow-b); }
.document-wrapper .gallery-open { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; appearance: none; }
.document-wrapper .gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.document-wrapper .content .gallery-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; display: block; }
@supports (animation-timeline: view()) {
  .document-wrapper .gallery-slide { animation: gal-focus linear both; animation-timeline: view(inline); }
  @keyframes gal-focus { 0% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .5; } }
}
.document-wrapper .gallery-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.document-wrapper .gallery-dots { display: inline-flex; gap: 0; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--wash); }
.document-wrapper .gallery-dot { appearance: none; background: none; border: 0; margin: 0; padding: 0 3.5px; height: 32px; min-width: 24px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 999px; }
.document-wrapper .gallery-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.document-wrapper .gallery-dot:hover i { background: var(--ink-soft); }
.document-wrapper .gallery-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-faint); transition: width .3s ease, background-color .3s ease; }
.document-wrapper .gallery-dots i.on { width: 20px; background: var(--ink-soft); }
.document-wrapper .gallery-bar .gallery-prev, .document-wrapper .gallery-bar .gallery-next { appearance: none; background: var(--wash); border: 0; color: var(--ink-soft); border-radius: 999px; width: 2.2em; height: 2.2em; font: inherit; cursor: pointer; }
.document-wrapper .gallery-bar .gallery-prev:hover, .document-wrapper .gallery-bar .gallery-prev:focus-visible, .document-wrapper .gallery-bar .gallery-next:hover, .document-wrapper .gallery-bar .gallery-next:focus-visible { color: var(--accent); }
@media (hover: none) { .document-wrapper .gallery-bar .gallery-prev, .document-wrapper .gallery-bar .gallery-next { display: none; } }
@media (max-width: 544px) { .document-wrapper .gallery-slide { flex-basis: 86%; border-radius: 16px; } .document-wrapper .gallery-track { padding-inline: 7%; } }
@media (prefers-reduced-motion: no-preference) { .document-wrapper .gallery-track { scroll-behavior: smooth; } }
/* Mosaic style (gallery_style: mosaic): hero + tiles, 6-column grid */
.document-wrapper .gallery-mosaic .gallery-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; overflow: visible; padding: 0; scroll-snap-type: none; }
.document-wrapper .gallery-mosaic .gallery-slide { flex: none; scroll-snap-align: none; border-radius: 14px; animation: none; }
.document-wrapper .gallery-mosaic .gallery-slide.s6 { grid-column: span 6; aspect-ratio: 16 / 9; }
.document-wrapper .gallery-mosaic .gallery-slide.s3 { grid-column: span 3; aspect-ratio: 4 / 3; }
.document-wrapper .gallery-mosaic .gallery-slide.s2 { grid-column: span 2; aspect-ratio: 1 / 1; }
@media (prefers-reduced-motion: no-preference) { .document-wrapper .gallery-mosaic .gallery-slide img { transition: transform .5s cubic-bezier(.2,.7,.2,1); } .document-wrapper .gallery-mosaic .gallery-open:hover img { transform: scale(1.04); } }
@media (max-width: 544px) { .document-wrapper .gallery-mosaic .gallery-slide { border-radius: 10px; } .document-wrapper .gallery-mosaic .gallery-track { gap: 5px; } }
/* Full-screen viewer */
.gallery-lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: transparent; color: #fff; }
.gallery-lightbox::backdrop { background: rgba(10, 8, 6, .72); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
.gallery-lightbox img { position: absolute; inset: 0; margin: auto; max-width: 96vw; max-height: 92vh; max-height: 92dvh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gallery-lightbox button { position: absolute; appearance: none; border: 0; border-radius: 999px; width: 44px; height: 44px; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gallery-lightbox button:hover, .gallery-lightbox button:focus-visible { background: rgba(255,255,255,.3); }
.gallery-lightbox .lb-close { top: 16px; right: 16px; font-size: 26px; }
.gallery-lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (hover: none) { .gallery-lightbox .lb-prev, .gallery-lightbox .lb-next { display: none; } }

/* Accessibility: skip link and screen-reader-only text */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: .6em 1em; border-radius: 999px; background: var(--ink); color: var(--wall, #fff); text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
/* Touch targets: nav links are at least 24px tall without moving the layout */
.document-wrapper .site-nav a { display: inline-block; padding: 3px 0; margin: -3px 0; }

/* "# # #" end mark after every post (Larry 2026-11-18) */
.document-wrapper .content p.endmark { text-align: center; margin: 2.2em 0 0; color: var(--ink-mute); letter-spacing: .15em; word-spacing: .2em; }

/* "Images at the top" row (CMS field top_images, Larry 2026-11-18): side by side, all the same 5:8 size */
.document-wrapper .content .top-images { display: flex; gap: 3%; align-items: flex-start; margin: 0 0 24px; }
.document-wrapper .content .top-images > a, .document-wrapper .content .top-images > span { flex: 1 1 0; min-width: 0; display: block; }
.document-wrapper .content .top-images img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; }

/* 404 page: dial-up "NO CARRIER" terminal (Larry 2026-11-18) */
.document-wrapper .content .nc-term { font-family: "Menlo", ui-monospace, "SF Mono", Consolas, monospace; font-size: .82em; line-height: 1.75; color: var(--ink); background: var(--wash); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 22px; margin: 0 0 1.8em; overflow-wrap: anywhere; }
.document-wrapper .content .nc-dim { color: var(--ink-mute); }
.document-wrapper .content .nc-hang { color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.document-wrapper .content .nc-cursor { display: inline-block; width: .6em; height: 1.05em; margin-left: .35em; vertical-align: -.15em; background: var(--accent); animation: nc-blink 1.1s steps(1) infinite; }
@keyframes nc-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .document-wrapper .content .nc-cursor { animation: none; } }
.document-wrapper .content .nc-achievement { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--rule); font-size: .82em; letter-spacing: .02em; color: var(--ink-soft); }
.document-wrapper .content .nc-trophy { color: var(--accent); margin-right: .35em; }

/* Post hero image (front matter `hero:`), 2026-11-19. Wide 16:9 image under the title; credit line under it. */
.document-wrapper .content .post-hero { margin: 6px 0 30px; }
.document-wrapper .content .post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.document-wrapper .content .post-hero figcaption { margin-top: 10px; font-size: .78em; letter-spacing: .02em; color: var(--ink-mute); text-align: right; }
.document-wrapper .content .post-hero figcaption a { color: inherit; }

/* Wider photos on desktop, 2026-11-19. The text column stays 38em (about 73 characters a line). The hero and full-width photos stretch into the empty space right of the text, keeping about 84px clear of the window edge, at most 15em extra. Photos never get bigger than their real size unless they were already filling the column. Only with the sidebar layout (1000px and up); phones and tablets are unchanged. Rollback: delete this block. */
@media (min-width: 1000px) {
  .document-wrapper > .content { --bleed: min(15em, max(0px, (100vw - 57em) / 2 + 3.5em - 108px)); }
  .document-wrapper > .content .post-hero { width: calc(100% + var(--bleed)); }
  .document-wrapper > .content > p > img:not([src*="#"]), .document-wrapper > .content > p > a > img:not([src*="#"]) { width: auto; height: auto; min-width: 100%; max-width: calc(100% + var(--bleed)); }
}

/* "Mentioned in this post" Amazon box (_includes/gear.html), 2026-11-19. Quiet: hairlines, small label, no prices/photos. Rollback: delete this block + the include in post.html. */
.document-wrapper .gear { margin: 2.6em 0 2.4em; padding: 1.3em 0 1.1em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.document-wrapper .gear .gear-label { display: block; margin: 0 0 1em; font-size: .74em; font-weight: 500; letter-spacing: .16em; text-transform: lowercase; color: var(--ink-mute); }
.document-wrapper .gear ul { list-style: none; margin: 0; padding: 0; }
.document-wrapper .gear li { display: flex; align-items: baseline; gap: 1em; margin: 0 0 .85em; padding: 0; }
.document-wrapper .gear li::marker { content: none; }
.document-wrapper .gear .gear-name { flex: 1; color: var(--ink); }
.document-wrapper .gear .gear-name small { display: block; margin-top: .15em; font-size: .84em; line-height: 1.5; color: var(--ink-mute); }
.document-wrapper .gear .gear-shop { white-space: nowrap; font-size: .78em; letter-spacing: .08em; text-transform: lowercase; }
.document-wrapper .gear .gear-note { margin: .6em 0 0; font-size: .58em; letter-spacing: .02em; color: var(--ink-faint); }
/* Affiliate disclosure line at the bottom of posts with Amazon links (_includes/affiliate-note.html), 2026-11-19. */
.document-wrapper .affiliate-note { margin: 2.4em 0 0; padding-top: 1em; border-top: 1px solid var(--rule); font-size: .58em; letter-spacing: .02em; line-height: 1.6; color: var(--ink-faint); }
/* "Resources" section made friendlier (2026-11-19): group labels become little chips, links become tiles that lift on hover. CSS only: works on any post with an H2 id="resources". Rollback: delete this block. */
.document-wrapper #resources ~ p:has(> strong:only-child) { margin: 1.8em 0 .7em; }
.document-wrapper #resources ~ p > strong:only-child { display: inline-block; padding: .28em .8em; border-radius: 999px; background: var(--wash); color: var(--accent); font-size: .74em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.document-wrapper #resources ~ ul { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: .6em; }
.document-wrapper #resources ~ ul > li { margin: 0; padding: .75em .95em; border: 1px solid var(--rule); border-radius: 12px; font-size: .86em; line-height: 1.45; color: var(--ink-mute); transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.document-wrapper #resources ~ ul > li::marker { content: none; }
.document-wrapper #resources ~ ul > li > a:first-child { display: block; font-weight: 500; font-size: 1.08em; color: var(--ink); text-decoration: none; }
.document-wrapper #resources ~ ul > li > a:first-child::after { content: "\00a0\2197"; color: var(--accent); }
.document-wrapper #resources ~ ul > li:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--wash); }
@media (prefers-reduced-motion: reduce) { .document-wrapper #resources ~ ul > li { transition: none; } .document-wrapper #resources ~ ul > li:hover { transform: none; } }
/* "Updated" line under a post's date (front matter last_modified_at + update_note), 2026-11-19. Rollback: delete this block + the line in _layouts/post.html. */
.document-wrapper .dateline-updated { margin-top: -.55em; color: var(--accent); }
.document-wrapper .dateline-updated time { color: inherit; }
.document-wrapper .dateline-updated .update-note { text-transform: none; letter-spacing: .04em; }
/* "Mentioned in this post": the item name is the link (no separate "on amazon" link), 2026-11-19. Rollback: git revert, or restore _includes/gear.html from backup-resources-style-20261119/. */
.document-wrapper .gear .gear-name > a { color: var(--ink); text-decoration: none; }
.document-wrapper .gear .gear-name > a .ext { margin-left: .35em; font-size: .78em; color: var(--ink-faint); }
.document-wrapper .gear .gear-name > a:hover, .document-wrapper .gear .gear-name > a:focus-visible { color: var(--accent); }
.document-wrapper .gear .gear-name > a:hover .ext, .document-wrapper .gear .gear-name > a:focus-visible .ext { color: var(--accent); }

/* Desktop: sit the page toward the left instead of dead centre, 2026-11-20 (Larry: "SO MUCH SPACE" on full screen). Sidebar + text column keep their sizes; the left margin grows gently with the window (24px to 4vw, max 90px) and the rest of the width goes to the right. The wide-photo bleed is recomputed for the new right margin. Only 1000px and up; tablets and phones unchanged. Rollback: delete this block (backup: claude-recovery/backup-left-align-20261120/). */
@media (min-width: 1000px) {
  .document-wrapper { --ml: clamp(24px, 4vw, 90px); margin-left: var(--ml); margin-right: auto; }
  .document-wrapper > .content { --bleed: min(15em, max(0px, (100vw - 57em - var(--ml)) + 3.5em - 108px)); }
}

/* Home page: embedded players wait for a tap (see _plugins/img-perf.rb) */
.embed-load { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel, var(--wash)); color: var(--ink); font: inherit; cursor: pointer; }
.embed-load:hover, .embed-load:focus-visible { border-color: var(--accent); }

/* Images with width/height attributes (added by _plugins/img-perf.rb) must keep their shape when the window narrows: height follows the width. */
.document-wrapper .content p img, .document-wrapper .content figure > img { height: auto; }
