/* John W. Kleinhenz index — colors shared with the newspaper article pages. */
:root {
  --paper: #fffaf0;
  --ink: #263238;
  --muted: #6b645c;
  --accent: #8a5a2b;
  --accent-dark: #5e3b1a;
  --line: rgba(38, 50, 56, .14);
  --card: rgba(255, 255, 255, .88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(196, 141, 77, .24), transparent 34rem),
    linear-gradient(180deg, #f4eadb 0%, var(--paper) 18rem, #fffdf8 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, .45vw + .95rem, 1.24rem);
  line-height: 1.75;
}
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
h1, h2, h3 { color: #20170f; line-height: 1.2; }
p { margin: 0 0 1.25rem; }

/* The background image itself lives in index.html. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem 1.25rem;
  overflow: hidden;
  text-align: center;
  background: #f4eadb;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 250, 240, .42);
}
.hero-content {
  width: min(100%, 680px);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255, 250, 240, .9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(65, 43, 24, .12);
}
.portrait { width: 225px; max-width: 55%; }
.hero h1 { margin: 1.25rem 0; font-size: clamp(2.35rem, 6vw, 4.4rem); letter-spacing: -.045em; }
.hero p { margin-bottom: 0; color: var(--accent-dark); font-weight: bold; }

/* Each collection and entry can be edited directly in the HTML. */
.page-shell { width: min(100% - 1.5rem, 980px); margin: 4rem auto; }
.collection { margin-bottom: 4rem; }
.section-title {
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  color: var(--accent-dark);
  font-size: 1.35rem;
  letter-spacing: .18em;
  text-align: center;
}
.entry, .timeline {
  margin: 0 0 2rem;
  padding: clamp(1.4rem, 4vw, 3.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(65, 43, 24, .12);
}
.entry { text-align: center; }
.entry h3 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-detail { margin-bottom: .6rem; color: var(--muted); }
.entry img { max-height: 460px; width: auto; border-radius: 12px; margin-block: 1.5rem; }
.entry a { font-size: 1.1em; }
.entry p:last-child, .timeline p:last-child { margin-bottom: 0; }
.timeline img { max-height: 550px; width: auto; margin-block: 2rem; border-radius: 12px; }
.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f4eadb;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
}
.back-to-top { display: inline-block; padding: .25rem 1rem; border: 1px solid var(--line); border-radius: 50%; }

@media (max-width: 640px) {
  .hero-content, .entry, .timeline { border-radius: 20px; }
  .page-shell { margin-block: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { background: white; font-size: 12pt; }
  .hero { min-height: auto; padding: 1rem; }
  .hero-background, .hero::before, .back-to-top { display: none; }
  .hero-content, .entry, .timeline { background: white; box-shadow: none; border: 0; }
  .page-shell { width: 100%; margin: 0; }
  .entry { break-inside: avoid; }
}
