:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #332d23;
  --muted: #706a5f;
  --line: #e6e2dc;
  --primary: #ffb000;
  --primary-hover: #f09e00;
  --accent: #d99a19;
  --color-wash: #ffedb3;
  --tone-ink: #735015;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--tone-ink); outline-offset: 6px; }
button { font-family: inherit; }
.shell { width: min(100% - 80px, 1040px); margin: auto; }
.header { display: flex; align-items: center; padding: 32px 0 24px; }
.brand { display: inline-flex; text-decoration: none; border-radius: 4px; }
.mark { display: block; width: 48px; height: 48px; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.4; margin: 0; font-weight: 600; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--paper); padding: 8px; z-index: 2; }
.skip:focus { top: 8px; }
.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; }
.footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 23px 0 30px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .75rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Work links retain alternating cover positions, starting with Hi. */
.catalog { padding-top: 12px; }
.catalog-home { min-height: calc(100svh - 235px); }
.content-list { list-style: none; padding: 0; margin: 0; }
.content-list > li + li { border-top: 1px solid var(--line); }
.content-row { --cover-width: 280px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy"; align-items: center; gap: 36px; padding: 28px 0; text-decoration: none; border-radius: 4px; }
.content-row.has-cover { grid-template-columns: minmax(0, var(--cover-width)) minmax(0, 1fr); grid-template-areas: "cover copy"; }
.content-list > li:nth-child(even) > .content-row.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, var(--cover-width)); grid-template-areas: "copy cover"; }
.content-cover { grid-area: cover; display: flex; align-items: center; justify-content: center; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 10px; }
.content-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.content-copy { grid-area: copy; min-width: 0; }
.content-copy h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.45; margin: 0 0 12px; overflow-wrap: anywhere; }
.content-copy p { max-width: 36em; font-size: 1rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.content-row:hover h2 { color: var(--tone-ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Document reading. */
.article { max-width: 720px; margin: 48px auto 0; min-height: 380px; }
.article > h1 { margin-bottom: 16px; }
.article > p { color: var(--muted); }
.back { font-size: .9rem; text-decoration: none; color: var(--muted); }
.article-header { margin: 36px 0; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: 12px; }
.lead { font-size: 1.08rem; color: var(--muted); margin-top: 16px; }
.prose { font-size: 1.05rem; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .8em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .7em; }
.prose a { color: var(--tone-ink); }
.prose pre { padding: 20px; overflow: auto; background: var(--color-wash); border-radius: 6px; font-size: .9rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.prose :not(pre) > code { background: var(--color-wash); padding: 2px 5px; border-radius: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 0 20px; color: var(--muted); }
.prose table { display: block; overflow: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 14px; }
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header { padding: 24px 0 16px; }
  .mark { width: 42px; height: 42px; }
  .catalog { padding-top: 4px; }
  .content-row { --cover-width: 180px; gap: 24px; padding: 24px 0; }
  .content-copy h2 { font-size: 1.25rem; margin-bottom: 8px; }
  .content-copy p { font-size: .9rem; }
  .footer { margin-top: 36px; }
}
@media (max-width: 600px) {
  .content-row { --cover-width: 112px; gap: 18px; padding: 22px 0; }
  .content-cover { aspect-ratio: 1; border-radius: 7px; }
  .content-copy h2 { font-size: 1.05rem; margin-bottom: 6px; }
  .content-copy p { font-size: .825rem; line-height: 1.65; }
  .article { margin-top: 30px; }
  .article-header { margin: 28px 0; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .content-row { --cover-width: 96px; gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s; }
}
