:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #252421;
  --muted: #66625d;
  --line: #e6e2dd;
  --link: #8b3d2b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.page { width: min(1060px, calc(100% - 64px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 0 24px; border-bottom: 1px solid var(--ink); }
.wordmark { color: var(--ink); font-size: 25px; line-height: 1.2; font-weight: 750; text-decoration: none; letter-spacing: -.8px; }
.wordmark span { color: var(--link); }
.site-identity p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-header nav a:hover, .site-header nav a[aria-current=page] { color: var(--ink); text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 34px; letter-spacing: -.9px; margin: 0; }
.journal-heading { padding: 32px 0 26px; }
.journal-heading h1 { font-size: 30px; }
.journal-heading p, .page-heading p { color: var(--muted); font-size: 14px; margin: 7px 0 0; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 700px) minmax(170px, 1fr); gap: 76px; align-items: start; }
.journal { min-width: 0; padding-bottom: 32px; }
.journal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 25px; }
.filters button { color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 0 12px; font-size: 14px; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed=true] { color: var(--link); border-bottom-color: var(--link); font-weight: 700; }
.post-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.day-heading { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; padding: 0; margin: 30px 0 23px; }
.day-group:not([hidden]) ~ .day-group:not([hidden]) { border-top: 1px solid var(--ink); }
.feed-post { min-width: 0; padding-bottom: 34px; }
.feed-post + .feed-post { border-top: 1px solid var(--line); padding-top: 30px; }
.post-kind { font-size: 11px; text-transform: uppercase; letter-spacing: 1.15px; color: var(--muted); margin: 0 0 7px; }
.post-header h3 { font-size: 28px; letter-spacing: -.6px; margin: 0 0 21px; }
.post-header h3 a { color: var(--ink); text-decoration: none; }
.post-header h3 a:hover { color: var(--link); text-decoration: underline; }
.prose { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.prose p { margin: 0 0 19px; }
.prose p:last-child { margin-bottom: 0; }
.post-permalink { display: flex; gap: 16px; align-items: center; margin: 19px 0 0; font-size: 12px; }
.post-permalink a { text-decoration: none; }
.post-permalink a:hover { text-decoration: underline; }
.post-permalink > span { color: var(--muted); }
.entry-figure { margin: 0 0 22px; }
.photo-link { display: block; width: fit-content; max-width: 100%; }
.photo-link img { width: auto; max-width: 100%; max-height: 620px; object-fit: contain; }
.screenshot-figure .photo-link { width: 100%; }
.screenshot-figure .photo-link img { width: 100%; max-height: none; border: 1px solid var(--line); }
.entry-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 11px; }
.expand-link { white-space: nowrap; }
.photo-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.photo-collage .entry-figure { min-width: 0; margin: 0; }
.photo-collage .photo-link { display: flex; align-items: center; width: 100%; aspect-ratio: 9 / 16; }
.photo-collage .photo-link img { width: 100%; max-height: 100%; object-fit: contain; }
.photo-collage figcaption { display: block; }
.photo-collage figcaption > span { display: block; margin-bottom: 5px; }
.sidebar { color: var(--muted); font-size: 13px; padding-top: 9px; }
.sidebar section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 29px; }
.sidebar section:first-child { padding-top: 0; border: 0; margin-top: 0; }
.sidebar h2 { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; font-weight: 700; color: var(--ink); margin: 0 0 15px; }
.sidebar p { margin: 0 0 10px; }
.sidebar a { text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.sidebar ul { padding: 0; list-style: none; margin: 0 0 12px; }
.sidebar li { display: flex; justify-content: space-between; gap: 15px; }
.all-archive { font-size: 12px; }
.empty-state { color: var(--muted); padding: 30px 0 60px; }
.site-footer { border-top: 1px solid var(--ink); padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; }
.footer-title { color: var(--muted); text-decoration: none; }
.entry, .about-page, .archive-page { max-width: 700px; padding: 32px 0 64px; }
.back-link { font-size: 13px; text-decoration: none; }
.entry-header { margin: 29px 0 26px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.eyebrow > span { padding: 0 8px; }
.entry h1 { font-size: 36px; }
.entry-end { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 40px; font-size: 14px; }
.entry-end a { max-width: 48%; text-decoration: none; }
.entry-end a:hover { text-decoration: underline; }
.entry-end a > span:first-child { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }
.about-page .prose { margin: 26px 0; }
.text-link { font-size: 14px; }
.page-heading { margin-bottom: 38px; }
.archive-month { scroll-margin-top: 25px; margin: 0 0 40px; }
.archive-month h2 { font-size: 17px; margin: 0 0 16px; }
.archive-month ul { list-style: none; margin: 0; padding: 0; }
.archive-month li { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding: 14px 0; }
.archive-month li time, .archive-month li > span { color: var(--muted); font-size: 12px; }
.archive-month li a { color: var(--ink); text-decoration: none; }
.archive-month li a:hover { text-decoration: underline; color: var(--link); }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; margin: 0; padding: 20px 24px; background: #101010; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; gap: 18px; }
.lightbox::backdrop { background: #101010; }
.lightbox-bar, .lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; flex: none; }
.close-lightbox { border: 1px solid #8c8c8c; background: transparent; color: #fff; padding: 8px 16px; font-size: 14px; }
.lightbox a { color: #fff; }
.lightbox a:focus-visible, .lightbox button:focus-visible { outline-color: #fff; }
.lightbox-stage { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-bottom p { margin: 0; }
.original-link { white-space: nowrap; }
body.viewer-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 12px; background: var(--ink); color: #fff; z-index: 10; }
.skip-link:focus { top: 10px; }
@media (max-width: 900px) {
  .reading-layout { grid-template-columns: minmax(0,1fr) 180px; gap: 40px; }
}
@media (max-width: 700px) {
  .page { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 25px 0 14px; }
  .wordmark { font-size: 25px; }
  .site-header nav { gap: 26px; font-size: 13px; }
  .journal-heading { padding: 25px 0 17px; }
  .journal-heading h1 { font-size: 25px; }
  .reading-layout { display: block; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 25px 0 30px; }
  .sidebar section { margin: 0; padding: 0; border: 0; }
  .sidebar section:first-child { display: none; }
  .filters { gap: 22px; }
  .filters button { font-size: 13px; }
  .journal-toolbar { gap: 12px; }
  .day-heading { margin: 25px 0 20px; font-size: 11px; }
  .post-header h3 { font-size: 26px; margin-bottom: 18px; }
  .prose { font-size: 16px; line-height: 1.8; }
  .entry h1 { font-size: 30px; }
  .entry-figure figcaption { gap: 12px; font-size: 11px; }
  .photo-link img { max-height: 70vh; }
  .entry, .about-page, .archive-page { padding: 25px 0 45px; }
  .archive-month li { gap: 10px; grid-template-columns: 22px minmax(0,1fr); }
  .archive-month li > span { grid-column: 2; }
  .lightbox { padding: 15px; }
  .lightbox-bottom { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Invitation artwork is the complete post and opens the hosted application. */
.invitation-link { display: block; width: 100%; max-width: 680px; }
.invitation-link img { display: block; width: 100%; height: auto; }
.invitation-link:focus-visible { outline: 3px solid var(--accent, #9c452b); outline-offset: 5px; }

/* Opt-in square text wrap; narrow screens keep the image in reading order. */
.text-wrap { display: flow-root; }
.text-wrap > .entry-figure { float: right; width: 210px; margin: 0 0 18px 26px; }
.text-wrap > .entry-figure figcaption { display: block; }
.text-wrap .expand-link { display: block; margin-top: 5px; }
@media (max-width: 540px) {
  .text-wrap > .entry-figure { float: none; width: min(100%, 300px); margin: 0 auto 24px; }
}
