/* neil-family.com — shared stylesheet
   A small set of standalone memorial pages, each reached by direct link.
   Kept deliberately simple and dependency-free: no build step, no JS
   required to render or read a page. */

:root {
  --ink: #1b1b1f;
  --paper: #fdfbf7;
  --muted: #6b6b70;
  --line: rgba(0, 0, 0, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --script: Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Slim wayfinding bar — present on every page except the home welcome page */
.wayfind {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wayfind a {
  text-decoration: none;
  opacity: 0.85;
}

.wayfind a:hover { opacity: 1; text-decoration: underline; }

/* Generic section rhythm */
.section {
  padding: 3rem 1.25rem;
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.section-inner--wide {
  max-width: 1020px;
}

.section--narrow .section-inner { max-width: 620px; }

.center { text-align: center; }

/* Video embed, 16:9, no layout shift */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
}

/* Decorative repeating border strips, used on Dolores's pages */
.border-strip {
  width: 100%;
  height: 90px;
  background-repeat: repeat;
  background-size: auto 100%;
}

.border-strip--top {
  background-image: url("../img/border-top.webp");
}

.border-strip--bottom {
  background-image: url("../img/border-bottom.webp");
}

@supports not (background-image: url("../img/border-top.webp")) {
  .border-strip--top { background-image: url("../img/border-top.jpg"); }
  .border-strip--bottom { background-image: url("../img/border-bottom.jpg"); }
}

/* Footer, shared shape across pages */
.site-footer {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.25rem 3rem;
}

.site-footer a { color: inherit; }

/* ---------- Home page ---------- */

body.theme-home {
  background: #003163;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-hero {
  width: 100%;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.home-hero h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.home-hero p.kicker {
  font-family: var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.75;
  margin: 0 0 2.5rem;
}

.home-hero .btn {
  background: #fff;
  color: #d30cab;
  border-color: #0ea9f7;
  max-width: 420px;
  width: 100%;
}

/* ---------- Verlene memorial ---------- */

body.theme-verlene {
  background: linear-gradient(160deg, #ffa0fa 0%, #2c8fd6 65%);
  min-height: 100vh;
}

.theme-verlene .wayfind, .theme-verlene .wayfind a { color: #fff; }

.theme-verlene .site-footer { color: rgba(255, 255, 255, 0.9); }

.verlene-hero {
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
}

.verlene-hero h1 {
  font-family: "Snell Roundhand", "Brush Script MT", var(--script);
  font-style: italic;
  color: #fff;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  text-shadow: 0.01em 0.05em 4px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.25rem;
}

.verlene-hero h2 {
  font-family: var(--sans);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.95;
}

.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  padding: 2rem 1.75rem;
  max-width: 640px;
  margin: 2rem auto 0;
}

.card h2 {
  font-family: var(--serif);
  color: #9e166c;
  text-align: center;
  font-size: 1.8rem;
  margin-top: 0;
}

.program-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.98rem;
}

.program-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}

.program-list li:last-child { border-bottom: none; }

.program-list time {
  font-family: var(--sans);
  font-weight: 700;
  color: #9e166c;
  min-width: 4.4rem;
  flex-shrink: 0;
}

.program-list .program-note {
  font-style: italic;
  color: var(--muted);
}

/* ---------- Dolores pages (program + tributes) ---------- */

body.theme-dolores {
  background: #fdf7e8;
}

.dolores-header {
  position: relative;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem;
  background-size: cover;
  background-position: center 30%;
}

.dolores-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.dolores-header h1, .dolores-header h2, .dolores-header .kicker {
  position: relative;
  margin: 0;
}

.dolores-header h1 {
  font-family: "Bradley Hand", var(--script);
  font-size: clamp(2.4rem, 8vw, 3.8rem);
}

.dolores-header h2 {
  font-family: "Bradley Hand", var(--script);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  margin-top: 0.75rem;
  color: #ffe9c4;
}

.gallery-band {
  background: rgba(226, 200, 0, 0.18);
  padding: 2.5rem 1.25rem;
}

.program-gallery {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.program-gallery figure {
  margin: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.program-gallery img { width: 100%; }

.tribute-cta {
  text-align: center;
  margin-top: 2rem;
}

.tribute-cta .btn {
  background: #8de8dd;
  color: #000;
}

.video-band {
  background: #000;
  color: #eeefa5;
  padding: 3rem 1.25rem;
}

.video-band h2 {
  text-align: center;
  font-family: var(--serif);
  margin-top: 0;
}

.video-band .video-frame { max-width: 760px; margin: 0 auto; }

/* Tribute messages page */

.tribute-intro {
  background: rgba(158, 239, 230, 0.35);
  border: 4px solid #058089;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.tribute-intro h1 {
  font-family: "Bradley Hand", var(--script);
  color: #c12517;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin-top: 0;
}

.tribute-add {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.tribute-add .btn {
  background: #c12517;
  color: #fff;
  margin-top: 0.75rem;
}

.tribute-wall {
  max-width: 700px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.1rem;
}

.tribute-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #c12517;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tribute-entry p { margin: 0 0 0.5rem; }

.tribute-entry cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.tribute-placeholder {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
