/* Voice of Judah Norway — demo redesign */
:root {
  --blue: #0096cc;
  --blue-dark: #0076a3;
  --navy: #132333;
  --navy-2: #1b3348;
  --ink: #1c1b19;
  --ink-soft: #534f48;
  --cream: #f6f1e8;
  --cream-2: #efe7d8;
  --sand: #e4d6bf;
  --gold: #b0893d;
  --gold-soft: #c9a45a;
  --white: #fffcf8;
  --line: #d9cbb3;
  --danger-soft: #8a5a2a;
  --placeholder: #f3ead6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 35, 51, 0.08);
  --header-h: 4.5rem;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --max: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { top: 0.5rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}
.wrap-wide { width: min(calc(100% - 2rem), 82rem); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 2.6rem;
  width: auto;
}
@media (min-width: 700px) {
  .logo img { height: 3rem; }
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.15rem;
  margin-inline: auto;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--cream-2);
  color: var(--navy);
}
.site-nav a.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  margin-top: 0.35rem;
}
.site-nav a.cta:hover { background: var(--blue-dark); color: #fff; }

@media (max-width: 999px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
}
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .site-nav a { padding: 0.45rem 0.7rem; }
  .site-nav a.cta {
    margin-top: 0;
    margin-left: 0.4rem;
    padding-inline: 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  min-height: min(86vh, 42rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--navy);
}
.hero picture, .hero > img, .hero .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero .bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(19,35,51,0.15) 10%, rgba(19,35,51,0.55) 55%, rgba(19,35,51,0.88) 100%);
}
.hero-inner { padding: 7rem 0 3.25rem; }
.eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  margin: 0 0 0.35rem;
  max-width: 28ch;
  color: #fff;
}
.hero .cite {
  margin: 0 0 1.6rem;
  opacity: 0.85;
  font-size: 0.95rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Page header (inner pages) */
.page-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  background: var(--navy);
  min-height: 16rem;
  display: grid;
  align-items: end;
}
.page-hero .bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,35,51,0.35), rgba(19,35,51,0.82));
}
.page-hero-inner { padding: 5.5rem 0 2.25rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4rem;
}
.page-hero p { margin: 0; max-width: 40rem; opacity: 0.92; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section h2, .prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.section h2 + p.intro,
.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
}
.rule {
  width: 3rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.blockquote, blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--navy);
}
.blockquote cite, blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--cream); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-weight: 600;
}
.card p { margin: 0 0 1rem; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* Lists */
.help-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .help-list { grid-template-columns: repeat(2, 1fr); }
}
.help-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  position: relative;
}
.section-alt .help-list li { background: var(--cream); }
.help-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

/* Video */
.video-frame, .video-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.video-poster img, .video-frame iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
.video-poster .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  font-weight: 700;
}
.video-poster .play::before {
  content: "";
  width: 4.2rem; height: 4.2rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7.5v9l8-4.5-8-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 2rem;
  margin-bottom: 0.3rem;
}
.video-poster:hover .play::before { background-color: var(--blue-dark); }
.video-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0.7rem 0 0;
  color: var(--navy);
  line-height: 1.35;
}
.video-card p { margin: 0.25rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Gallery */
.gallery {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4/3;
}
.gallery a.portrait { aspect-ratio: 3/4; }
@media (min-width: 700px) {
  .gallery a.portrait { grid-row: span 2; aspect-ratio: auto; height: 100%; }
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,16,24,0.94);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1.5rem;
}
.lightbox:target { display: grid; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox .close {
  position: absolute;
  top: 0.8rem; right: 1rem;
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  line-height: 1;
  padding: 0.4rem;
}

/* Donate / facts */
.give-band {
  background: var(--navy);
  color: #fff;
}
.give-band h2 { color: #fff; }
.give-band p { color: rgba(255,255,255,0.88); }
.facts {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) { .facts { grid-template-columns: 1fr auto; align-items: center; } }
.give-box {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .give-box { grid-template-columns: auto 1fr; align-items: center; }
}
.give-box img { width: 9.5rem; height: auto; background: #fff; border-radius: 8px; }
.dl { margin: 0; }
.dl div { margin: 0 0 0.7rem; }
.dl dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 700;
}
.dl dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.dl dd a { color: inherit; text-decoration: none; }
.dl dd a:hover { text-decoration: underline; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .split.flip { grid-template-columns: 0.95fr 1.05fr; }
  .split.flip .split-media { order: 2; }
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.portrait-frame img { aspect-ratio: 4/3; object-position: center 20%; }

/* Placeholder */
.placeholder {
  border: 1px dashed var(--gold);
  background: var(--placeholder);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.placeholder strong { display: block; margin-bottom: 0.2rem; color: var(--navy); }

/* Links list */
.link-cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .link-cards { grid-template-columns: 1fr 1fr; } }
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.link-card:hover { border-color: var(--blue); }
.link-card h3 { margin: 0 0 0.3rem; font-family: var(--serif); color: var(--navy); font-size: 1.4rem; }
.link-card p { margin: 0; color: var(--ink-soft); }
.link-card .url { color: var(--blue-dark); font-weight: 700; margin-top: 0.6rem; display: inline-block; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #e8e4dc;
  padding: 3rem 0 1.25rem;
  font-size: 0.98rem;
}
.site-footer a { color: #fff; }
.foot-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.site-footer .social { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.site-footer .social a {
  display: grid;
  place-items: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
}
.site-footer .social a:hover { background: var(--blue); border-color: var(--blue); }
.site-footer svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.demo-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: rgba(232,228,220,0.75);
}
.demo-note a { color: inherit; }

/* Contact row */
.contact-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid .card h3 { font-size: 1.15rem; }

@media print {
  .site-header, .nav-toggle, .demo-note, .video-poster .play { display: none; }
  body { background: #fff; }
}
