/* ==========================================================================
   IAEJ – base styles (all pages)
   ========================================================================== */

@font-face {
	font-family: "Omes";
	src: url("../fonts/omes-bold-fm.woff2") format("woff2"), url("../fonts/omes-bold-fm.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Heebo – self-hosted (no Google request), Hebrew + Latin subsets */
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-hebrew-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-hebrew-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	/* Colors (from Figma) */
	--c-navy: #172c4c;
	--c-sky: #6bcde6;
	--c-yellow: #f4eb23;
	--c-green: #2dac0e;
	--c-paper: #f5f5f5;
	--c-white: #fff;
	--c-ink: #000;
	--c-muted: rgba(0, 0, 0, 0.55);
	--c-error: #b3001b;

	/* Type */
	--f-display: "Omes", "Heebo", system-ui, sans-serif;
	--f-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	/* Layout */
	--gutter: clamp(16px, 4vw, 24px);
	--content: 1296px;
	--radius: 20px;
	--radius-lg: 40px;
	--border: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 18px;
	line-height: 1.5;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

.container {
	width: 100%;
	max-width: calc(var(--content) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	inset-inline-start: 12px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--c-yellow);
	color: var(--c-navy);
	font-weight: 700;
	border-radius: 12px;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
	outline: 3px solid var(--c-yellow);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--c-navy);
}

/* Generic site chrome (pages other than the donation page) */
.site-header { background: var(--c-navy); color: var(--c-paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-brand__name { font-family: var(--f-display); font-size: 26px; text-decoration: none; }
.site-brand img { max-height: 56px; width: auto; display: block; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--c-yellow); }

.site-main { padding-block: 48px 80px; min-height: 50vh; }
.page-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); color: var(--c-navy); line-height: 1.15; margin-bottom: 24px; }
.entry + .entry { margin-top: 32px; }
.entry__title { font-size: 26px; }
.entry__content > * + * { margin-top: 1em; }

.site-footer { background: var(--c-navy); color: rgba(245, 245, 245, 0.85); font-size: 15px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--c-yellow); }
