  @import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300;400;500;600;700;900&family=Archivo:wght@400;500;600;700&display=swap');

  :root {
    --bg: #FBF5E8;
    --bg-elevated: #F3E8D1;
    --bg-elevated-2: #EDE0C3;
    --text: #27200F;
    --text-muted: #6B5C40;
    --line: #DCCB9F;
    --gold-light: #CB9B3F;
    --gold-deep: #8F611D;
    --wine: #6E2B3B;
    --wine-soft: #F0DEDD;
    --shadow: 0 1px 2px rgba(60, 40, 10, 0.06);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1C150D;
      --bg-elevated: #241B10;
      --bg-elevated-2: #2C2113;
      --text: #F2E6CC;
      --text-muted: #BDA67D;
      --line: #4A3B23;
      --gold-light: #E3BD72;
      --gold-deep: #C99A42;
      --wine: #D08798;
      --wine-soft: #3A2024;
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
  }
  :root[data-theme="dark"] {
    --bg: #1C150D;
    --bg-elevated: #241B10;
    --bg-elevated-2: #2C2113;
    --text: #F2E6CC;
    --text-muted: #BDA67D;
    --line: #4A3B23;
    --gold-light: #E3BD72;
    --gold-deep: #C99A42;
    --wine: #D08798;
    --wine-soft: #3A2024;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  * { box-sizing: border-box; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.55;
  }

  h1, h2, h3, .serif {
    font-family: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    text-wrap: balance;
    color: var(--text);
  }

  a { color: inherit; }

  .wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 28px;
  }

  /* ---------- header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    max-width: 1060px;
    margin: 0 auto;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img { height: 42px; width: auto; max-width: none; flex-shrink: 0; display: block; }
  nav { display: flex; align-items: center; gap: 28px; }
  nav a {
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s ease;
  }
  nav a:hover, nav a:focus-visible { color: var(--gold-deep); }
  .nav-cta {
    padding: 9px 18px;
    border-radius: 3px;
    background: var(--wine);
    color: #FBF3E9 !important;
    font-size: 0.8rem;
  }
  .nav-donate {
    padding: 9px 18px;
    border-radius: 3px;
    border: 1px solid var(--gold-deep);
    color: var(--gold-deep) !important;
    font-size: 0.8rem;
  }
  .nav-donate:hover {
    background: var(--gold-deep);
    color: #FBF3E9 !important;
  }
  .besd {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
  }
  .menu-toggle { display: none; }

  @media (max-width: 760px) {
    nav .nav-links { display: none; }
    .menu-toggle {
      display: inline-flex;
      background: none;
      border: 1px solid var(--line);
      border-radius: 3px;
      padding: 8px 12px;
      font-size: 0.78rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text);
      cursor: pointer;
    }
    nav { gap: 12px; }
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 640px 420px at 50% -10%, color-mix(in srgb, var(--gold-light) 28%, transparent), transparent 70%);
    pointer-events: none;
  }
  .hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 88px 28px 76px;
    text-align: center;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 22px;
  }
  .eyebrow::before, .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold-deep);
    opacity: 0.6;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 24px;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--gold-deep);
  }
  .hero p.lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
  }
  .hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary {
    background: var(--wine);
    color: #FBF3E9;
    box-shadow: var(--shadow);
  }
  .btn-primary:hover { background: color-mix(in srgb, var(--wine) 88%, black); }
  .btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
  }
  .btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

  /* ---------- sections generic ---------- */
  section { padding: 76px 0; }
  .section-head {
    max-width: 620px;
    margin: 0 0 44px;
  }
  .section-head .eyebrow { margin-bottom: 14px; }
  .section-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 0 0 14px;
  }
  .section-head p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
  }
  .divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
  }

  /* ---------- photo strip ---------- */
  .photos {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .photos-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 72px 28px;
  }
  .photos-head {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 36px;
  }
  .photos-head h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin: 0 0 10px;
  }
  .photos-head p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }
  .photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  figure.photo-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .photo-crop {
    width: 100%;
    background-repeat: no-repeat;
  }
  .photo-crop.group {
    aspect-ratio: 4 / 3;
    background-image: url('photo-group.jpg');
    background-size: cover;
    background-position: center 30%;
  }
  .photo-crop.shabbat {
    aspect-ratio: 4 / 3;
    background-image: url('photo-shabbat-grad-src.png');
    background-size: cover;
    background-position: 50% 78%;
  }
  .photo-crop.family {
    aspect-ratio: 4 / 3;
    background-image: url('photo-minigolf.jpg');
    background-size: cover;
    background-position: center 40%;
  }
  .photo-crop.sukkot {
    aspect-ratio: 4 / 3;
    background-image: url('photo-sukkot.jpg');
    background-size: cover;
    background-position: center 35%;
  }
  .photo-crop.learning {
    aspect-ratio: 4 / 3;
    background-image: url('photo-learning.jpg');
    background-size: cover;
    background-position: center 40%;
  }
  .photo-crop.backyard {
    aspect-ratio: 4 / 3;
    background-image: url('photo-backyard.jpg');
    background-size: cover;
    background-position: center 30%;
  }
  @media (max-width: 720px) {
    .photo-strip { grid-template-columns: 1fr; }
  }

  /* ---------- testimonials ---------- */
  .testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .testimonial {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .testimonial .mark {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gold-deep);
    opacity: 0.6;
  }
  .testimonial-quote {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.1rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--text-muted);
    min-height: 3.3em;
    outline: none;
    border-radius: 3px;
  }
  .testimonial-quote:focus {
    color: var(--text);
    outline: 2px solid var(--gold-deep);
    outline-offset: 4px;
  }
  .testimonial-attr {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-deep);
    outline: none;
    border-radius: 3px;
  }
  .testimonial-attr:focus {
    outline: 2px solid var(--gold-deep);
    outline-offset: 4px;
  }
  @media (max-width: 720px) {
    .testimonials { grid-template-columns: 1fr; }
  }

  /* ---------- events ---------- */
  .events-list {
    display: flex;
    flex-direction: column;
  }
  .event-row {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  .event-row:first-child { border-top: 1px solid var(--line); }
  .date-tile {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 0 8px;
    background: var(--bg-elevated);
  }
  .date-tile .mon {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wine);
  }
  .date-tile .day {
    display: block;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
  }
  .event-info h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    font-weight: 600;
  }
  .event-info p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  .event-info .tags {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--wine-soft);
    color: var(--wine);
  }
  .event-row .btn { white-space: nowrap; }

  @media (max-width: 620px) {
    .event-row {
      grid-template-columns: 56px 1fr;
    }
    .event-row .btn {
      grid-column: 1 / -1;
      justify-self: start;
      margin-top: 4px;
    }
    .date-tile .day { font-size: 1.2rem; }
  }

  .note-example {
    margin-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
  }

  /* ---------- micro torah ---------- */
  .learning {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .learning-head {
    max-width: 560px;
    margin: 0 auto 36px;
    text-align: center;
  }
  .learning-head .eyebrow { justify-content: center; }
  .learning-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 0 0 14px;
  }
  .learning-head p {
    color: var(--text-muted);
    margin: 0;
  }
  .learning-form {
    max-width: 480px;
    margin: 0 auto;
  }
  .partner-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 2px 0 4px;
  }
  textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    resize: vertical;
    min-height: 72px;
  }

  /* ---------- instagram ---------- */
  .ig-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .ig-head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 8px; }
  .ig-handle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
  }
  .ig-handle a { color: var(--gold-deep); text-decoration: none; font-weight: 600; }
  .ig-handle a:hover { text-decoration: underline; }
  .ig-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .ig-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .ig-tile.ig-1 { background-image: url('photo-group.jpg'); background-position: center 25%; }
  .ig-tile.ig-2 { background-image: url('photo-family.jpg'); background-position: center 30%; }
  .ig-tile.ig-3 { background-image: url('ig-tefillin.jpg'); background-position: center 35%; }
  .ig-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,14,5,0.45), transparent 45%);
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .ig-tile:hover::after { opacity: 1; }
  .ig-tile svg {
    position: absolute;
    bottom: 10px;
    left: 10px;
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .ig-tile:hover svg { opacity: 1; }
  .ig-note {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
  }

  /* ---------- donate ---------- */
  .donate {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .donate-head {
    max-width: 560px;
    margin: 0 auto 32px;
    text-align: center;
  }
  .donate-head .eyebrow { justify-content: center; }
  .donate-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    margin: 0 0 14px;
  }
  .donate-head p {
    color: var(--text-muted);
    margin: 0;
  }
  .donate-embed {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .donate-embed iframe {
    display: block;
    width: 100%;
    border: none;
  }
  @media (max-width: 620px) {
    .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  }

  /* ---------- join / form ---------- */
  .join {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .join h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
  .join p.intro { color: var(--text-muted); margin: 0 0 20px; }
  .join ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .join ul li {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  .join ul li::before {
    content: "✦";
    color: var(--gold-deep);
    font-size: 0.75rem;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px;
    box-shadow: var(--shadow);
  }
  .field { display: flex; flex-direction: column; gap: 6px; }
  label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  input[type="text"], input[type="email"] {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
  }
  input:focus-visible, .btn:focus-visible, nav a:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 2px;
  }
  .checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin: 2px 0 4px;
  }
  @media (max-width: 420px) {
    .checks { grid-template-columns: 1fr; }
  }
  .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text);
  }
  .check-row input { accent-color: var(--wine); width: 15px; height: 15px; }
  form .btn-primary { margin-top: 6px; width: 100%; text-align: center; }
  .form-note {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
  }

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

  /* ---------- footer ---------- */
  footer {
    padding: 52px 0 40px;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
  }
  .footer-brand { display: flex; align-items: center; gap: 10px; }
  .footer-brand img { height: 30px; width: auto; max-width: none; flex-shrink: 0; }
  .footer-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
  }
  .footer-meta a { text-decoration: underline; text-decoration-color: var(--line); }
  .footer-social { display: flex; gap: 14px; }
  .footer-social a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
  }
  .footer-social a:hover { color: var(--gold-deep); }
  .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }

  /* ---------- about page ---------- */
  .page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 640px 360px at 50% -10%, color-mix(in srgb, var(--gold-light) 24%, transparent), transparent 70%);
    pointer-events: none;
  }
  .page-hero-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 28px 56px;
    text-align: center;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 4.4vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 18px;
  }
  .page-hero p.lede {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
  }

  .story {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .story-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 28px;
    text-align: center;
  }
  .story blockquote {
    margin: 0 0 28px;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.42;
    color: var(--text);
    text-wrap: balance;
  }
  .story blockquote span { color: var(--gold-deep); font-style: italic; }
  .story-body {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: left;
  }
  .story-body p + p { margin-top: 14px; }

  .leaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .leader {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px;
    background: var(--bg);
  }
  .leader-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }
  .leader-monogram {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated-2);
    border: 1px solid var(--line);
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.3rem;
    color: var(--gold-deep);
  }
  .leader h3 { font-size: 1.15rem; margin: 0 0 4px; }
  .leader .role {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-deep);
  }
  .leader-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    min-height: 4.5em;
    outline: none;
    border-radius: 3px;
  }
  .leader-bio:focus {
    color: var(--text);
    outline: 2px solid var(--gold-deep);
    outline-offset: 4px;
  }
  @media (max-width: 720px) {
    .leaders { grid-template-columns: 1fr; }
  }

  .about-cta {
    text-align: center;
  }
  .about-cta h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin: 0 0 16px;
  }
  .about-cta p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
  }
  .about-cta .hero-ctas { margin-top: 20px; }
