/* Writing: the list of writings, and a writing's page. One column, so the list and the text share a left edge. */
:root { --col: 760px; }
main { max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px, 9vh, 110px) var(--pad) 0; }
h2, h3, h4 { margin: 0; font: inherit; }

/* list */
#writings { padding-bottom: 12vh; }
#writings section + section { margin-top: 34px; }
.year { color: var(--dim); margin-bottom: 6px; }
.writings a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 5px 0; }
.writings time { color: var(--dim); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.writings a:hover .t { text-decoration-line: underline; text-underline-offset: 4px; }
#empty { color: var(--dim); }

/* writing */
.intro { padding-bottom: clamp(28px, 5vh, 56px); }
.intro h1 { font-size: 28px; line-height: 34px; text-wrap: balance; }
.intro .meta { margin-top: 6px; color: var(--dim); }
.intro .meta:empty { display: none; }
.prose { font-size: 18px; line-height: 29px; overflow-wrap: break-word; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 22px; line-height: 28px; margin-top: 2.2em; }
.prose h3 { font-style: italic; margin-top: 1.8em; }
.prose strong, .prose b { font-weight: 600; }
.prose li + li { margin-top: .3em; }
.prose figure { margin: 2em 0; }
.prose :is(img, video, iframe) { display: block; max-width: 100%; height: auto; border: 0; background: var(--blank); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; }
.prose figcaption { margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--dim); }
.prose code { font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose :not(pre) > code { padding: 1px 4px; background: rgba(0, 0, 0, .06); }
.prose pre { overflow-x: auto; padding: 14px 16px; background: rgba(0, 0, 0, .05); }
.prose hr { border: 0; border-top: 1px solid rgba(0, 0, 0, .15); margin: 2.4em 0; }
.prose table { border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prose th, .prose td { padding: 4px 12px 4px 0; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.prose th { font-weight: 600; }

.pager { display: flex; justify-content: space-between; gap: 20px; padding: 12vh 0 8vh; color: var(--dim); }
.pager a:hover { color: var(--fg); }
.pager a, .pager span { flex: 1; }
.pager > :nth-child(2) { text-align: center; }
.pager > :last-child { text-align: right; }

@media (max-width: 640px) {
  .intro h1 { font-size: 24px; line-height: 30px; }
  .prose { font-size: 17px; line-height: 27px; }
}
