:root {
  color-scheme: light;
  --paper: #f1efe7;
  --paper-raised: #f8f7f2;
  --ink: #1c2d4e;
  --muted: #667082;
  --rule: #c8c6bd;
  --accent: #9a5c43;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(100% - 2.5rem, 1360px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--ink); }
.wordmark { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 1.35rem; font-size: .8rem; }
.primary-nav a { text-decoration: none; }
.eyebrow { margin: 0 0 .7rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; }
h1 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(2.7rem, 7vw, 6.7rem); letter-spacing: -.06em; line-height: .94; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3.2rem); letter-spacing: -.035em; line-height: 1.04; }
h3 { font-size: 1.1rem; line-height: 1.3; }
.lede { max-width: 58ch; font: clamp(1.2rem, 2.15vw, 1.8rem)/1.4 var(--serif); }
.small-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: .78rem; }
.article-list { border-top: 1px solid var(--rule); }
.article-row { display: grid; grid-template-columns: 8rem minmax(14rem, 1fr) minmax(12rem, .65fr); gap: 1.3rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.article-row .date { color: var(--muted); font-size: .72rem; letter-spacing: .05em; }
.article-row h3 { margin: 0 0 .4rem; font-size: clamp(1.05rem, 1.7vw, 1.45rem); }
.article-row p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.tag { display: inline-block; margin-top: .55rem; padding: .24rem .45rem; border: 1px solid var(--rule); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.button-link { display: inline-block; padding: .7rem .9rem; border: 1px solid var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.button-link:hover { color: var(--paper); background: var(--ink); }
.site-footer { margin-top: 5rem; padding: 1.4rem 0 2.5rem; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.site-footer p { max-width: 65ch; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.prose { max-width: 72ch; font: 1.13rem/1.8 var(--serif); }
.prose p { margin-bottom: 1.4rem; }
.prose blockquote { margin: 2rem 0; padding-left: 1.2rem; border-left: 2px solid var(--accent); font-size: 1.35rem; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.profile-card { display: grid; grid-template-columns: 5.3rem 1fr; gap: 1rem; padding: 1rem; border: 1px solid var(--rule); background: var(--paper-raised); }
.profile-card h3 { margin: .1rem 0 .25rem; }
.profile-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.avatar { width: 5.3rem; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #d9d4c8; }
.avatar--square { border-radius: .25rem; }
.meta-line { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--muted); font-size: .75rem; }
.comments { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.comment p { margin: .35rem 0 0; font: 1rem/1.6 var(--serif); }
.comment time { color: var(--muted); font-size: .7rem; }
.notice { padding: .9rem 1rem; border-left: 3px solid var(--accent); background: #e9e5d9; color: #34425a; font-size: .78rem; line-height: 1.6; }
.empty-state { padding: 1.5rem; border: 1px dashed var(--rule); color: var(--muted); }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 1.4rem, 1360px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .primary-nav { gap: .7rem 1rem; }
  .article-row { grid-template-columns: 1fr; gap: .55rem; }
  .article-row > :last-child { display: none; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { flex-direction: column; }
}
@media (max-width: 480px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 4.3rem 1fr; }
  .profile-card .avatar { width: 4.3rem; }
}
