:root {
  --ink: #141414;
  --muted: #6b6b6b;
  --rule: #e3e0d8;
  --accent: #8a3b12;
  --measure: 38rem; /* ~65ch at this size */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---- masthead ---- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 3rem;
}
.masthead .home { font-weight: 700; }
nav a { margin-left: 1.25rem; }
nav a:first-child { margin-left: 0; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- headings ---- */
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.4rem; }
.subtitle { color: var(--muted); font-style: italic; margin: 0 0 1.5rem; }
.dateline { color: var(--muted); font-size: 0.95rem; margin: 0 0 2rem; }

p { margin: 0 0 1.1rem; }
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: #333;
  font-style: italic;
}
ul, ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
pre {
  overflow-x: auto;
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  border-radius: 4px;
}

/* ---- home byline photo ---- */
.byline-photo {
  float: left;
  width: 108px;
  height: auto;
  margin: 0.3rem 1.25rem 0.5rem 0;
  border-radius: 2px;
  filter: grayscale(100%);
}

/* ---- writing list ---- */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { margin-bottom: 1.4rem; }
.entries .when { color: var(--muted); font-size: 0.95rem; }
.entries .what { display: block; font-size: 1.15rem; font-weight: 700; }
.entries .sub { color: var(--muted); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { margin-bottom: 0.4rem; }
.recent .when { color: var(--muted); }

/* ---- now ---- */
.now-note { color: var(--muted); font-size: 0.95rem; margin-top: 2rem; }

/* ---- ideas ---- */
.concept { margin: 0 0 2.25rem; }
.concept h2 { margin-bottom: 0.3rem; }
.concept .def { margin: 0 0 0.6rem; }
.concept ul { margin: 0; }

/* ---- essay connections ---- */
.connections {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}
.connections p { margin: 0 0 0.4rem; }
.connections .label { color: var(--ink); }
.revised-note { font-style: italic; }

/* ---- footer ---- */
.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot .weight { white-space: nowrap; }
.foot nav { margin-top: 0.4rem; }
.foot nav a:first-child { margin-left: 0; }
