/* Fellowship By The Sea — one stylesheet for every page.
   Checked by `npm run check` (stylelint + browser support, axe accessibility). */

/* Plus Jakarta Sans (SIL Open Font License, see /fonts/OFL.txt), self-hosted, Latin subset */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2?v=03bf402f") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-italic.woff2?v=c72f3c64") format("woff2");
}

:root {
  --navy: #0d2a44;
  --ocean: #0b6fa4;
  --ocean-dark: #085a86;
  --sky: #e8f3fa;
  --coral: #b84a30;        /* white text on this: 5.2:1 (WCAG AA) */
  --coral-dark: #9e3f28;
  --sand: #faf6ef;
  --ink: #1f2933;
  --muted: #5b6875;
  --line: #e3e0d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 42, 68, .12);
  --wrap: 1120px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); }
a:hover { color: var(--ocean-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Accessibility helpers */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }
.hero :focus-visible, .hero-pause:focus-visible, .register :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--sky); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { border-color: currentcolor; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-outline { border-color: var(--ocean); color: var(--ocean); }
.btn-outline:hover { background: var(--ocean); color: #fff; }
.btn.is-disabled { cursor: default; }
.btn.is-disabled:hover { transform: none; }

/* Hero */
.hero {
  position: relative; color: #fff;
  min-height: min(82vh, 720px);
  display: grid; align-items: end;
  background: var(--navy) url("/images/DSC_8154-1280.webp?v=63fddeab") center 60% / cover no-repeat;
}
/* Rotating photos sit under the overlay; the overlay keeps white text readable on any of them. */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.is-current { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13, 42, 68, .3) 0%, rgba(13, 42, 68, .45) 40%, rgba(13, 42, 68, .9) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 64px; }
.hero-pause {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(13, 42, 68, .55); color: #fff;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.hero-pause:hover { background: rgba(13, 42, 68, .8); }
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: .25em; letter-spacing: -0.035em; }
.hero .eyebrow, .hero h1, .hero-meta { text-shadow: 0 1px 12px rgba(13, 42, 68, .55); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .85rem; opacity: .95; margin-bottom: .75em; }
.hero-meta { font-size: 1.2rem; margin-bottom: 1.6em; }
.hero-meta strong { font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner-page header */
.page-head { background: var(--navy); color: #fff; padding: 56px 0 44px; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-head p { margin: .5em 0 0; opacity: .85; font-size: 1.15rem; }

/* Sections */
main > section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.center { text-align: center; }
.notice { background: var(--sky); border-left: 4px solid var(--ocean); border-radius: 8px; padding: 14px 18px; margin-bottom: 24px; color: var(--navy); }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-logo { justify-self: center; width: min(320px, 100%); border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.lead { font-size: 1.2rem; }
.signoff { font-style: italic; color: var(--muted); }

/* Facts strip and small labels */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -44px; position: relative; z-index: 2; }
.fact { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.label { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--coral-dark); }
.fact .value { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.35rem; color: var(--navy); line-height: 1.25; margin-top: 4px; }
.fact .sub { color: var(--muted); font-size: .95rem; }
.cal-links { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.cal-links a { display: inline-block; padding: 4px 0; font-weight: 600; }

/* Speaker schedule */
.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.day { background: var(--sand); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--ocean); }
.day h3 { margin-bottom: 2px; }
.day .date { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { padding: 10px 0; border-top: 1px solid var(--line); }
.day li:first-child { border-top: 0; }
.day .time { display: block; font-weight: 700; color: var(--ocean-dark); font-size: .9rem; }
.day .who { display: block; font-weight: 600; }
.day .where { display: block; color: var(--muted); font-size: .92rem; }
.day .activity .who { color: var(--coral-dark); }
.day .tbd .who { font-weight: 500; font-style: italic; color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sky); color: var(--ocean-dark); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.schedule-note { text-align: center; margin: 24px 0 0; color: var(--muted); }

/* Registration */
.register { background: linear-gradient(135deg, var(--ocean) 0%, var(--navy) 100%); color: #fff; }
.register h2 { color: #fff; }
.register-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.prices { display: flex; gap: 16px; flex-wrap: wrap; }
.price { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); padding: 18px 22px; min-width: 170px; }
.price .amount { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 2.4rem; line-height: 1; }
.price .what { opacity: .85; font-size: .95rem; }
.note { font-size: .95rem; opacity: .9; margin-top: 18px; }

/* Cards (hotel, donate) */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.rate { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.rate small { font-family: var(--sans); font-weight: 400; letter-spacing: 0; font-size: 1rem; color: var(--muted); }
.detail-list { list-style: none; padding: 0; margin: 20px 0 24px; }
.detail-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.detail-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Flyer */
.flyer-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.flyer-preview { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Donate */
.funds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fund { border-top: 4px solid var(--coral); }
.fund .label { margin-bottom: 6px; }

/* Photo grid + lightbox (Photos page) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
/* The photo shrinks to leave room for the button bar, so nothing scrolls on any screen size. */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 96vh; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; }
.lightbox::backdrop { background: rgba(5, 15, 25, .9); }
.lightbox img { width: auto; height: auto; max-width: 94vw; max-height: calc(96vh - 64px); border-radius: 8px; }
.lightbox-bar { flex: none; display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.lightbox-bar button { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.lightbox-bar button:hover { background: rgba(255, 255, 255, .3); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin-inline: auto; }
.contact .fact { text-align: center; }
.contact a { text-decoration: none; font-weight: 700; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-text p { margin: 0; }
.footer-text .privacy { font-size: .85rem; margin-top: 4px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .about, .register-grid, .flyer-layout, .split { grid-template-columns: 1fr; }
  .about-logo { width: 220px; order: -1; }
}

@media (max-width: 760px) {
  .funds { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  main > section { padding: 52px 0; }
  .site-header .wrap { justify-content: center; padding: 8px 0; }
  .brand { font-size: 1.15rem; }
  .nav { gap: 0; justify-content: center; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .hero { min-height: 560px; }
  .hero .wrap { padding: 96px 0 72px; }
  .facts, .schedule, .contact { grid-template-columns: 1fr; }
  .facts { margin-top: -32px; }
  .card-body { padding: 24px; }
}

@media (max-width: 360px) {
  .nav a { padding: 5px 7px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery img, .hero-slides img { transition: none; }
}
