/* Jewish Voices — site styles
   Layout: one centred column about 720px wide. Orange sticky bar; speech-bubble splash on Home;
   sand-tinted bands; speech-bubble callouts; dark footer. Advocacy adds a sticky sidebar.
   Single light theme by design (brand colours on white). */

/* Fonts are self-hosted (SIL Open Font License) so headings and the wordmark always render.
   Google Fonts is linked as a backup under the plain family names. */
@font-face { font-family: "JV Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JV Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JV Geist"; src: url("fonts/geist-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Brand */
  --orange: #ED8A22;          /* theme colour: nav bar + h1/h2 + arrows */
  --orange-deep: #B85F0B;     /* hover states, small orange text on white */
  --orange-tint: #FDEBD7;
  /* Roles: a colour theme (e.g. theme-marigold.css) only needs to redefine these */
  --heading: var(--orange);   /* h1/h2 text */
  --mark: var(--orange);      /* bullets, link triangles, underlines */
  --on-accent: #FFFFFF;       /* text and logo on the accent colour */
  /* Speech-bubble palette, sampled from the new logo */
  --c-equality: #5EA9DD;
  --c-rights: #EDC048;
  --c-freedom: #A8D37F;
  --c-democracy: #D690BF;
  --c-peace: #F27181;
  --c-justice: #72C9BF;
  --c-palestine: #ED2A3A;
  /* Neutrals, warmed toward the orange */
  --paper: #FFFFFF;
  --sand: #FBF4EC;
  --ink: #241C16;
  --ink-2: #5E5248;
  --line: #EADCCC;
  --todo: #FFE45C;

  --f-display: "JV Archivo Black", "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "JV Geist", "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;

  --t-h1: clamp(2.2rem, 5vw, 3.4rem);
  --t-h2: clamp(1.55rem, 3vw, 2.1rem);
  --t-h3: 1.25rem;
  --t-lede: clamp(1.12rem, 1.8vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;

  --col: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --radius: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: calc(var(--col) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--t-h1); color: var(--heading); }
h2 { font-size: var(--t-h2); color: var(--heading); margin-bottom: 0.75em; }
h3 { font-size: var(--t-h3); color: var(--ink); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink); }
.meta {
  font-size: var(--t-small);
  color: var(--ink-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.flow > * + * { margin-top: 1em; }
.flow > h2 + * { margin-top: 0; }
strong { font-weight: 700; }

/* Inline links: orange underline, warm highlight on hover */
a { color: inherit; }
main a:not(.go):not(.btn):not(.toc) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background-color .15s, color .15s;
  border-radius: 3px;
}
main a:not(.go):not(.btn):not(.toc):hover { background: var(--orange-tint); color: var(--orange-deep); }

/* Action links: orange triangle marker, static */
.go {
  display: inline-flex; align-items: baseline; gap: .55em;
  font-weight: 700; color: var(--ink); text-decoration: none;
  line-height: 1.35;
}
.go::before, .btn::after {
  /* the disclosure triangle used by "Jump to a section", drawn so it looks the same everywhere */
  content: "";
  flex: none;
  width: .5em; height: .6em;
  background: var(--mark);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  align-self: center;
}
.go span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s, color .15s;
}
.go:hover span { text-decoration-color: var(--mark); color: var(--orange-deep); }
.links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: baseline; gap: .6em;
  background: var(--paper); color: var(--ink);
  font-weight: 700; text-decoration: none;
  padding: .8em 1.3em; border-radius: 999px;
  transition: box-shadow .15s, color .15s;
}
.btn:hover { box-shadow: 0 0 0 3px var(--ink); }

/* Bullets: bold orange circles */
ul.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
ul.dots > li { position: relative; padding-left: 1.75em; }
ul.dots > li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .85em; height: .85em; border-radius: 50%;
  background: var(--mark);
}

/* Placeholders still to resolve before launch */
mark.todo {
  background: var(--todo); color: var(--ink);
  font-weight: 700; padding: .05em .35em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--orange);
  color: var(--on-accent);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--on-accent); text-decoration: none;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .01em;
  text-transform: uppercase; line-height: 1;
}
.brand .logo { width: 46px; height: 46px; flex: none; }
/* Wordmark: the lettering from the Jewish Voices speech bubble, as an image so the typeface matches */
.brand .wordmark { width: auto; height: 16px; flex: none; }
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .brand .logo { width: 40px; height: 40px; }
  .brand .wordmark { height: 13px; }
}

