/* Layout: the page opens on the live sky over Ryan's bench, with a bald eagle
   circling. Below it, loud stadium-size headings and plain reading text
   alternate between daylight bands and midnight-green bands with eagle gold. */
:root {
  --midnight: #06262a;     /* midnight green ground */
  --midnight-2: #0b3a3f;
  --green: #0f6a5c;        /* links and buttons on light */
  --gold: #e2b653;         /* eagle gold, on dark */
  --gold-dark: #8a6410;    /* gold on light */
  --red: #c8303a;          /* Big R logo red, on light */
  --red-bright: #ff4553;   /* the same red, lifted for dark grounds */
  --paper: #f2f5f3;
  --paper-tint: #e2e9e6;
  --ink: #0f1f1d;
  --ink-soft: #485a57;
  --line: #c3cfcb;
  --white: #f8f6ee;        /* eagle white */

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.1875rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 68rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 40rem; margin-inline: auto; }
.wrap.narrow { max-width: calc(40rem + 40px); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--midnight); padding: 8px 14px; font-family: var(--ui); z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h3 { font-family: var(--ui); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }

.shout { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 11vw, 4.75rem); line-height: 0.92; letter-spacing: 0.005em; margin-bottom: 1.25rem; }
.bigr { color: var(--red); }
.dark .bigr, .sky .bigr, .salute .bigr, .site-footer .bigr { color: var(--red-bright); }
.sky .bigr { text-shadow: 0 2px 0 rgba(40, 0, 6, 0.55), 0 4px 22px rgba(3, 18, 26, 0.6); }
.bigr-on-gold { color: #9c1420; }
.dark .shout { color: var(--white); }
.kicker { font-family: var(--ui); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.24em; text-transform: uppercase; margin: 0; }
.label { font-family: var(--ui); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.section-note { font-family: var(--ui); font-size: 1rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- Sky hero ---------- */
.sky { position: relative; min-height: min(100svh, 56rem); background: var(--midnight); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
#sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-copy { position: relative; width: 100%; padding-top: 36svh; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); text-shadow: 0 2px 18px rgba(3, 18, 26, 0.55); }
.sky .kicker { color: var(--gold); text-shadow: 0 1px 8px rgba(3, 18, 26, 0.8); }
.sky h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.75rem, 25vw, 12rem); line-height: 0.8; letter-spacing: -0.005em; margin: 0.35rem 0 1.1rem; }
.hook { font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.4; max-width: 24rem; margin-bottom: 1.25rem; }
.live { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; text-shadow: none; }
.chip { font-family: var(--ui); font-size: 0.9rem; font-weight: 600; background: rgba(4, 22, 28, 0.6); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 0.3rem 0.85rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 0.5rem; }
.cue { display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.04em; color: var(--midnight); background: var(--gold); padding: 0.65rem 1.25rem; text-decoration: none; text-shadow: none; }
.cue .arrow { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
.cues { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cue.alt { background: rgba(4, 22, 28, 0.55); color: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Bands ---------- */
.band { padding-block: 4rem; }
.band.tinted { background: var(--paper-tint); }
.band.dark { background: var(--midnight); color: #dbe7e3; }
.band.dark a:not(.button) { color: var(--gold); }

/* Meet */
.meet-grid { display: grid; gap: 2rem; align-items: center; }
.meet .portrait { width: min(72vw, 320px); margin-inline: auto; filter: drop-shadow(0 16px 22px rgba(6, 38, 42, 0.45)); }
.say { font-size: clamp(1.3rem, 5vw, 1.6rem); line-height: 1.35; margin-bottom: 0.9em; }
.aside { font-style: italic; color: var(--ink-soft); }
@media (min-width: 48rem) { .meet-grid { grid-template-columns: 22rem minmax(0, 1fr); gap: 4rem; } }

/* The fight */
.figures { margin: 2.5rem 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.figures dt { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 15vw, 5rem); line-height: 0.9; color: var(--gold); font-variant-numeric: tabular-nums; }
.figures dd { margin: 0.6rem 0 0; max-width: 22rem; }
.pull { margin: 3rem auto 0; border-left: 4px solid var(--gold); padding-left: 1.25rem; font-style: italic; }
.pull footer { font-family: var(--ui); font-style: normal; font-weight: 600; margin-top: 0.75rem; color: var(--gold); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0.75rem; padding: 0 0 2rem 1.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.6rem; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); }
.timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.year { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.timeline p { margin-top: 0.3rem; }

/* Letter */
blockquote { margin: 0; }
.letter > p:first-child { font-size: 1.25rem; }
.letter footer { font-family: var(--ui); font-weight: 600; margin-top: 1.5rem; }
details { margin-top: 0.5rem; }
summary { font-family: var(--ui); font-weight: 700; color: var(--green); cursor: pointer; padding: 0.75rem 0; }
details[open] summary { margin-bottom: 0.5rem; }

/* I was here */
.here { background: radial-gradient(ellipse 90% 60% at 50% 0%, var(--midnight-2), var(--midnight) 70%); }
.gold-eagle { width: min(70vw, 300px); margin: 0 auto 1.5rem; }
.tally { margin: 2rem 0 1.75rem; }
.digits { display: flex; justify-content: center; gap: 6px; }
.digits span { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 17vw, 5.5rem); line-height: 1; min-width: 0.72em; padding: 0.12em 0.1em 0.06em; background: #021518; color: var(--gold); border: 1px solid rgba(226, 182, 83, 0.45); border-radius: 6px; font-variant-numeric: tabular-nums; }
.tally-label { font-family: var(--ui); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; margin: 0.9rem 0 0.2rem; color: var(--white); }
.tally-last { font-family: var(--ui); font-size: 0.95rem; color: #a9bdb8; margin: 0; }
.bench-line { margin-top: 2.5rem; color: #b9cbc6; }

/* Photos */
.photo { margin: 2rem 0; }
.photo img { width: 100%; border-radius: 3px; }
figcaption { font-family: var(--ui); font-size: 0.9375rem; color: var(--ink-soft); margin-top: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-block: 1.75rem; }
.gallery:empty { display: none; }
.gallery button { position: relative; padding: 0; border: 0; background: var(--paper-tint); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 0.5rem 0.35rem; font-family: var(--ui); font-size: 0.8rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }

.upload { margin-top: 1.5rem; }
.upload-step { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.upload-step img { max-height: 320px; width: auto; border-radius: 3px; }
.upload-step label { font-family: var(--ui); font-weight: 600; font-size: 1rem; }
.upload-step input[type="text"] { font: inherit; font-family: var(--ui); padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); max-width: 20rem; }
.fine { font-family: var(--ui); font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.outing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.outing-head .logo { width: 150px; background: var(--midnight); border-radius: 50%; padding: 10px; flex: none; }
.outing-head > div { flex: 1 1 18rem; min-width: 0; }
.prayer-card { width: min(100%, 340px); margin: 1.5rem auto 0; border-radius: 4px; box-shadow: 0 10px 30px rgba(6, 38, 42, 0.25); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.center .actions { justify-content: center; }
.button { display: inline-block; font-family: var(--ui); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; padding: 0.9rem 1.5rem; border-radius: 3px; border: 2px solid var(--green); background: var(--green); color: #fff; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: default; }
.button.ghost { background: transparent; color: var(--green); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--midnight); }
.button.ghost-light { background: transparent; border-color: rgba(226, 182, 83, 0.7); color: var(--white); }
.button.big { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1.9rem, 8vw, 2.5rem); padding: 0.55rem 2rem 0.45rem; box-shadow: 0 0 0 6px rgba(226, 182, 83, 0.18); }
.hint { font-family: var(--ui); font-size: 0.95rem; color: #a9bdb8; min-height: 1.5em; margin-top: 0.75rem; }
.hint.dark-text { color: var(--ink-soft); }

/* Footer */
.site-footer { background: #031a1d; color: #a9bdb8; padding-block: 2.75rem calc(2.75rem + env(safe-area-inset-bottom, 0px)); font-family: var(--ui); font-size: 1rem; }
.forever { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 0.4rem; }
.site-footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; margin-top: 1rem; }
.site-footer a { color: #dbe7e3; padding: 0.4rem 0; }

/* Salute overlay */
.salute { position: fixed; inset: 0; z-index: 40; background: rgba(3, 20, 23, 0.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
#salute-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.salute-card { position: relative; text-align: center; color: var(--white); max-width: 26rem; animation: rise 0.7s ease-out 0.9s both; }
.salute-card .kicker { color: var(--gold); }
.salute-number { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 34vw, 11rem); line-height: 0.9; color: var(--gold); margin: 0.1em 0; font-variant-numeric: tabular-nums; }
.salute-card h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1; margin-bottom: 0.75rem; }
.salute-card p { font-family: var(--ui); }
.salute-card .button { margin-top: 1rem; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(3, 20, 23, 0.95); z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3.5rem 16px 1.5rem; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 3px; }
.lightbox p { color: #dbe7e3; font-family: var(--ui); margin: 0; text-align: center; }
.lightbox button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; font-family: var(--ui); font-size: 1rem; font-weight: 700; background: transparent; color: var(--white); border: 1px solid rgba(226, 182, 83, 0.7); border-radius: 3px; padding: 0.5rem 0.9rem; cursor: pointer; }

@media (min-width: 48rem) {
  .band { padding-block: 6rem; }
  .sky-copy { padding-bottom: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue .arrow, .salute-card { animation: none; }
}
