:root {
  --paper: #faf8f4;
  --ink: #2b2a28;
  --muted: #77736b;
  --line: #e7e2d8;
  --accent: #35679f;
  --warm: #e4c58a;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --display: "Corben", "EB Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1a18; --ink: #ebe6dc; --muted: #a39d92; --line: #34312c; --accent: #9dbbe0; --warm: #c9a764; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }

header.site, main, footer.site { width: min(680px, 100% - 40px); margin-inline: auto; }

/* header */
header.site { padding: 56px 0 8px; text-align: center; }
.brand { font: 32px/1.2 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
header.site nav { margin-top: 14px; display: flex; justify-content: center; gap: 28px; font: 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); border-color: var(--warm); }

/* home */
.intro { text-align: center; margin: 22px 0 48px; }
.tagline { margin: 0 auto 32px; max-width: 30em; color: var(--muted); font-style: italic; }
.hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.item { display: flex; gap: 24px; align-items: center; padding: 28px 0; color: inherit; text-decoration: none; }
.item .text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.item .title { font-size: 27px; line-height: 1.2; font-weight: 500; color: var(--ink); }
.item:hover .title { color: var(--accent); }
.item .excerpt { color: var(--muted); font-size: 18px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item img { flex: none; width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.meta { font: 12px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.none { padding: 40px 0; color: var(--muted); text-align: center; }

/* post */
.post header { text-align: center; margin: 36px 0 32px; }
.post h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.1; font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
.post.page header { margin-bottom: 28px; }
.cover { width: 100%; border-radius: 4px; margin: 0 0 36px; }
.body > * { margin: 0 0 1.1em; }
.body h2, .body h3 { font-weight: 500; line-height: 1.25; margin: 1.6em 0 0.5em; }
.body h2 { font-size: 30px; }
.body h3 { font-size: 24px; }
.body h4, .body h5, .body h6 { font: 600 14px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; margin: 1.8em 0 0.6em; }
.body img { border-radius: 3px; margin: 1.6em auto; }
.body blockquote { margin: 1.4em 0; padding: 0 0 0 22px; border-left: 2px solid var(--warm); font-style: italic; color: var(--muted); }
.body u { text-decoration-color: var(--warm); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin: 0.3em 0; }
.body hr { border: 0; text-align: center; margin: 2em 0; }
.body hr::after { content: "· · ·"; color: var(--muted); letter-spacing: 0.5em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.tags span { font: 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }

/* archived comments */
.comments { margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.comments h2 { font: 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; font-weight: 600; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { margin: 0 0 22px; font-size: 18px; line-height: 1.55; }
.comments li ul { margin: 16px 0 0 22px; padding-left: 18px; border-left: 2px solid var(--line); }
.comments p { margin: 0; }
.comments .who { font: 13px/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; }
.comments .who b { color: var(--ink); font-weight: 600; }

/* paging */
.pager { display: flex; justify-content: space-between; gap: 24px; margin: 48px 0 0; font: 14px/1.4 var(--sans); color: var(--muted); }
.pager a { text-decoration: none; max-width: 48%; }
.pager a:last-child { text-align: right; }

.missing { text-align: center; padding: 60px 0; }
.missing h1 { font-weight: 500; }

/* footer */
footer.site { margin-top: 80px; padding: 28px 0 56px; border-top: 1px solid var(--line); text-align: center; font: 13px/1.6 var(--sans); color: var(--muted); }
footer.site p { margin: 0 0 6px; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 19px; }
  header.site { padding-top: 36px; }
  .brand { font-size: 26px; }
  .item { gap: 16px; padding: 22px 0; align-items: flex-start; }
  .item .title { font-size: 22px; }
  .item .excerpt { font-size: 16px; }
  .item img { width: 88px; }
  .intro { margin-bottom: 32px; }
}

/* forms: subscribe, comments, account */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input[type=email], input[type=text], input:not([type]), textarea {
  width: 100%; font: 18px/1.5 var(--serif); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; outline: 0;
}
input:focus, textarea:focus { border-color: var(--accent); }
button {
  font: 600 14px/1 var(--sans); letter-spacing: 0.04em; color: #fff; background: var(--accent);
  border: 0; border-radius: 4px; padding: 13px 18px; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button.danger { background: transparent; color: #b4413a; border: 1px solid currentColor; }
.notice { background: color-mix(in srgb, var(--warm) 22%, transparent); border-radius: 4px; padding: 10px 14px; font: 15px/1.5 var(--sans); }
.fine { font: 13px/1.5 var(--sans); color: var(--muted); }

.subscribe { margin: 56px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.subscribe h2 { font-size: 26px; font-weight: 500; margin: 0 0 14px; }
.subscribe form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe input { flex: 1; min-width: 0; }
.subscribe .fine { margin: 10px 0 0; }
.message .subscribe { margin-top: 28px; }

.message { padding: 24px 0; }
.message h1 { font-weight: 500; font-size: 38px; line-height: 1.15; margin: 24px 0 12px; }
.message h2 { font-weight: 500; font-size: 24px; margin: 40px 0 8px; }
.account .stack { display: grid; gap: 10px; max-width: 460px; justify-items: start; }
.account .stack input:not([type=checkbox]) { width: 100%; }
.check { font: 15px/1.5 var(--sans); display: flex; gap: 8px; align-items: center; }

.comments .act { font: 13px/1.4 var(--sans); margin-top: 4px; }
.comments .act a { color: var(--muted); }
.comments form.inline { display: inline; }
.comments form.inline button { background: none; color: var(--muted); padding: 0; font: 13px/1.4 var(--sans); letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.comment { display: grid; gap: 10px; margin-top: 28px; }
.comment button { justify-self: start; }
.replying { font: 14px/1.4 var(--sans); color: var(--muted); margin: 0; }
.join { font: 15px/1.6 var(--sans); color: var(--muted); margin-top: 24px; }

@media (max-width: 560px) {
  .subscribe { padding: 22px 16px; }
  .subscribe form { flex-direction: column; }
  header.site nav { gap: 18px; }
}
