:root {
  --ink: #0a2a66;
  --text: #1c2336;
  --muted: #5b6275;
  --paper: #f3f6fb;
  --white: #fff;
  --blue: #1f4fa3;
  --red: #c8102e;
  --yellow: #9fc0ee;
  --green: #5f86c9;
  --violet: #e8727a;
  --line: #d3dcec;
  --font-head: "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Hero */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; padding-block: 72px; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: -0.02em; }
.tagline { font: 500 clamp(1.4rem, 3vw, 2rem)/1.2 var(--font-head); color: var(--yellow); margin: 12px 0 24px; }
.sub { max-width: 28ch; margin: 0 0 32px; color: #c9d2ee; }
.hero-art { width: 100%; height: auto; }
.btn {
  display: inline-block; background: var(--red); color: var(--white); text-decoration: none;
  font: 800 1rem/1 var(--font-head); padding: 16px 24px; border-radius: 999px;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }

/* Program */
.program { padding-block: 96px; }
.program-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.program-lead { position: sticky; top: 32px; }
.program-lead h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--muted);  }
.prose { max-width: 62ch; }
.prose section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border: 0; }
.prose h3 { font-size: 1.6rem; margin-bottom: 12px; }
.prose p { margin: 0 0 1em; }

/* Candidates */
.candidates { background: var(--white); padding-block: 96px; }
.candidates h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.section-note { color: var(--muted); margin: 12px 0 48px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.candidate-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
}
.candidate-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
.avatar { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px 18px 18px 56px; margin-bottom: 14px; }
.avatar svg, .profile-photo svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.candidate-btn .avatar svg { transition: transform .3s; }
.candidate-btn:hover .avatar svg { transform: scale(1.05); }
.cname { display: block; font: 800 1.1rem/1.25 var(--font-head); color: var(--ink); }
.cgroup { display: block; font: 500 .9rem/1.3 var(--font-head); color: var(--red); margin: 4px 0 8px; }
.cintro { display: block; font-size: .98rem; line-height: 1.5; color: var(--muted); }

/* Profile dialog */
.profile { border: 0; border-radius: 24px; padding: 0; width: min(860px, 100% - 32px); max-height: calc(100dvh - 32px); background: var(--white); color: var(--text); }
.profile::backdrop { background: rgba(20, 40, 90, .6); }
.profile form { position: absolute; top: 12px; right: 12px; margin: 0; }
.close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.profile-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px; }
.profile-photo { aspect-ratio: 4 / 5; border-radius: 18px 18px 18px 56px; overflow: hidden; }
.profile-body h3 { font-size: 2rem; margin-bottom: 6px; padding-right: 40px; }
.meta { color: var(--red); font: 500 1rem var(--font-head); margin: 0 0 16px; }
.profile-body h4 { font-size: 1.15rem; margin: 20px 0 8px; }
.profile-body ul { padding-left: 1.2em; margin: 0 0 1em; }

/* Footer */
footer { background: var(--ink); color: #c9d2ee; padding-block: 48px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer strong { color: var(--white); font: 800 1.4rem var(--font-head); }
footer p { margin: 4px 0 0; }
address { font-style: normal; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; gap: 32px; }
  .program-lead { position: static; }
}
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px; }
  .hero-art { max-width: 360px; }
  .program, .candidates { padding-block: 64px; }
  .profile-grid { grid-template-columns: 1fr; padding: 24px; }
  .profile-photo { max-width: 200px; }
}
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