#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.4vw, 28px); }
#site-nav a {
  position: relative; display: inline-block; padding-block: 6px;
  color: var(--on-accent); text-decoration: none;
  font-weight: 800; font-size: 1rem; letter-spacing: .01em;
}
#site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--on-accent); border-radius: 3px;
  opacity: 0; transition: opacity .15s;
}
#site-nav a:hover::after, #site-nav a[aria-current="page"]::after { opacity: 1; }

.menu-btn {
  display: none;
  background: transparent; color: var(--on-accent);
  border: 2px solid var(--on-accent); border-radius: 999px;
  font: 800 .95rem var(--f-body); padding: 6px 14px; cursor: pointer;
}

@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  #site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--orange);
    border-top: 2px solid color-mix(in srgb, var(--on-accent) 35%, transparent);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 2px; }
  #site-nav a { font-size: 1.2rem; padding-block: 10px; }
  #site-nav a::after { right: auto; width: 2.2em; }
}

/* ---------- Splash (home) ---------- */
.splash { padding-block: clamp(28px, 5vw, 56px) clamp(8px, 2vw, 16px); overflow: hidden; }
/* Bubbles are placed on an 800 x 352 grid; positions are chosen so no two bubbles touch */
.splash-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 352;
}
.splash-stage .b {
  position: absolute;
  left: calc(var(--x) / 800 * 100%);
  top: calc(var(--y) / 352 * 100%);
  width: calc(var(--w) / 800 * 100%);
  max-width: none;
  transform-origin: var(--ox, 6%) 100%;
  animation: pop .75s cubic-bezier(.2, 1.5, .45, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes pop {
  0%   { opacity: 0; transform: scale(.35) translateY(14px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.splash-lottie { width: 100%; }
@media (max-width: 600px) {
  .splash-stage {
    aspect-ratio: auto;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
    gap: 14px 12px;
  }
  .splash-stage .b { position: static; width: calc(var(--w) / 4.4 * 1%); }
  .splash-stage .b-main { width: 76%; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-stage .b { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.band { background: var(--sand); }
.band + .section, .section + .band { padding-top: clamp(44px, 6vw, 72px); }
.section.end-space, .doc-section.end-space { padding-bottom: clamp(64px, 9vw, 104px); }

.statement + .statement { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(36px, 4.5vw, 52px); border-top: 2px solid var(--line); }

.values > li strong {
  display: block; font-family: var(--f-display); font-weight: 400;
  font-size: 1.15rem; line-height: 1.25; margin-bottom: .3em;
}
.after-list { margin-top: 32px; }

/* Speech-bubble callout. The bottom-left corner is square so the left edge runs
   straight into the tail, as in the logo; the tail overlaps 2px to avoid a seam. */
.bubble {
  position: relative;
  background: var(--sand);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
  padding: clamp(22px, 3.5vw, 36px);
  margin-bottom: 44px;
}
.bubble::after {
  content: ""; position: absolute; left: 0; top: calc(100% - 2px);
  width: 46px; height: 40px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40'%3E%3Cpath d='M0 0H46L13 35.6C8.8 40.1 0 39 0 32.4Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 40'%3E%3Cpath d='M0 0H46L13 35.6C8.8 40.1 0 39 0 32.4Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.bubble.orange { background: var(--orange); color: var(--on-accent); }
.bubble.orange h2 { color: var(--on-accent); }
.band .bubble { background: var(--paper); }

/* Latest */
.latest h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.latest ol { list-style: none; margin: 0; padding: 0; display: grid; }
.latest li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px;
  padding-block: 14px; border-top: 2px solid var(--line);
}
.latest li:first-child { border-top: 0; padding-top: 0; }
.latest time {
  font-family: var(--f-display); color: var(--orange-deep);
  font-size: 1rem; line-height: 1.6; font-variant-numeric: tabular-nums;
}
.latest .go { margin-top: .35rem; font-size: .95rem; }
@media (max-width: 520px) { .latest li { grid-template-columns: 1fr; gap: 4px; } }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta p { font-size: var(--t-lede); line-height: 1.45; max-width: 40ch; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.page-hero .wrap::after {
  content: ""; grid-column: 1 / -1; height: 2px; background: var(--line); margin-top: clamp(4px, 1vw, 12px);
}
.page-hero .lede { margin-top: 16px; }
.hero-bubbles { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-bubbles img {
  width: var(--hw, 150px);
  animation: pop .7s cubic-bezier(.2, 1.5, .45, 1) both; animation-delay: var(--d, .1s);
  transform-origin: var(--ox, 6%) 100%;
}
@media (max-width: 640px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-bubbles { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 10px; order: -1; }
  .hero-bubbles img { width: calc(var(--hw, 150px) * .78); }
}
.hero-bubbles .pair { display: flex; align-items: flex-end; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .hero-bubbles img { animation: none; } }

/* ---------- Advocacy: sidebar ---------- */
.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); padding-block: clamp(44px, 6vw, 64px) 0; }
.intro { display: grid; gap: 12px; }
.entries { margin-top: 24px; display: grid; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 26px; border-top: 2px solid var(--line); }
.entry .links { margin-top: 4px; }
.entry .tag {
  justify-self: start;
  font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--orange); color: var(--on-accent); padding: 3px 10px; border-radius: 999px;
}

.sidebar { display: none; }
.sidebar .side-title, .jump summary {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2);
}
.sidebar ul, .jump ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.sidebar a { white-space: nowrap; }  /* stays on one line when the active link turns bold */
.sidebar a, .jump a {
  display: block; padding: 6px 0 6px 14px; border-left: 3px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3;
  transition: border-color .15s, color .15s;
}
.sidebar a:hover, .jump a:hover { border-color: var(--mark); color: var(--orange-deep); background: none; }
.sidebar a.active { border-color: var(--mark); color: var(--orange-deep); font-weight: 800; }

.jump { margin-top: 20px; background: var(--sand); border-radius: 14px; padding: 12px 16px; }
.jump summary { cursor: pointer; }
.jump summary::marker { color: var(--mark); }
.jump ul { margin-bottom: 4px; }

@media (min-width: 1060px) {
  .with-sidebar {
    display: grid; grid-template-columns: 215px minmax(0, var(--col));
    column-gap: 32px; justify-content: center; padding-inline: var(--gutter);
  }
  .with-sidebar .main-col { min-width: 0; }
  .with-sidebar .main-col .wrap { padding-inline: 0; max-width: none; }
  .sidebar {
    display: block; align-self: start;
    position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 28px);
    margin-top: clamp(36px, 5vw, 64px);
    max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto;
  }
  .jump { display: none; }
}
/* Wide screens: keep the text column centred and sit the sidebar in the left margin */
@media (min-width: 1340px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr) var(--col) minmax(0, 1fr); column-gap: 32px; }
  .sidebar { grid-column: 1; justify-self: end; width: 215px; }
  .with-sidebar .main-col { grid-column: 2; grid-row: 1; }
}

/* ---------- Events ---------- */
.event dl { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; }
.event dt { font-weight: 800; }
.event dd { margin: 0; min-width: 0; }
.photo-slot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.photo-slot div {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px;
  border: 2px dashed var(--mark); background: var(--orange-tint);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-size: var(--t-small); color: var(--ink-2); font-weight: 600;
}
@media (max-width: 520px) { .photo-slot { grid-template-columns: 1fr; } }
.subhead { font-size: 1.4rem; }

.table-wrap { overflow-x: auto; }
table.past { border-collapse: collapse; width: 100%; min-width: 480px; }
.past th, .past td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-top: 2px solid var(--line); }
.past th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-top: 0; }
.past td:first-child { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; width: 8.5rem; }

/* ---------- Contact ---------- */
.stack { display: grid; gap: clamp(36px, 5vw, 52px); }
.email-big {
  font-family: var(--f-display); font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  overflow-wrap: anywhere; line-height: 1.25; color: var(--on-accent);
}
.copy-btn {
  margin-top: 14px; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px;
  font: 800 .92rem var(--f-body); padding: 9px 16px; cursor: pointer;
}

form.join { display: grid; gap: 16px; background: var(--sand); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); scroll-margin-top: calc(var(--header-h) + 24px); }
form.join h2 { margin-bottom: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.15em; height: 1.15em; accent-color: var(--orange); margin-top: .25em; flex: none; }
form.join button {
  justify-self: start; border: 0; cursor: pointer;
  background: var(--orange); color: var(--paper);
  font: 800 1rem var(--f-body); padding: 12px 22px; border-radius: 999px;
  transition: background-color .15s;
}
form.join button:hover { background: var(--orange-deep); }
.form-note { font-size: var(--t-small); color: var(--ink-2); }
.form-status { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #F4ECE4; }
.footer-inner { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
.footer-brand strong { font-family: var(--f-display); font-weight: 400; color: var(--orange); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #F4ECE4; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.footer-links a:hover { color: var(--orange); border-color: var(--orange); }
.site-footer h2 { font-size: 1.2rem; color: var(--orange); margin-bottom: .6em; }
.site-footer .ack p { color: #E6DBD0; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); padding-block: 18px; font-size: .85rem; color: #BFB2A5; }
.page-hero + .section { padding-top: clamp(28px, 4vw, 40px); }

/* Event photos */
.photo { width: 100%; height: auto; border-radius: 16px; }
