:root {
    --ink: #071421;
    --ink-soft: #12283d;
    --paper: #fff6df;
    --panel: #fffdf7;
    --gold: #dcae42;
    --gold-deep: #a87316;
    --burgundy: #8a0f32;
    --blue: #061f35;
    --sky: #edf3f0;
    --muted: #667684;
    --line: rgba(8, 24, 39, 0.14);
    --shadow: 0 18px 50px rgba(7, 20, 35, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "David", serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(220, 174, 66, 0.26), transparent 30rem),
        linear-gradient(180deg, #fff5dd 0%, #eef3ef 42%, #fff6df 100%);
    color: var(--ink);
    line-height: 1.75;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -80px;
    right: 12px;
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    z-index: 100;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    background: linear-gradient(90deg, #020b16, var(--blue));
    border-bottom: 4px solid var(--gold);
    color: white;
}

.header-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.bh {
    color: var(--gold);
    font-weight: 800;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.header-kicker {
    color: #f1d99b;
    font-size: 0.95rem;
}

.site-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 22px 54px;
}

.hero {
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
    gap: 34px;
    align-items: center;
    padding-bottom: 28px;
}

.hero-copy {
    padding: 8px 0;
}

.eyebrow {
    color: var(--burgundy);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: clamp(2.35rem, 5.5vw, 5.2rem);
    line-height: 1.05;
    max-width: 790px;
    color: var(--ink);
    font-weight: 900;
    text-wrap: balance;
}

.hero-lead {
    margin-top: 22px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    color: var(--ink-soft);
    max-width: 720px;
    font-weight: 700;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-media {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-media img {
    width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #071421;
    border: 2px solid rgba(220, 174, 66, 0.5);
}

.cta-button,
.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cta-button {
    background: linear-gradient(180deg, #f6d777, var(--gold));
    color: #160d03;
    box-shadow: 0 12px 28px rgba(168, 110, 24, 0.28);
}

.cta-button:hover,
.secondary-button:hover,
button:hover {
    transform: translateY(-1px);
}

.secondary-button {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.urgent-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--line);
    box-shadow: var(--shadow);
    margin: 0 0 34px;
}

.urgent-panel > div {
    background: var(--panel);
    padding: 26px;
}

.panel-label {
    display: block;
    color: var(--burgundy);
    font-weight: 900;
    margin-bottom: 8px;
}

.urgent-panel strong {
    display: block;
    font-size: clamp(1.45rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.urgent-panel p {
    color: var(--muted);
    margin-top: 8px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.donation-card {
    position: sticky;
    top: 18px;
    background: linear-gradient(180deg, #071e33, #020b16);
    color: white;
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.donation-card h2 {
    font-size: 2rem;
    color: #f6d77f;
}

.card-note,
.privacy-micro,
.cancel-note,
.paybox-note,
.takbull-note {
    color: rgba(255, 255, 255, 0.76);
}

.takbull-note {
    margin: -2px 0 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.amount-row,
.frequency-toggle,
.pill-group {
    display: grid;
    gap: 9px;
}

.amount-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 0;
}

button,
input {
    font: inherit;
}

.amount-pill,
.freq-btn,
.pill-btn {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.amount-pill {
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 8px 6px;
}

.amount-pill strong {
    font-size: 1.1rem;
    line-height: 1.15;
}

.amount-pill span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.15;
}

.amount-pill.wide {
    grid-column: span 1;
}

.amount-pill.active,
.freq-btn.active,
.pill-btn.active {
    background: var(--gold);
    color: #130d04;
    border-color: var(--gold);
}

.amount-pill.active span {
    color: rgba(19, 13, 4, 0.72);
}

.custom-amount-row {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
}

.custom-amount-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.9rem;
}

.custom-amount-controls {
    display: grid;
    gap: 9px;
}

.custom-amount-input {
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 800;
    text-align: center;
}

.custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.donor-info-form {
    display: grid;
    gap: 12px;
}

.form-title,
.frequency-label,
.duration-label {
    font-weight: 900;
    color: #f7df9c;
}

label {
    display: grid;
    gap: 4px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
}

input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    border-radius: 8px;
    padding: 9px 12px;
}

.giving-frequency {
    margin: 18px 0;
}

.frequency-toggle {
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
}

.duration-pills {
    margin-top: 14px;
}

.pill-group {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 8px;
}

.donation-card .cta-button {
    width: 100%;
    margin: 18px 0 10px;
}

.paybox-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    background: #f5f1e5;
    color: #071421;
    border: 1px solid rgba(220, 174, 66, 0.65);
    font-weight: 900;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.paybox-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.paybox-note {
    margin: 8px 0 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.page-content {
    display: grid;
    gap: 24px;
}

.story-section,
.full-section,
.privacy-section,
.faq-section,
.impact-grid {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 10px 30px rgba(7, 20, 35, 0.06);
}

.story-section h2,
.full-section h2,
.privacy-section h2,
.faq-section h2,
.impact-grid h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.18;
    color: var(--blue);
    margin-bottom: 14px;
}

.page-content p {
    font-size: 1.16rem;
    margin-top: 12px;
}

.strong-line {
    color: var(--burgundy);
    font-weight: 900;
    font-size: 1.35rem !important;
}

.accent-section {
    background: linear-gradient(135deg, #fff9e9, #eef6f6);
    border-color: rgba(214, 163, 58, 0.4);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.impact-grid h2 {
    grid-column: 1 / -1;
}

.impact-card {
    min-height: 138px;
    background: #f8fbfb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.impact-card span {
    display: inline-block;
    color: var(--burgundy);
    font-weight: 900;
    margin-bottom: 8px;
}

details {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

details:first-of-type {
    border-top: 0;
}

summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--blue);
    font-size: 1.18rem;
}

.final-cta {
    margin-top: 36px;
    text-align: center;
    background: linear-gradient(135deg, var(--burgundy), #4b0719);
    color: white;
    padding: clamp(30px, 6vw, 58px);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.final-paybox {
    max-width: 340px;
    margin: 12px auto 0;
}

.final-cta p {
    color: #f3d98d;
    font-weight: 900;
    font-size: 1.2rem;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
    margin: 10px auto 22px;
    max-width: 900px;
}

.cta-button.large {
    min-height: 62px;
    font-size: 1.2rem;
}

.site-footer {
    background: #061523;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    padding: 24px;
}

.site-footer a {
    color: #f3d98d;
}

@media (max-width: 900px) {
    .hero,
    .content-layout,
    .urgent-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 16px;
    }

    .hero-media img {
        max-height: none;
    }

    .donation-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .header-content {
        align-items: flex-start;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }

    main {
        padding-inline: 14px;
    }

    .hero-actions,
    .cta-button,
    .secondary-button {
        width: 100%;
    }

    .amount-row,
    .pill-group,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .frequency-toggle {
        grid-template-columns: 1fr;
    }

    .story-section,
    .full-section,
    .privacy-section,
    .faq-section,
    .impact-grid,
    .donation-card {
        padding: 22px;
    }
}

/* Letters from the family (added 2026-06-24) */
.letters-section {
    background: linear-gradient(135deg, #fffaf0, #f6efe2);
    border: 1px solid rgba(214, 163, 58, 0.4);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 10px 30px rgba(7, 20, 35, 0.06);
    display: grid;
    gap: 22px;
}

.letters-section h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.18;
    color: var(--burgundy);
}

.letter {
    margin: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-right: 5px solid var(--gold);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 6px 18px rgba(7, 20, 35, 0.05);
}

.letter blockquote {
    margin: 0;
}

.letter blockquote p {
    font-size: 1.14rem;
    line-height: 1.8;
    margin-top: 12px;
}

.letter blockquote p:first-child {
    margin-top: 0;
}

.letter figcaption {
    margin-top: 16px;
    font-weight: 900;
    color: var(--blue);
}

/* Featured source pull-quote (added 2026-06-24) */
.source-quote {
    margin: 36px 0 0;
    text-align: center;
    direction: rtl;
    unicode-bidi: isolate;
    background: linear-gradient(135deg, #071e33, #020b16);
    color: #f6d77f;
    border: 2px solid rgba(220, 174, 66, 0.5);
    border-radius: 8px;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow);
}

.source-quote p,
.source-quote cite {
    direction: rtl;
    unicode-bidi: isolate;
    letter-spacing: normal;
    word-spacing: normal;
    font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", "David Libre", "Times New Roman", Arial, sans-serif;
}

.source-quote p {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.55;
    font-weight: 900;
    margin: 0 auto;
    max-width: 820px;
}

.source-quote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* In-flow quote band (Rambam, inside article grid) — same visual language, grid-gap handles spacing */
.source-quote.in-flow {
    margin: 0;
}
