:root {
  --background: #f7f8fa;
  --surface: #ffffff;
  --ink: #202c40;
  --muted: #5f6b7d;
  --line: #dce1e9;
  --blue: #203f7d;
  --soft-blue: #edf1f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.7 system-ui, sans-serif;
}

a {
  color: var(--blue);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2, h3, p {
  margin: 0 0 16px;
}

h1, h2, h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -2px;
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -1px;
}

h3 {
  font-size: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-block: 64px;
}

.ribbon {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 42px;
  background: var(--color);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.ribbon.white {

  background: #e1e5ec;
  box-shadow: inset 0 0 0 2px #b8c1cf;
}

.hero-ribbons {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-ribbons .ribbon:nth-child(even) {
  transform: translateY(7px);
}

.hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5.3vw, 64px);
  line-height: 1.08;
  letter-spacing: -2.5px;
}

.hero-copy h1 span {
  color: var(--blue);
}

.hero-copy > p {
  max-width: 540px;
  margin-block: 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
}

.text-link span {
  margin-left: 12px;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 46% 46% 8px 8px;
}

figcaption {
  padding-top: 18px;
  font-size: 14px;
}

figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

figcaption a {
  font-size: 13px;
}

.section {
  padding-block: 56px;
}

#szalagok {
  border-top: 1px solid var(--line);
}

.ribbon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.ribbon-card {
  position: relative;
  padding: 24px 24px 24px 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.ribbon-card > .ribbon {
  position: absolute;
  top: 24px;
  left: 24px;
}

.ribbon-card h3 {
  margin-bottom: 10px;
}

.ribbon-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.red { --color: #c15353; }
.yellow { --color: #edc54a; }
.green { --color: #659266; }
.blue { --color: #4d84bc; }
.purple { --color: #9871ae; }
.white { --color: #ffffff; }

.note {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--blue);
  color: var(--muted);
  font-size: 13px;
}

.note p {
  margin: 0;
}

.facts-section {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin-top: 28px;
  counter-reset: fact;
}

.facts-list article {
  padding-block: 22px;
  border-top: 1px solid var(--line);
  counter-increment: fact;
}

.facts-list h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.facts-list h3::before {
  margin-right: 10px;
  color: var(--blue);
  font-size: 13px;
  content: '0' counter(fact);
}

.facts-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.naming {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 64px;
  padding-block: 64px;
}

.naming-copy > p:last-child {
  color: var(--muted);
}

.vote-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  margin-bottom: 18px;
  font-weight: 600;
}

.name-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.name-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.name-options label:has(input:checked) {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.name-options input {
  margin: 0;
  accent-color: var(--blue);
}

.button {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: white;
  font: 600 14px/1.6 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #162e5e;
  color: white;
}

.button:disabled {
  opacity: .5;
  cursor: default;
}

.vote-card .button {
  width: 100%;
}

.privacy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.honey, #vote-status:empty {
  display: none;
}

.school-section {
  background: var(--blue);
  color: white;
}

.school-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 40px;
}

.school-logo img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: white;
}

.school-inner > div:nth-child(2) {
  flex: 1;
}

.school-inner h2 {
  font-size: 26px;
}

.school-inner p {
  margin: 0;
  color: #e1e7f2;
  font-size: 14px;
}

.light {
  border-color: white;
  background: white;
  color: var(--blue);
  white-space: nowrap;
}

.light:hover {
  background: var(--soft-blue);
  color: var(--blue);
}

.footer {
  padding-block: 24px;
  background: var(--soft-blue);
  color: var(--muted);
}

.footer-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}

.footer-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.footer-heading p {
  margin: 4px 0 0;
}

@media (max-width: 720px) {
  .hero, .naming {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px;
  }

  .hero {
    gap: 24px;
    padding-block: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 7vw, 44px);
    letter-spacing: -1px;
  }

  .hero-photo {
    width: min(100%, 400px);
    justify-self: center;
  }

  .ribbon-grid, .facts-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 40px;
  }

  .vote-card {
    padding: 20px;
  }

  .school-inner {
    flex-wrap: wrap;
    gap: 20px;
  }

  .school-inner > div:nth-child(2) {
    flex-basis: calc(100% - 124px);
  }
}
