/* jaybate 1.0 — one serif, a page the width of a column, crimson used once per screen. */
:root {
  --paper: #f7f6f2;
  --ink: #16213a;
  --ink-soft: #4b556b;
  --rule: #d9d6cc;
  --blue: #0051ba;
  --crimson: #c8102e;
  --fold: #eeece5;
  --measure: 66ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12161f; --ink: #e8e6df; --ink-soft: #a7acb8; --rule: #2b3140; --blue: #7fb0ff; --crimson: #ff5c6c; --fold: #1a1f2b;
  }
}
:root[data-theme="dark"] { --paper: #12161f; --ink: #e8e6df; --ink-soft: #a7acb8; --rule: #2b3140; --blue: #7fb0ff; --crimson: #ff5c6c; --fold: #1a1f2b; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.125rem; line-height: 1.6; font-optical-sizing: auto;
}
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--crimson); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

nav.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 1rem 1rem 0;
  font-size: 0.95rem;
}
nav.top .brand { font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
nav.top .links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav.top .links a { color: var(--ink-soft); text-decoration: none; }
nav.top .links a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--crimson); }
nav.top .links a:hover { color: var(--crimson); }

.hero { max-width: calc(var(--measure) + 2rem); margin: 4rem auto 2rem; padding: 0 1rem; }
.hero .avatar { border-radius: 50%; display: block; margin-bottom: 1rem; width: 56px; height: 56px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1; margin: 0 0 0.6rem; font-weight: 500; letter-spacing: -0.015em; }
.dates, .when, .crumb, .count { color: var(--ink-soft); font-size: 0.95rem; }
.hero .dates { margin: 0 0 2.5rem; }
blockquote.creed {
  margin: 0 0 2.5rem; padding: 0 0 0 1.1rem; border-left: 3px solid var(--crimson);
  font-size: clamp(1.6rem, 4.2vw, 2.4rem); line-height: 1.2; font-weight: 400; font-style: italic;
}
blockquote.creed span { display: block; }
blockquote.creed footer { font-size: 0.95rem; font-style: normal; margin-top: 0.8rem; }
.hero .about { max-width: var(--measure); margin: 0; }

nav.contents { max-width: calc(var(--measure) + 2rem); margin: 0 auto 1rem; padding: 0 1rem; }
nav.contents ol { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--rule); columns: 2; column-gap: 2rem; }
nav.contents li { break-inside: avoid; padding: 0.15rem 0; display: flex; justify-content: space-between; gap: 1rem; }
nav.contents li a { text-decoration: none; color: var(--ink); }
nav.contents li a:hover { color: var(--crimson); }
nav.contents li span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { nav.contents ol { columns: 1; } }

main { max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 0 1rem 4rem; }
section.hits, section.said { margin-top: 4.5rem; }
section.hits > h2, section.said > h2, .month-head h1, .all h2 { font-weight: 500; letter-spacing: -0.01em; }
section.hits > h2, section.said > h2 { font-size: 2rem; line-height: 1.1; margin: 0 0 0.4rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
p.blurb { color: var(--ink-soft); margin: 0 0 2rem; max-width: var(--measure); }

article.post { margin: 0 0 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
article.post header h3 { font-size: 1.15rem; font-weight: 600; margin: 0; line-height: 1.3; }
article.post header h3 a { color: var(--ink); text-decoration: none; }
article.post header h3 a:hover { color: var(--crimson); }
article.post header .when { margin: 0.15rem 0 1rem; }
article.post header .when a { color: inherit; text-decoration: none; }
article.post header .when a:hover { text-decoration: underline; }
.body { max-width: var(--measure); overflow-wrap: anywhere; }
.body p { margin: 0 0 1em; }
.body blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--ink-soft); }
.body h1, .body h2, .body h3 { font-size: 1.2em; margin: 1.2em 0 0.4em; font-weight: 600; }
.body img { display: block; margin: 0.5rem 0; }
.body .video { position: relative; padding-top: 56.25%; margin: 0.5rem 0 1em; }
.body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body table { border-collapse: collapse; font-size: 0.95em; }
.body td, .body th { border: 1px solid var(--rule); padding: 0.2em 0.5em; }
.body a.mention { text-decoration: none; }
blockquote.pull {
  margin: 0 0 1rem; padding: 0; font-size: 1.35rem; line-height: 1.35; font-style: italic; font-weight: 400;
  max-width: var(--measure);
}
details.fold summary {
  cursor: pointer; list-style: none; display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--rule);
  border-radius: 999px; font-size: 0.95rem; color: var(--ink); background: var(--fold);
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary:hover { border-color: var(--crimson); }
details.fold[open] summary { margin-bottom: 1.2rem; }
details.fold .count { margin-left: 0.5rem; }

blockquote.tribute { margin: 0 0 1.8rem; padding: 1rem 0 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
blockquote.tribute p { margin: 0 0 0.4rem; }
blockquote.tribute footer { font-size: 0.95rem; }
blockquote.tribute footer a { color: var(--ink-soft); text-decoration: none; }
blockquote.tribute footer a:hover { color: var(--crimson); }

.month-head { margin: 3rem 0 2rem; }
.month-head h1 { font-size: 2.4rem; margin: 0 0 0.3rem; line-height: 1.1; }
.month-head .crumb { margin: 0; }
.month-head .crumb a { color: inherit; text-decoration: none; }
.all h2 { font-size: 1.6rem; margin: 2.2rem 0 0.4rem; padding-top: 0.6rem; border-top: 3px solid var(--ink); }
ul.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.2rem 1.5rem; }
ul.months li { display: flex; justify-content: space-between; padding: 0.2rem 0; border-bottom: 1px solid var(--rule); }
ul.months li a { text-decoration: none; color: var(--ink); }
ul.months li a:hover { color: var(--crimson); }
ul.months li span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
nav.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
nav.pager a[rel="next"] { margin-left: auto; }

footer { max-width: calc(var(--measure) + 2rem); margin: 0 auto; padding: 2rem 1rem 3rem; color: var(--ink-soft); font-size: 0.95rem; border-top: 1px solid var(--rule); }
footer p { margin: 0; max-width: var(--measure); }

@media (prefers-reduced-motion: no-preference) { details.fold .body { animation: unfold 240ms ease-out; } }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media print { nav.top, nav.contents, details.fold summary { display: none; } details.fold .body { display: block; } }
