/* jonteeter.com — one serif family (Newsreader), paper white, lake-blue links. No build step. */
:root {
  --paper: #ffffff;
  --ink: #15171c;
  --ink-soft: #585d6b;
  --rule: #e4e5ea;
  --lake: #1e5a66;
  --lake-soft: #e2eef0;
  --measure: 42rem;
  --wide: 68rem;
  --font: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181d;
    --ink: #ebe9e3;
    --ink-soft: #a3a6b0;
    --rule: #2c2f37;
    --lake: #8ccbd6;
    --lake-soft: #1f2e32;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 0 1rem;
}
a { color: var(--lake); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Masthead: the old wordmark's geometry (bar, dot, baseline) redrawn, name set in the text face. */
.masthead {
  max-width: var(--wide); margin: 0 auto; padding: 1.4rem 0 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.25rem; letter-spacing: .01em; }
.wordmark .mark { width: 2.1rem; height: auto; fill: currentColor; }
.masthead nav { display: flex; gap: 1.4rem; font-size: 1.05rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }

main { margin: 0 auto; padding: 2.5rem 0 4rem; }
.prose-width { max-width: var(--measure); }
.memorial-width, .support-width { max-width: var(--wide); }
.memorial-width .prose-width, .support-width .prose-width { margin-left: 0; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: 1.6rem; margin-top: 2.6rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1.25em; }
.subtitle { font-size: 1.25rem; color: var(--ink-soft); margin-top: -.3em; }
.byline { color: var(--ink-soft); font-size: 1rem; }
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 36em; }

/* Home */
.home .intro { padding: 1rem 0 1.5rem; }
.home .intro h1 { max-width: 20ch; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts time { display: block; color: var(--ink-soft); font-size: .95rem; }
.posts a { font-size: 1.35rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.posts a:hover { text-decoration: underline; }
.posts p { margin: .25rem 0 0; color: var(--ink-soft); }
.support-teaser { margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--lake-soft); border-radius: 4px; }
.support-teaser h2 { margin-top: 0; font-size: 1.25rem; }
.support-teaser p { margin: 0; }

/* Entries */
.entry header { margin-bottom: 2rem; }
.entry .body { font-size: 1.17rem; line-height: 1.65; }
.entry .body > :first-child { margin-top: 0; }
.entry .body blockquote { margin: 1.5em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--lake); color: var(--ink); font-style: italic; }
.entry .body blockquote strong { font-style: normal; }
.entry .body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.entry .body img { margin: 1.5em auto; border-radius: 3px; }
.entry .body ul, .entry .body ol { padding-left: 1.4em; }
.entry .body li { margin-bottom: .35em; }
.entry .body li > ul { margin: .35em 0 .6em; }
.entry .body code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; background: var(--lake-soft); padding: .05em .3em; border-radius: 3px; }

/* Memories (guestbook) */
.memories { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.memories .note { color: var(--ink-soft); font-size: 1rem; }
.memory-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.memory-list li { margin-bottom: 2rem; }
.memory-list blockquote { margin: 0 0 .4em; padding: 0; border: 0; font-size: 1.08rem; }
.memory-list .who { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Memorial gallery: a column mosaic, captions under each photo */
.gallery { margin-top: 3rem; }
.gallery h2 { margin-top: 0; }
.mosaic { columns: 3 15rem; column-gap: 1.25rem; }
.mosaic figure { break-inside: avoid; margin: 0 0 1.25rem; }
.mosaic img { width: 100%; border-radius: 3px; background: var(--rule); }
.mosaic figcaption { font-size: .95rem; color: var(--ink-soft); line-height: 1.35; margin-top: .4rem; }
.memorial .entry header h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); }

/* Support page */
.support-group { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.support-group h2 { margin-top: 0; }
.group-blurb { max-width: var(--measure); color: var(--ink-soft); }
.businesses { margin: 1.5rem 0 0; display: grid; gap: 1.25rem 2.5rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.business dt { font-size: 1.3rem; font-weight: 500; }
.business dd { margin: .2rem 0 0; }
.business dd p { margin: 0 0 .5em; color: var(--ink); font-size: 1.05rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: 1rem; }

.colophon { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .98rem; }
.colophon p { margin: 0; }
.colophon a { color: inherit; }

@media (max-width: 40rem) {
  body { font-size: 1.06rem; }
  .masthead { padding-top: 1rem; }
  .masthead nav { gap: 1rem; font-size: 1rem; }
  .entry .body { font-size: 1.1rem; }
  .mosaic { columns: 2 9rem; column-gap: .75rem; }
  .mosaic figure { margin-bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
