:root {
  --blue-900: #102f4f;
  --blue-800: #174a73;
  --blue-700: #286090;
  --blue-100: #eaf3f8;
  --green-800: #26543a;
  --green-600: #3d7655;
  --green-100: #edf5f0;
  --ink: #20303f;
  --muted: #607080;
  --surface: #ffffff;
  --background: #f3f7f9;
  --border: #dce7ec;
  --shadow: 0 20px 50px rgba(16, 47, 79, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12), transparent 27%),
    radial-gradient(circle at 85% 75%, rgba(89, 151, 112, 0.35), transparent 28%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 58%, var(--green-800) 100%);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -110px;
  left: -10%;
  height: 180px;
  border-radius: 50% 50% 0 0;
  background: var(--background);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 56px 24px 150px;
}

.hero__logo-area {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 30px 24px 20px;
  background: #ffffff;
}

.hero__logo {
  display: block;
  width: min(620px, 86vw);
  height: auto;
}

.hero__eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #cfe8d7;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.12;
}

.hero__description {
  max-width: 660px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: -82px auto 90px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.8fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 42px 30px;
  color: #ffffff;
  background:
    linear-gradient(rgba(16, 47, 79, 0.9), rgba(38, 84, 58, 0.9)),
    linear-gradient(135deg, var(--blue-800), var(--green-800));
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card__year {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.event-card__content {
  padding: 42px 48px;
}

.event-card h2,
.section-heading h2 {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.event-card__content > p:not(.section-label) {
  margin: 12px 0 20px;
  color: var(--muted);
}

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid #c8dce8;
  border-left: 4px solid var(--blue-700);
  border-radius: 10px;
  color: var(--blue-900);
  background: var(--blue-100);
}

.notice p {
  margin: 0;
}

.notice__content {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}

.notice__text strong {
  display: block;
  margin-bottom: 4px;
}

.notice__text p {
  margin: 0;
}

.notice__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue-700);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.notice__button {
  flex: 1 1 0;
  min-width: 210px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-700);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.notice__actions {
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

.notice__button--secondary {
  color: var(--blue-700);
  border: 1px solid #b8d4e5;
  background: #ffffff;
  text-align: center;
}

.notice__button:hover,
.notice__button:focus-visible {
  background: var(--blue-800);
  box-shadow: 0 8px 18px rgba(40, 96, 144, 0.22);
  transform: translateY(-1px);
}

.notice__button--secondary:hover,
.notice__button--secondary:focus-visible {
  color: #ffffff;
  background: var(--blue-800);
}

.primary-button,
.archive-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  padding: 13px 20px;
  color: #ffffff;
  background: var(--blue-700);
  box-shadow: 0 8px 20px rgba(40, 96, 144, 0.22);
}

.event-link {
  margin-top: 6px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--blue-800);
  box-shadow: 0 10px 24px rgba(40, 96, 144, 0.3);
  transform: translateY(-2px);
}

.about,
.editions {
  padding: 100px 0 0;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 36px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.about__content {
  padding: 46px 50px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(16, 47, 79, 0.07);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 50px;
}

.about__content p {
  margin: 0;
}

.about__content p:first-child::first-letter {
  float: left;
  margin: 8px 8px 0 0;
  color: var(--green-800);
  font-family: Georgia, serif;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 0.72;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.edition-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 122px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--blue-900);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.edition-number {
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0;
}

.edition-grid a:hover,
.edition-grid a:focus-visible {
  border-color: var(--green-600);
  color: var(--green-800);
  box-shadow: 0 10px 24px rgba(38, 84, 58, 0.12);
  transform: translateY(-4px);
}

.archive-link {
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 18px;
  color: var(--green-800);
  background: var(--green-100);
}

.archive-link:hover,
.archive-link:focus-visible {
  background: #dfeee4;
  transform: translateY(-2px);
}

footer {
  padding: 38px 24px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-900);
  text-align: center;
}

footer p {
  margin: 3px 0;
}

footer p:first-child {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 800px) {
  .hero {
    min-height: 600px;
  }

  .hero__logo-area {
    min-height: 220px;
    padding: 24px 18px 14px;
  }

  .hero__content {
    padding: 44px 20px 140px;
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__date {
    min-height: 190px;
  }

  .event-card__content {
    padding: 34px 28px;
  }

  .notice__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice__actions {
    width: 100%;
  }

  .notice__button {
    width: 100%;
    text-align: center;
  }

  .about,
  .editions {
    padding-top: 76px;
  }

  .about__content {
    padding: 34px 28px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 980px) {
  .notice__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice__actions {
    flex-direction: column;
    width: 100%;
  }

  .notice__button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .hero__logo {
    width: 94vw;
  }

  .event-card__content {
    padding: 30px 20px;
  }

  .primary-button {
    width: 100%;
  }
}

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