:root {
  color: #171d4f;
  background: #f7f8fc;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  --navy: #10166b;
  --blue: #2539bd;
  --cyan: #55c9e8;
  --pink: #e65bc7;
  --line: #d9dced;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.masthead,
.editions,
footer {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.masthead {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  color: #9bcde1;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-label,
.current-site,
.eyebrow,
.section-heading > p,
.status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-label {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.current-site {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-site span,
.hero-link span {
  color: var(--pink);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(10, 15, 102, 0.98) 0%, rgba(10, 15, 102, 0.86) 42%, rgba(10, 15, 102, 0.18) 78%),
    url("/2025/img/efecs-banner-background.jpg") center 46% / cover;
}

.hero::after {
  position: absolute;
  right: -130px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border: 2px solid rgba(85, 201, 232, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(85, 201, 232, 0.08),
    0 0 0 104px rgba(230, 91, 199, 0.06);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  padding: 105px 0 92px;
}

.eyebrow {
  margin: 0 0 32px;
  color: var(--cyan);
}

h1,
h2,
.edition-year {
  font-weight: 700;
  letter-spacing: -0.055em;
}

h1 {
  margin: 0 0 34px;
  font-size: clamp(4.6rem, 9vw, 8rem);
  line-height: 0.8;
  text-transform: uppercase;
}

.intro {
  width: min(620px, 100%);
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editions {
  padding: 110px 0 130px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.section-heading > p {
  margin: 0 0 10px;
  color: #74799c;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.edition {
  position: relative;
  display: flex;
  min-height: 260px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background: white;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.edition::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 7px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  content: "";
  transition: width 180ms ease;
}

.edition:hover,
.edition:focus-visible {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-4px);
}

.edition:hover::before,
.edition:focus-visible::before {
  width: 100%;
}

.edition.featured {
  grid-column: span 2;
  color: white;
  border-color: var(--navy);
  background:
    linear-gradient(100deg, rgba(16, 22, 107, 0.98), rgba(37, 57, 189, 0.82)),
    url("/2025/img/efecs-banner-background.jpg") center / cover;
}

.status {
  margin: 0 0 auto;
  color: #737899;
}

.featured .status,
.edition:hover .status,
.edition:focus-visible .status {
  color: var(--cyan);
}

.edition-year {
  display: block;
  font-size: clamp(3.5rem, 7vw, 6.3rem);
  line-height: 0.88;
}

.edition-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 700;
}

.edition-detail b {
  color: var(--pink);
  font-size: 1.2rem;
}

.historical {
  background: #f0f2fa;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 45px;
  border-top: 1px solid var(--line);
  color: #666b8e;
  font-size: 0.78rem;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

footer strong,
footer a {
  color: var(--navy);
}

@media (max-width: 800px) {
  .masthead,
  .editions,
  footer,
  .hero-content {
    width: min(100% - 32px, 1240px);
  }

  .current-site {
    font-size: 0;
  }

  .current-site span {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 85px;
  }

  .edition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .masthead {
    min-height: 76px;
  }

  .brand-mark {
    font-size: 1.7rem;
  }

  .brand-label {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 4.3rem;
  }

  .editions {
    padding: 78px 0 90px;
  }

  .section-heading {
    align-items: start;
  }

  .edition-grid {
    grid-template-columns: 1fr;
  }

  .edition,
  .edition.featured {
    min-height: 220px;
    grid-column: auto;
  }

  footer {
    align-items: start;
    gap: 24px;
  }
}
