/* ==========================================================================
   Seeing the Cat — lvtfan.com   ·   Phase 2 theme, 07/2026
   One authoritative file. EDIT BY REPLACING BLOCKS, NEVER APPENDING.
   Identity: 19th-century reform-print nameplate. Display serif masthead,
   Charter-stack body, small-caps serif labels (no sans anywhere),
   printer's-blue accent, blue-black night mode.
   ========================================================================== */

:root {
  --paper:  #F7F4EC;
  --ink:    #21201C;
  --accent: #1E4E79;          /* printer's blue */
  --accent-ink: #1E4E79;
  --rule:   #D8D2C2;
  --muted:  #6E6759;
  --quote:  #4A463D;
  --card:   #FDFBF5;
}
[data-theme="dark"] {
  --paper:  #14161A;          /* blue-black night */
  --ink:    #E4DFD3;
  --accent: #8FBBDF;
  --accent-ink: #A9CBE8;
  --rule:   #2C313A;
  --muted:  #97907E;
  --quote:  #B9B2A2;
  --card:   #1A1D22;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: Charter, "Bitstream Charter", "Iowan Old Style",
               "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.3rem 3rem;
  transition: background .25s ease, color .25s ease;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---- small-caps utility register (dates, labels, nav) ------------------ */
.eyebrow, .post-date, .np-tagline, .np-nav, .np-toggle,
.post-tags a, .archive-count, .search-status, .series-banner {
  font-variant-caps: all-small-caps;
  letter-spacing: .09em;
}
.eyebrow {
  color: var(--accent-ink);
  font-size: 1rem;
  margin: 2.2rem 0 .5rem;
}

/* ---- the nameplate ------------------------------------------------------ */
.nameplate {
  text-align: center;
  padding: 2rem 0 .9rem;
  border-bottom: 3px double var(--ink);   /* period double rule */
  margin-bottom: 2rem;
}
.np-tagline {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .25rem;
}
.np-title {
  font-family: Didot, "Didot LT STD", "Bodoni MT", "Bodoni 72",
               "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  margin-bottom: .55rem;
}
/* the signature: the title is an outline, then you see it */
.np-title a {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent-ink);
  animation: seecat 1.1s ease .25s forwards;
}
@keyframes seecat {
  to { color: var(--ink); -webkit-text-stroke-color: transparent; }
}
@supports not (-webkit-text-stroke: 1px black) {
  .np-title a { color: var(--ink); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .np-title a { color: var(--ink); -webkit-text-stroke: 0; animation: none; }
}
.np-title a:hover { text-decoration: none; }

.np-nav {
  font-size: 1rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .2rem 1.15rem;
}
.np-nav a { color: var(--ink); }
.np-nav a:hover { color: var(--accent-ink); text-decoration: none; }
.np-toggle {
  font: inherit; letter-spacing: inherit; font-variant-caps: inherit;
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 0;
}
.np-toggle:hover { color: var(--accent-ink); }

/* ---- home --------------------------------------------------------------- */
.mission {
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--quote);
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin: 1.8rem 0 .6rem;
}
.start-callout { color: var(--muted); font-size: .95rem; margin-bottom: .4rem; }

