:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #232323;
  --muted: #73716e;
  --line: #dcd9d4;
  --link: #262626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

.page { width: min(100% - 48px, 750px); margin: 0 auto; }
.masthead { padding: clamp(78px, 13vw, 145px) 0 78px; border-bottom: 1px solid var(--line); }
.masthead h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(2.45rem, 6.9vw, 4.45rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-wrap: balance;
}

.feed { padding-top: 6px; }
.entry { padding: 72px 0 77px; border-bottom: 1px solid var(--line); }
.entry[hidden], .load-trigger[hidden] { display: none; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.meta-separator { color: #aaa6a0; }
.entry h2, .single-entry h1 {
  margin: 17px 0 27px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.entry h2 { font-size: clamp(2rem, 4.8vw, 2.8rem); }
.single-entry h1 { font-size: clamp(2.35rem, 6.2vw, 3.8rem); }
.entry h2 a, .entry a, .back a, .footer a {
  color: var(--link);
  text-decoration-color: #aca8a0;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}
.entry h2 a { text-decoration: none; }
.entry h2 a:hover, .entry h2 a:focus-visible { text-decoration: underline; }
.entry-content { font-size: 1.17rem; line-height: 1.78; overflow-wrap: anywhere; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content h3 { margin: 1.9em 0 .5em; font-size: 1.25em; line-height: 1.25; font-weight: 400; }
.entry-content h4 { margin: 1.6em 0 .5em; font-size: 1.05em; }
.entry-content blockquote { margin: 1.6em 0; padding-left: 1.1em; border-left: 2px solid var(--line); font-style: italic; }
.entry-content blockquote p { margin: 0; }
.entry-content img { display: block; max-width: 100%; height: auto; margin: 1.8em auto; }
.entry-content pre { padding: 1em; overflow-x: auto; background: #f1efea; font: .86rem/1.5 monospace; }
.entry-content code { overflow-wrap: anywhere; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.permalink { margin: 24px 0 0; font: 0.79rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.permalink a { color: var(--muted); }
.empty { padding: 80px 0 100px; font-size: 1.23rem; line-height: 1.7; color: var(--muted); }
.load-trigger { height: 1px; }
.footer { display: flex; justify-content: space-between; padding: 48px 0 70px; color: var(--muted); font: .8rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.back { padding-top: 67px; font: 0.84rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.single-entry { padding-top: 84px; }
.single-entry .entry-content { margin-top: 37px; }
.skip-link { position: absolute; top: -100px; left: 12px; background: var(--paper); padding: 10px; z-index: 2; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

@media (max-width: 600px) {
  .page { width: min(100% - 40px, 750px); }
  .masthead { padding: 75px 0 53px; }
  .entry { padding: 51px 0 57px; }
  .entry h2 { margin-bottom: 20px; }
  .entry-content { font-size: 1.1rem; line-height: 1.75; }
  .back { padding-top: 34px; }
  .single-entry { padding-top: 68px; }
  .footer { padding-bottom: 43px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
