:root {
  --paper: #f7f3e9;
  --paper-deep: #ece5d5;
  --ink: #1e2528;
  --muted: #687073;
  --line: #c8c0ad;
  --accent: #c74a35;
  --accent-pale: #f3d8cc;
  --leaf: #4f6556;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page: min(1120px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image: radial-gradient(rgba(30,37,40,.16) .45px, transparent .7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  z-index: 5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--accent); }
button { font: inherit; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .55rem .8rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header, .page-footer { width: var(--page); margin-inline: auto; }
.site-header {
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 6.4rem;
  gap: 1rem;
}
.wordmark { font: 700 clamp(1.15rem, 2vw, 1.45rem)/1 var(--serif); letter-spacing: -.04em; text-decoration: none; }
.wordmark em { color: var(--accent); font-style: normal; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; gap: clamp(.85rem, 2vw, 1.8rem); align-items: center; justify-content: center; }
.nav a { color: var(--muted); font-size: .75rem; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.theme-toggle { justify-self: end; width: 2.2rem; height: 2.2rem; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

main { width: var(--page); margin-inline: auto; }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.display { margin: 0; font: 400 clamp(3.1rem, 8vw, 7.7rem)/.88 var(--serif); letter-spacing: -.07em; }
.lede { margin: 1.5rem 0 0; max-width: 39rem; color: var(--muted); font: 400 clamp(1.1rem, 2vw, 1.35rem)/1.45 var(--serif); }
.rule-label { display: flex; gap: .75rem; align-items: center; margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rule-label::after { content: ''; height: 1px; background: var(--ink); flex: 1; }

.home-hero { padding: clamp(4.5rem, 10vw, 8.8rem) 0 4.7rem; position: relative; }
.home-hero::after { content: '✳'; position: absolute; right: 7%; bottom: 3.7rem; color: var(--accent); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; transform: rotate(13deg); }
.home-hero .display { max-width: 900px; }
.home-hero .display span { color: var(--accent); display: inline-block; transform: rotate(-2deg); }
.intro-note { margin-top: 3rem; max-width: 27rem; padding: 1.2rem 1.35rem; background: var(--accent-pale); transform: rotate(-1.1deg); font: 400 1.05rem/1.4 var(--serif); }
.intro-note strong { display: block; margin-bottom: .3rem; font: 700 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; }

.section { padding: 4.8rem 0; border-top: 1px solid var(--ink); }
.section-title-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 1.2rem; }
.section-heading { margin: 0; font: 400 clamp(2rem, 4vw, 3.1rem)/1 var(--serif); letter-spacing: -.045em; }
.quiet-link { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: minmax(4.5rem, .45fr) minmax(0, 3.5fr) auto; gap: 1.4rem; align-items: center; padding: 1.55rem 0; text-decoration: none; }
.post-card:hover { color: var(--ink); }
.post-card:hover .post-title { color: var(--accent); }
.post-number { color: var(--accent); font: 400 1.1rem var(--serif); }
.post-title { margin: 0; font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.03 var(--serif); letter-spacing: -.04em; transition: color .15s; }
.post-summary { grid-column: 2; color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }
.post-meta { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.post-card .post-meta { grid-column: 3; grid-row: 1 / 3; }

.likes-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.like-preview { min-height: 16rem; padding: 1.5rem; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.like-preview:hover { color: var(--ink); background: #fbf8f0; }
.like-preview:first-child { background: var(--leaf); color: #f6f0e3; }
.like-type { color: var(--accent); font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.like-preview:first-child .like-type { color: #efd4a4; }
.like-preview h3 { margin: 2rem 0 0; font: 400 clamp(1.35rem, 2.2vw, 1.85rem)/1.03 var(--serif); letter-spacing: -.04em; }
.like-preview p { margin: 1rem 0 0; font: 400 1rem/1.4 var(--serif); }
.like-source { margin-top: 1rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3.4rem; }
.page-hero .display { max-width: 770px; }
.archive-list { border-top: 1px solid var(--ink); }
.archive-item { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.archive-date { color: var(--muted); font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; padding-top: .3rem; }
.archive-item h2 { margin: 0; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.02 var(--serif); letter-spacing: -.04em; }
.archive-item p { color: var(--muted); margin: .7rem 0 0; max-width: 43rem; }
.archive-item a { text-decoration: none; }
.archive-item a:hover h2 { color: var(--accent); }

.article-header { padding: clamp(3.4rem, 8vw, 6.8rem) 0 3.4rem; border-bottom: 1px solid var(--ink); }
.article-header h1 { margin: 0; max-width: 920px; font: 400 clamp(3rem, 7vw, 6.7rem)/.91 var(--serif); letter-spacing: -.065em; }
.article-deck { margin: 1.5rem 0 0; max-width: 37rem; color: var(--muted); font: 400 clamp(1.15rem, 2.2vw, 1.45rem)/1.38 var(--serif); }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 2rem; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.article-content { max-width: 700px; padding: 3.7rem 0 5.8rem; }
.article-content p { margin: 0 0 1.5rem; font: 400 clamp(1.1rem, 2vw, 1.28rem)/1.68 var(--serif); }
.article-content p:first-child::first-letter { color: var(--accent); float: left; font-size: 5.5rem; line-height: .72; padding: .1rem .55rem 0 0; }
.article-content h2 { margin: 3rem 0 1rem; font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--serif); letter-spacing: -.045em; }
.article-content blockquote { margin: 2.5rem 0; padding: .5rem 0 .5rem 1.4rem; border-left: 3px solid var(--accent); font: 400 clamp(1.45rem, 3vw, 2rem)/1.16 var(--serif); letter-spacing: -.035em; }
.article-footer { border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--muted); font-size: .85rem; }
.article-footer a { color: var(--ink); }

.like-wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; padding-bottom: 5rem; }
.like-card { grid-column: span 4; min-height: 17rem; padding: 1.5rem; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.like-card:nth-child(3n + 1) { background: var(--leaf); color: #f6f0e3; border-color: var(--leaf); }
.like-card:nth-child(3n + 2) { background: var(--accent-pale); }
.like-card:nth-child(5) { grid-column: span 8; }
.like-card h2 { margin: 1.7rem 0 0; font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.03 var(--serif); letter-spacing: -.04em; }
.like-card p { font: 400 1.08rem/1.45 var(--serif); max-width: 40rem; }
.like-card a { text-decoration: none; }
.like-card a:hover { color: var(--accent); }

.page-footer { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.8rem 0 2.5rem; border-top: 1px solid var(--ink); color: var(--muted); font-size: .75rem; }
.page-footer a { color: var(--ink); }

body.dark { --paper: #1e2528; --paper-deep: #293235; --ink: #f7f3e9; --muted: #bcc1ba; --line: #526064; --accent: #f07a62; --accent-pale: #513a38; --leaf: #455b4b; }
body.dark::before { mix-blend-mode: screen; opacity: .12; }
body.dark .like-preview:hover { background: #293235; }

@media (max-width: 700px) {
  :root { --page: min(100% - 2rem, 1120px); }
  .site-header { grid-template-columns: 1fr auto; padding: .8rem 0; min-height: auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-top: .5rem; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .home-hero { padding-top: 4rem; }
  .post-card { grid-template-columns: 2.8rem 1fr; gap: .8rem; }
  .post-summary { grid-column: 2; }
  .post-card .post-meta { grid-column: 2; grid-row: auto; }
  .likes-grid { grid-template-columns: 1fr; }
  .like-preview { min-height: 12rem; }
  .archive-item { grid-template-columns: 1fr; gap: .45rem; padding: 1.5rem 0; }
  .article-content { padding-top: 2.8rem; }
  .like-wall { display: block; }
  .like-card, .like-card:nth-child(5) { min-height: 14rem; margin-bottom: 1rem; }
  .page-footer { display: block; }
  .page-footer p + p { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
