/* Genealogy — Marilyn/baseball scaffold */
:root {
  --bg: #070b10;
  --panel: #10161e;
  --line: #243040;
  --text: #eef1f6;
  --muted: #9aa6b8;
  --dim: #6a7588;
  --cyan: #5ee7ff;
  --gold: #d4a84b;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, #1a2830 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(1rem + var(--safe-b));
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  padding: calc(.45rem + var(--safe-t)) 1rem .5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.94);
  font-size: .85rem;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 1.75rem;
}
.bar-top strong {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.bar a.home-link {
  font-weight: 600;
  white-space: nowrap;
  color: var(--cyan);
  flex-shrink: 0;
}
nav.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  width: 100%;
  padding-top: .35rem;
  border-top: 1px solid rgba(36, 48, 64, 0.65);
  text-align: center;
}
nav.topnav a {
  font-weight: 600;
  font-size: .8rem;
  color: var(--muted);
  padding: .3rem .5rem;
  border-radius: 7px;
}
nav.topnav a:hover,
nav.topnav a.active {
  color: var(--cyan);
  background: var(--panel);
  text-decoration: none;
}

main.page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 1.75rem;
  flex: 1;
  min-width: 0;
}
.kicker {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: .35rem;
}
main.page h1 {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .35rem;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.08rem);
  margin-bottom: 1.1rem;
  max-width: 40em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.25rem;
}
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: .5rem 1.1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  touch-action: manipulation;
}
a.btn.primary {
  color: #041418;
  background: var(--cyan);
  border: 1px solid transparent;
}
a.btn.secondary {
  color: var(--cyan);
  border: 1px solid #1a4a54;
  background: linear-gradient(180deg, #163d48, #0e262e);
}
a.btn:hover { filter: brightness(1.06); text-decoration: none; }

.section-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 1.15rem 0 .45rem;
}

/* Small thumb + caption */
.thumb-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 0 1.15rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.thumb-block a.thumb {
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  line-height: 0;
  max-width: 160px;
}
.thumb-block a.thumb:hover { border-color: var(--cyan); }
.thumb-block a.thumb img {
  display: block;
  width: 140px;
  height: auto;
  max-width: 100%;
}
.thumb-cap {
  flex: 1 1 12rem;
  min-width: 0;
}
.thumb-cap h2 {
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.thumb-cap p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .45rem;
}
.thumb-cap .hint {
  color: var(--dim);
  font-size: .82rem;
}

/* Inline scrollable annotated photo (full golden dinner) */
.anno-wrap {
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0e14;
}
.anno-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .75rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-size: .82rem;
  color: var(--muted);
}
.anno-toolbar strong { color: var(--text); font-weight: 650; }
.anno-scroll {
  overflow: auto;
  max-height: min(70vh, 640px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.anno-scroll:active { cursor: grabbing; }
.anno-scroll img {
  display: block;
  /* keep native size for pan/scroll of annotations — never upscale past full */
  width: auto;
  max-width: none;
  height: auto;
  min-width: 100%;
  /* if image wider than container, scroll; if narrower, at least fill width up to native */
}
@media (min-width: 700px) {
  .anno-scroll img {
    /* desktop: allow natural width so labels stay readable */
    width: max(100%, 1100px);
    max-width: none;
  }
}
@media (max-width: 699px) {
  .anno-scroll img {
    /* phone: start a bit wider than viewport so you can pan for names */
    width: max(100%, 720px);
  }
}

.hist-note {
  margin-top: 1rem;
  padding: .75rem .9rem;
  border-left: 3px solid var(--line);
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.45;
}
