:root {
  --bg: #fbfaf7;
  --fg: #1c1b19;
  --muted: #5d5a54;
  --accent: #1f4e79;
  --rule: #dcd8cf;
  --measure: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161513; --fg: #ece9e2; --muted: #a8a49a; --accent: #8db8e3; --rule: #34322d; }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.6 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.site-header, main, .site-footer { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }
.site-header { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.site-name { font-weight: 700; text-decoration: none; color: var(--fg); }
nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
a { color: var(--accent); }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.site-footer { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.draft-banner { background: #fff3c4; color: #3a2f00; text-align: center; padding: 0.5rem 1rem; font: 0.9rem/1.4 system-ui, sans-serif; }

/* davidmoldawer.com theme: evergreen ink on pale sage paper, Charter-led system type, no web fonts.
   Chosen to sit apart from moldawer.com (cool gray and cognac, Cormorant Garamond over Source Sans 3)
   and bookitect.com (white and blue). Overrides shared/css/base.css; nothing here is shared. */
:root {
  color-scheme: light;
  --bg: #F3F4EF;
  --paper: #FBFBF8;
  --fg: #17201C;
  --muted: #55605A;
  --accent: #2E5E4E;
  --accent-dark: #1F4337;
  --line: #C9CFC6;
  --rule: #DDE1D8;
  --measure: 46rem;
  --wide: 66rem;
  --gutter: 20px;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (min-width: 700px) { :root { --gutter: 40px; } }

body { font: 400 clamp(17px, 0.35vw + 15.8px, 19px)/1.62 var(--serif); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
main, .site-footer { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
main { padding-top: 0; padding-bottom: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: #fff; padding: 12px 18px; z-index: 50; }
.skip:focus { left: 12px; }
.draft-banner { font: 600 14px/1.4 var(--sans); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw + 1rem, 4rem); line-height: 1.04; margin: 0 0 0.9rem; }
h2 { font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2rem); line-height: 1.15; margin: 0 0 1.4rem; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.5rem; }
.eyebrow { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }

/* hero: portrait above the name on a phone, beside it from tablet up */
.hero { display: grid; gap: 28px; padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.hero .portrait img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line); }
.hero .lede p { font-size: clamp(1.15rem, 0.8vw + 1rem, 1.45rem); line-height: 1.4; color: var(--muted); margin: 0; max-width: 30em; }
@media (min-width: 760px) {
  .hero { grid-template-columns: auto 1fr; align-items: center; gap: 48px; padding: 88px 0 80px; }
  .hero .portrait img { width: 220px; height: 220px; }
}

.section, .closing { padding: 52px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .section, .closing { padding: 72px 0; } }
.narrow { max-width: var(--measure); }
.narrow p { margin: 0 0 1rem; }

/* three paths: one column on a phone, three from tablet up; advisory reads first and carries the button */
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.card:first-child { border-color: var(--accent); border-top-width: 4px; }
.card p { margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }
.card .btn-row, .card .more-row { margin-top: auto; padding-top: 0.5rem; }

.btn-row, .more-row { margin: 1.25rem 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; font: 600 16px/1.2 var(--sans); }
.btn:hover { background: var(--accent-dark); color: #fff; }
.more { font: 600 16px/1.4 var(--sans); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.more::after { content: "\2192"; margin-left: 0.4em; }
.more:hover { text-decoration: underline; }

.facts ul { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.facts li { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts + .more-row { margin-top: 1.5rem; }

.closing .lede p { color: var(--muted); max-width: var(--measure); margin: 0; }
.closing { border-bottom: 0; }

.site-footer { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font: 400 15px/1.5 var(--sans); }
.site-footer p { margin: 0; }