/* ---- post lists ---------------------------------------------------------- */
.post-list { list-style: none; }
.post-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .42rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list li:last-child { border-bottom: none; }
/* rows that carry a summary stack vertically */
.post-list li:has(.post-sum) { display: block; }
.pl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.post-sum {
  display: block; color: var(--muted);
  font-size: .93rem; line-height: 1.5; margin-top: .1rem;
}
/* 404 */
.nf-search input {
  font: inherit; color: var(--ink); width: 100%;
  padding: .65rem .8rem; margin: 1rem 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px;
}
.post-date { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.archive-link { margin-top: 1.4rem; }

/* ---- single post ---------------------------------------------------------- */
.post-title, .page-title {
  font-family: Didot, "Didot LT STD", "Bodoni MT", "Bodoni 72",
               "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.22;
  margin: .2rem 0 1rem;
}
.series-banner {
  color: var(--muted); font-size: .98rem;
  margin: -.4rem 0 1.2rem;
}
.post-content { margin: 1.4rem 0 2rem; }
.post-content p { margin: 0 0 1.05rem; }
.post-content h2, .post-content h3 { margin: 1.6rem 0 .6rem; line-height: 1.3; }
.post-content img {
  max-width: 100%; height: auto; display: block;
  margin: 1.4rem auto; border: 1px solid var(--rule);
}
.post-content ul, .post-content ol { margin: 0 0 1.05rem 1.4rem; }
.post-content hr { border: none; border-top: 1px solid var(--rule); margin: 1.6rem 0; }

/* the blog runs on quotations — give them the hanging mark */
.post-content blockquote {
  position: relative;
  margin: 1.3rem 0 1.3rem .4rem;
  padding: .1rem 0 .1rem 1.9rem;
  color: var(--quote);
  font-size: .99rem;
  line-height: 1.62;
}
.post-content blockquote::before {
  content: "\201C";
  position: absolute; left: -.15rem; top: -.55rem;
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: 2.9rem; line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.post-content blockquote blockquote::before { content: none; }
.post-content blockquote blockquote { padding-left: 1rem; border-left: 1px solid var(--rule); }

.post-tags { margin: 1.4rem 0; padding-top: .9rem; border-top: 1px solid var(--rule); }
.post-tags a {
  color: var(--muted); font-size: .95rem; margin-right: .9rem;
}
.post-tags a:hover { color: var(--accent-ink); }

.related { margin-top: 1rem; }

.post-nav {
  display: flex; justify-content: space-between; gap: 1.4rem;
  margin-top: 2rem; padding-top: 1rem;
  border-top: 3px double var(--rule);
  font-size: .95rem;
}
.post-nav .next { margin-left: auto; text-align: right; }

/* ---- archive -------------------------------------------------------------- */
.archive-count { color: var(--muted); margin-bottom: .6rem; }
.archive-year {
  font-family: Didot, "Bodoni MT", Georgia, serif;
  font-size: 1.7rem; font-weight: 500;
  color: var(--accent-ink);
  border-bottom: 1px solid var(--rule);
  margin: 1.8rem 0 .4rem;
}
.archive-month {
  font-variant-caps: all-small-caps; letter-spacing: .09em;
  color: var(--muted); font-weight: normal;
  margin: .9rem 0 .2rem;
}

/* ---- tag cloud (single authoritative block) -------------------------------- */
body.page-taxonomy { max-width: none; }
body.page-taxonomy .eyebrow,
body.page-taxonomy .page-title { max-width: 44rem; margin-left: auto; margin-right: auto; }
.tag-cloud {
  width: 92vw; max-width: 1200px;
  margin: 1.2rem auto 0;
  text-align: left; line-height: 1.9;
}
.tag-cloud a { margin: .1rem .5rem; display: inline; vertical-align: baseline; }
.tag-cloud a.tc-rare { color: var(--muted); }
.tag-cloud a:hover { text-decoration: underline; }

/* ---- series -------------------------------------------------------------- */
.series-list { margin-left: 1.6rem; }
.series-list li { padding: .42rem 0; border-bottom: 1px solid var(--rule); }
.series-list li::marker {
  font-variant-caps: all-small-caps; color: var(--accent-ink);
}

/* ---- search --------------------------------------------------------------- */
#q {
  font: inherit; color: var(--ink);
  width: 100%; padding: .65rem .8rem;
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 3px;
  margin-top: .6rem;
}
.search-status { color: var(--muted); margin: .5rem 0 1rem; }
.search-results li { display: block; }
.search-hit .post-date { margin-left: .6rem; }
.search-ex {
  display: block; color: var(--muted);
  font-size: .93rem; line-height: 1.5; margin-top: .15rem;
}

/* ---- footer ---------------------------------------------------------------- */
.colophon {
  margin-top: 3.2rem; padding-top: 1rem;
  border-top: 3px double var(--ink);
  text-align: center;
  color: var(--muted); font-size: .92rem;
}

/* ---- print ----------------------------------------------------------------- */
@media print {
  body { max-width: none; background: #fff; color: #000; }
  .np-nav, .np-toggle, .related, .post-nav, .colophon { display: none; }
  .np-title a { color: #000; -webkit-text-stroke: 0; animation: none; }
  a { color: #000; }
}

/* ---- small screens ----------------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .post-list li { flex-direction: column; gap: 0; }
  .post-date { font-size: .88rem; }
  .nameplate { padding-top: 1.2rem; }
}
