/* Father Sebastian Kremer memoir. Updated October 12, 2026.
   Mobile-first styles; edit the palette below to change the theme. */
:root {
  --paper: #fffaf2;
  --ink: #352c25;
  --wine: #652e36;
  --gold: #a78545;
  --rule: #deceb7;
  --muted: #706153;
  --space: clamp(1.2rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: #f2ebdf;
  color: var(--ink);
  font: clamp(1rem, .94rem + .25vw, 1.15rem)/1.8 Georgia, 'Times New Roman', serif;
  overflow-wrap: break-word;
}
a { color: var(--wine); text-underline-offset: .2em; }
a:hover { color: #41271d; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
img, video { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }
h1, h2, h3 { font-weight: 500; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.3rem); margin: .6rem 0 1.25rem; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .6rem 0 1.4rem; color: var(--wine); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.25rem; }
figure { margin: 0; }
.eyebrow, nav, .button, summary, .date {
  font-family: Arial, Helvetica, sans-serif;
}
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.hero { padding: clamp(2rem, 6vw, 5rem) var(--space); background: linear-gradient(115deg, #fffaf2, #e9dcc5); border-bottom: 1px solid var(--rule); }
.hero-inner { max-width: 1120px; margin: auto; display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 700px; }
.deck, .sub { color: var(--wine); font-size: clamp(1.05rem, 2vw, 1.35rem); font-style: italic; }
.hero-note { max-width: 36em; color: var(--muted); }
.hero-portrait { width: min(70%, 270px); justify-self: center; padding: .75rem; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px #49372320; transform: none; }
.hero-portrait img { width: 100%; }
figcaption { color: var(--muted); font-size: .9rem; text-align: center; padding-top: .8rem; }
.button { display: inline-flex; gap: 1rem; align-items: center; min-height: 48px; padding: .65rem 1.2rem; border-radius: 4px; background: var(--wine); color: white; text-decoration: none; font-size: .9rem; }
.button:hover { background: #483023; color: white; }
nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .6rem; padding: .5rem; background: #fffaf2; border-bottom: 1px solid var(--rule); }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; font-size: .85rem; text-decoration: none; border-radius: 4px; }
nav a:hover { background: #eee2ce; }
main { width: min(1120px, calc(100% - 2rem)); margin: clamp(1.5rem, 4vw, 3.5rem) auto; }
.story, .card { padding: var(--space); margin-bottom: 2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 5px 20px #49372307; }
.story > p, .story > article, .story > blockquote { max-width: 72ch; margin-inline: auto; }
#biography > p { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); }
#parish img { margin: 1rem auto; max-height: 280px; width: auto; }
#parish img[src$="cross.png"] { width: 55px; }
#parish a { display: inline-block; padding-block: .6rem; min-height: 44px; }
.newspaper-article, .quote, .motto { padding: clamp(1rem, 3vw, 2rem); border-left: 3px solid var(--gold); background: #f4ead9; margin-block: 1.5rem; }
details { margin-block: 1rem; }
summary { cursor: pointer; min-height: 44px; padding: .6rem .8rem; width: fit-content; color: var(--wine); border: 1px solid var(--rule); border-radius: 4px; font-size: .9rem; font-weight: 700; }
details[open] summary { margin-bottom: 1rem; }
.kremer-timeline ol { list-style: none; padding: 0 0 0 1rem; margin: 2rem 0 0; border-left: 2px solid var(--rule); }
.kremer-timeline li { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.timeline-year { width: fit-content; padding: .35rem .8rem; background: var(--wine); color: white; border-radius: 5px; font: 700 1.2rem/1.5 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.timeline-event { margin: 0; background: #f7f0e5; padding: 1rem 1.2rem; border-radius: 6px; }
.section-title { margin: 3rem 0 1.5rem; }
.album-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.album-card { min-width: 0; background: var(--paper); padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--rule); border-radius: 8px; }
.album-card img { margin: 0 auto 1rem; max-height: 680px; object-fit: contain; }
.album-card > a { display: block; }
.album-card b { display: inline-block; color: var(--wine); line-height: 1.5; margin-bottom: .6rem; }
.album-card .newspaper-article { margin: 0; padding: 0; background: none; border: none; }
footer { padding: 2.5rem 1.2rem; text-align: center; background: #43282c; color: #f5ead8; font-size: .95rem; }
footer a { color: #f5ead8; }
footer a:hover { color: white; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; padding: 1rem; background: white; }
.skip-link:focus { top: 1rem; }
@media (min-width: 700px) {
  .hero-inner { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 3rem; }
  .hero-portrait { width: min(100%, 270px); }
  .kremer-timeline li { grid-template-columns: 155px minmax(0, 1fr); align-items: start; gap: 1.3rem; }
  .timeline-year { width: 100%; text-align: center; padding: .65rem .5rem; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  nav, .button, .skip-link, summary { display: none; }
  body, .hero, .story, .album-card { background: white; box-shadow: none; }
  details::details-content { display: block; }
  main { width: 100%; }
  .album-grid { display: block; }
  .album-card { break-inside: avoid; }
}

/* Religious memoir: ivory paper, liturgical burgundy, and restrained gold. */
.hero { position: relative; border-top: 5px solid var(--wine); }
.sacred-cross {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  color: var(--wine);
  font-size: 2.5rem;
  line-height: 1;
}
.story, .card { border-top: 3px solid var(--gold); }
.section-title { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.hero-portrait { border: 3px double var(--gold); }
.memoir-nav { display: block; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .6rem; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: .7rem;
  min-height: 48px;
  padding: .5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper);
  color: var(--wine);
  font: 700 .95rem Arial, sans-serif;
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.hamburger { font-size: 1.4rem; line-height: 1; }
@media (max-width: 699px) {
  .menu-ready .menu-toggle { display: flex; margin-left: auto; }
  .menu-ready .nav-links { display: none; }
  .menu-ready.menu-open .nav-links { display: flex; }
  .menu-ready .nav-links { flex-direction: column; gap: .2rem; padding-top: .5rem; }
  .menu-ready .nav-links a { width: 100%; padding: .65rem 1rem; }
}
/* Desktop timeline: the line runs through the center of the year badges. */
@media (min-width: 700px) {
  .kremer-timeline ol { border-left: 0; padding-left: 0; }
  .kremer-timeline li { position: relative; }
  .kremer-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 76px;
    top: 1.5rem;
    bottom: -3rem;
    width: 3px;
    background: var(--gold);
  }
  .timeline-year { position: relative; z-index: 1; border: 3px solid var(--paper); }
  .timeline-event { position: relative; }
}
@media print { .memoir-nav { display: none; } }
