/* ===== Fonts: Readex Pro (SIL OFL 1.1), self-hosted, works offline ===== */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(../fonts/readex-pro-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(../fonts/readex-pro-latin-wght-normal.woff2) format('woff2');
  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;
}

/* ===== Theme: baby blue ===== */
:root {
  --bg: #F3FAFF;
  --sky-100: #E3F3FF;
  --sky-200: #CBE8FB;
  --baby: #9AD2F5;
  --blue: #3E9BE0;
  --deep: #1F6DB5;
  --navy: #0D2B52;
  --ink: #14283F;
  --muted: #55708C;
  --line: #D3E8F6;
  --gold: #D9A93B;
  --gold-soft: #FFF2CF;
  --white: #fff;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
@media (min-width: 768px) { .wrap { padding-inline: 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Top line ===== */
.topline { background: var(--navy); color: #fff; font-size: 13px; }
.topline .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topline .who { display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 0; }
.topline .who img { width: 28px; height: 28px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; }
.topline .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topline .when { flex: none; color: var(--baby); font-weight: 600; }
@media (max-width: 520px) { .topline .who span { display: none; } .topline .wrap { justify-content: center; } }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, #E9F6FF 0%, #C3E5FB 52%, #98D1F5 100%); padding-block: 40px 96px; }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,0) 68%); inset-inline-end: -160px; top: -200px; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset-inline: -10%; bottom: -70px; height: 140px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding-block: 64px 120px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.hero-text { order: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.75); border: 1px solid #fff; border-radius: 14px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--deep); box-shadow: 0 6px 18px -10px rgba(31,109,181,.5); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.fullname { margin-top: 22px; font-size: clamp(15px, 2.2vw, 20px); font-weight: 500; color: var(--muted); }
.fullname b { color: var(--navy); font-weight: 600; }
h1.nick { font-size: clamp(54px, 11vw, 120px); font-weight: 700; line-height: 1.05; color: var(--navy); letter-spacing: -.01em; margin-top: 2px; }
h1.nick span { background: linear-gradient(100deg, var(--deep), var(--blue) 60%, #6CC0F4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seat { display: inline-block; margin-top: 14px; background: linear-gradient(180deg, #FFE9A8, var(--gold-soft)); color: #6A4A00; border: 1.5px solid var(--gold); border-radius: 12px; padding: 6px 22px; font-weight: 600; font-size: clamp(16px, 2.4vw, 22px); }
.slogan { margin-top: 26px; font-size: clamp(17px, 2.6vw, 24px); font-weight: 600; color: var(--navy); line-height: 1.7; max-width: 26em; text-wrap: balance; }
.slogan span, .slogan em { white-space: nowrap; }
.slogan em { font-style: normal; color: var(--deep); }
.hero-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.datecard { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px 20px 10px 16px; box-shadow: 0 14px 30px -18px rgba(13,43,82,.5); }
.datecard .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--sky-100); color: var(--deep); display: grid; place-items: center; flex: none; }
.datecard .ico svg { width: 24px; height: 24px; }
.datecard small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.datecard strong { display: block; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 18px; padding: 0 26px; font-weight: 600; font-size: 16px; min-height: 58px; box-shadow: 0 14px 26px -14px rgba(13,43,82,.8); transition: transform .15s, background .15s; }
@media (hover: hover) { .cta:hover { transform: translateY(-2px); background: #08203f; } }
.cta svg { width: 20px; height: 20px; }

/* Portrait: arch frame */
.portrait { order: 1; position: relative; max-width: 400px; width: 100%; margin-inline: auto; }
@media (min-width: 900px) { .portrait { order: 2; max-width: 440px; } .hero-text { order: 1; } }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 36px 36px; overflow: hidden; background: #F4EFE8; border: 6px solid #fff; box-shadow: 0 0 0 2px var(--baby), 0 40px 70px -34px rgba(13,43,82,.7); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.portrait::before { content: ""; position: absolute; inset: 22px -18px -18px 18px; border-radius: 999px 999px 40px 40px; border: 2px dashed rgba(31,109,181,.45); z-index: 0; }
.arch { z-index: 1; }
.ballot { position: absolute; z-index: 3; inset-inline-end: -10px; bottom: 28px; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1F6DB5, var(--navy)); color: #fff; display: grid; place-items: center; align-content: center; border: 4px solid var(--gold); box-shadow: 0 18px 34px -14px rgba(13,43,82,.9); text-align: center; line-height: 1; }
.ballot small { font-size: 13px; font-weight: 500; color: #CFE7FA; margin-bottom: 2px; }
.ballot b { font-size: 50px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.club { position: absolute; z-index: 3; inset-inline-start: -14px; top: 8px; width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-200); box-shadow: 0 14px 28px -12px rgba(13,43,82,.6); overflow: hidden; }
.club img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .ballot { width: 96px; height: 96px; inset-inline-end: -4px; } .ballot b { font-size: 40px; } .club { width: 78px; height: 78px; inset-inline-start: -6px; } }

/* ===== Slogan strip ===== */
.strip { background: var(--navy); color: #fff; }
.strip ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .strip ul { grid-template-columns: repeat(3, 1fr); } }
.strip li { padding: 18px 16px; text-align: center; font-weight: 600; font-size: clamp(15px, 2vw, 18px); border-bottom: 1px solid rgba(255,255,255,.12); }
.strip li b { color: var(--baby); font-weight: 700; }
@media (min-width: 720px) { .strip li { border-bottom: 0; border-inline-start: 1px solid rgba(255,255,255,.12); } .strip li:first-child { border-inline-start: 0; } }
.strip li:last-child { border-bottom: 0; }

/* ===== Program ===== */
.program { padding-block: 64px 24px; }
.program-head { display: grid; gap: 10px; margin-bottom: 36px; }
@media (min-width: 800px) { .program-head { grid-template-columns: 1fr auto; align-items: end; } }
.kicker { display: inline-flex; width: fit-content; align-items: center; gap: 8px; color: var(--deep); font-weight: 600; font-size: 14px; }
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); }
.program-head h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.25; color: var(--navy); }
.program-head p { color: var(--muted); font-weight: 500; font-size: 16px; max-width: 30ch; }

.points { list-style: none; padding: 0; counter-reset: pt; display: grid; gap: 14px; }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; gap: 20px; } }
.point { counter-increment: pt; position: relative; display: flex; align-items: flex-start; gap: 18px; min-height: 124px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 22px 20px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.point::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(180deg, var(--baby), var(--blue)); }
@media (hover: hover) { .point:hover { transform: translateY(-3px); border-color: var(--baby); box-shadow: 0 22px 40px -26px rgba(31,109,181,.6); } }
.point .n { position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, var(--baby), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: 0 10px 18px -10px rgba(31,109,181,.9); }
.point p { position: relative; z-index: 1; font-size: clamp(16px, 2vw, 18px); font-weight: 600; line-height: 1.85; color: var(--navy); padding-top: 4px; }

/* ===== Vote banner ===== */
.vote { padding-block: 40px 72px; }
.vote-card { position: relative; overflow: hidden; border-radius: 36px; background: linear-gradient(135deg, #0D2B52 0%, #164A86 55%, #2A82CF 100%); color: #fff; display: grid; gap: 0; }
@media (min-width: 820px) { .vote-card { grid-template-columns: 1.2fr .8fr; } }
.vote-card::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; border: 56px solid rgba(154,210,245,.14); inset-inline-end: -120px; top: -160px; pointer-events: none; }
.vote-body { position: relative; z-index: 1; padding: 36px 28px; display: grid; align-content: center; gap: 16px; }
@media (min-width: 820px) { .vote-body { padding: 56px 52px; } }
.vote-body .tag { width: fit-content; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 4px 16px; font-weight: 600; font-size: 14px; color: var(--baby); }
.vote-body h2 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.vote-body h2 em { font-style: normal; color: #FFD978; }
.vote-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.vote-meta span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 16px; font-weight: 600; font-size: 15px; }
.vote-meta b { color: #FFD978; font-weight: 700; }
.vote-photo { position: relative; min-height: 300px; }
.vote-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; mask-image: linear-gradient(to right, transparent 0, #000 22%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); }
@media (max-width: 819px) { .vote-photo { min-height: 340px; order: -1; } .vote-photo img { mask-image: linear-gradient(to bottom, #000 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); object-position: 50% 5%; } }

/* ===== Footer ===== */
footer { background: var(--navy); color: #fff; }
footer .wrap { padding-block: 32px; display: grid; gap: 14px; justify-items: center; text-align: center; }
footer .who { display: flex; align-items: center; gap: 14px; }
footer .who img { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--baby); object-fit: cover; }
footer .who b { display: block; font-size: 18px; font-weight: 700; }
footer .who small { display: block; color: var(--baby); font-size: 13px; font-weight: 500; text-align: start; }
footer .line { color: #A9C9E6; font-size: 13px; font-weight: 500; }
footer small, footer .line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
footer small span, footer .line span { white-space: nowrap; }

/* ===== Responsive polish (phones + tablets) ===== */
/* Stacked hero (< 900px): center everything so portrait and text share one axis */
@media (max-width: 899px) {
  .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .slogan { margin-inline: auto; }
  .hero-row { justify-content: center; }
  .eyebrow { text-align: center; }
}
/* Phones */
@media (max-width: 600px) {
  .hero-row { width: 100%; flex-direction: column; }
  .hero-row .datecard, .hero-row .cta { width: 100%; justify-content: center; }
  .datecard { justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding-block: 24px 64px; }
  .hero .wrap { gap: 26px; }
  /* smaller portrait so the name + date are visible without scrolling far */
  .portrait { max-width: 270px; }
  .arch { aspect-ratio: 4 / 4.7; }
  .portrait::before { inset: 16px -8px -10px 8px; }
  .fullname { margin-top: 14px; }
  .slogan { margin-top: 18px; }
  .hero-row { margin-top: 22px; }
  .program { padding-block: 44px 8px; }
  .program-head { margin-bottom: 24px; }
  .points { gap: 12px; }
  .point { min-height: 0; gap: 14px; padding: 16px 16px 16px 14px; border-radius: 20px; }
  .point .n { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }
  .point p { font-size: 16px; line-height: 1.8; padding-top: 2px; }
  .vote { padding-block: 28px 48px; }
}
/* Closing banner on small screens: photo as a rounded picture on top, no fade / ring */
@media (max-width: 819px) {
  .vote-card::before { display: none; }
  .vote-photo { order: -1; min-height: 0; height: min(86vw, 380px); margin: 14px 14px 0; border-radius: 26px; overflow: hidden; }
  .vote-photo img { mask-image: none; -webkit-mask-image: none; object-position: 50% 6%; }
  .vote-body { padding: 24px 22px 30px; }
}
/* Footer stacked + centered on phones */
@media (max-width: 560px) {
  footer .who { flex-direction: column; gap: 10px; }
  footer .who small { text-align: center; max-width: 24ch; margin-inline: auto; }
  footer .line { max-width: 34ch; }
}

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