/* Little Vatican redesign. Keeps the current site's identity: the St. Peter's
   Square hero, the St. Michael crest, the blue title, Libre Franklin, and
   photo bands between sections. */
:root {
  --blue: #2f55e8;     /* site title */
  --navy: #16276b;     /* crest field */
  --cream: #f6efc4;    /* crest glow */
  --white: #ffffff;
  --ink: #222222;
  --stone: #666666;
  --line: #e3e3e3;
  --ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--ui); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* Hero */
.hero { position: relative; }
.hero-media { display: block; width: 100%; height: min(72svh, 46rem); object-fit: cover; background: var(--navy) url(assets/st-peters-square.jpg) center / cover; }
.pause {
  position: absolute; top: 1rem; right: 1rem;
  font: 600 0.8125rem/1 var(--ui); color: var(--white);
  background: rgba(0, 0, 0, 0.55); border: 0; border-radius: 2px; padding: 0.65rem 0.85rem; cursor: pointer;
}
.pause:hover { background: rgba(0, 0, 0, 0.8); }
.brand-bar {
  position: sticky; top: 0; z-index: 10; background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0.9rem max(2rem, calc((100% - 72rem) / 2));
  border-bottom: 1px solid var(--line);
}
.hero { display: contents; } /* lets the brand bar stick for the whole page */
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand img { width: 3.5rem; height: 3.5rem; display: block; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.brand em { font-style: normal; font-size: 0.875rem; color: var(--stone); }
.brand-bar nav ul { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9375rem; font-weight: 600; }
.brand-bar nav a { text-decoration: none; }
.brand-bar nav a:not(.button):hover { color: var(--blue); }

.button {
  display: inline-block; background: var(--blue); color: var(--white);
  font: 600 0.9375rem/1 var(--ui); text-decoration: none; padding: 0.8rem 1.25rem; border-radius: 2px;
}
.button:hover { background: var(--navy); }

/* Catalog */
.catalog { max-width: 76rem; margin: 0 auto; padding: 5rem 2rem 4.5rem; }
.catalog h2, .prose h2 {
  font-weight: 800; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1.5rem;
}
.catalog li { border-top: 1px solid var(--line); }
.catalog li:last-child { border-bottom: 1px solid var(--line); }
.catalog a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 2rem; align-items: baseline; padding: 1.5rem 1rem; margin: 0 -1rem;
  text-decoration: none;
}
.catalog a:hover, .catalog a:focus-visible { background: var(--navy); color: var(--white); }
.title { font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; color: var(--blue); }
.title i { font: 600 0.75rem/1 var(--ui); vertical-align: 0.9em; margin-left: 0.35rem; color: var(--stone); }
.about { color: var(--stone); }
.where { font-size: 0.9375rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.catalog a:hover .title, .catalog a:focus-visible .title { color: var(--cream); }
.catalog a:hover .about, .catalog a:hover .title i, .catalog a:focus-visible .about, .catalog a:focus-visible .title i { color: #d5d9ea; }

/* Photo bands */
.band {
  position: relative; color: var(--white); text-align: center;
  padding: 7rem 2rem; background: var(--navy) center / cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(13, 22, 60, 0.62); }
.band > * { position: relative; }
.band h2 { font-weight: 800; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; }
.mission { background-image: url(assets/pantheon-dome.jpg); }
.mission p { font-weight: 300; font-style: italic; font-size: clamp(1.9rem, 4.6vw, 3.5rem); line-height: 1.15; max-width: 18em; margin: 1rem auto 0; }
.donate { background-image: url(assets/st-peters-basilica.jpg); }
.donate h2 { font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 3.25rem); line-height: 1.15; letter-spacing: 0; text-transform: none; max-width: 16em; margin: 0 auto; }
.donate p { margin: 1.25rem auto 2rem; max-width: 34rem; font-size: 1.125rem; }
.donate .button { background: var(--cream); color: var(--navy); font-size: 1.0625rem; padding: 1rem 1.6rem; }
.donate .button:hover { background: var(--white); }

/* Text sections */
.prose { max-width: 76rem; margin: 0 auto; padding: 5rem 2rem; }
.prose p { font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; max-width: 28em; }
.prose a { color: var(--blue); text-underline-offset: 0.2em; }

footer { max-width: 76rem; margin: 0 auto; padding: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--stone); }
.mock { font-size: 0.8125rem; }

@media (max-width: 56rem) {
  .hero-media { height: 52svh; }
  .brand-bar { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.75rem 1rem 0.6rem; }
  .brand img { width: 2.75rem; height: 2.75rem; }
  .brand strong { font-size: 1.25rem; }
  .brand-bar nav { overflow-x: auto; }
  .brand-bar nav ul { gap: 1.25rem; width: max-content; min-width: 100%; justify-content: space-between; }
  .brand-bar nav a { white-space: nowrap; }
  .brand-bar nav .button { padding: 0.6rem 0.9rem; }
  html { scroll-padding-top: 8rem; }
  .catalog { padding: 3rem 1rem 2.5rem; }
  .catalog a { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.2rem 1rem; }
  .where { text-align: left; }
  .band { padding: 4.5rem 1rem; }
  .prose { padding: 3rem 1rem; }
  footer { padding: 1.5rem 1rem; }
}
