@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #002551;
  --navy-deep: #001b3d;
  --navy-soft: #1b3a6b;
  --blue-light: #79a3ca;
  --gold: #e6a85d;
  --gold-accessible: #8f6120;
  --white: #ffffff;
  --text-body: #3f5875;
  --text-muted: #4f647b;
  --surface: #f4f7fb;
  --border: #d9e3ee;
  --shadow: 0 24px 70px rgba(1, 20, 44, 0.28);
  --content-width: 1120px;
}

html {
  min-width: 320px;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(139, 180, 218, 0.14), transparent 34rem),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy-deep);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-bar {
  height: 5px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--gold), #e9b96e, var(--gold));
}

.site-header {
  width: min(100% - 40px, var(--content-width));
  margin-inline: auto;
  padding-top: clamp(26px, 5vw, 48px);
}

.logo-wrapper {
  width: fit-content;
  display: block;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.logo-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 40px rgba(0, 0, 0, 0.27);
}

.logo-wrapper:focus-visible,
.contact-link:focus-visible,
.home-link:focus-visible {
  outline: 3px solid #f4bd67;
  outline-offset: 4px;
}

.logo-img {
  display: block;
  width: clamp(180px, 24vw, 230px);
  max-width: 68vw;
  height: auto;
}

.hero-section {
  flex: 1 0 auto;
  display: grid;
  align-items: center;
  width: 100%;
  padding: clamp(40px, 7vw, 82px) 20px clamp(54px, 8vw, 90px);
}

.hero-inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  display: grid;
  gap: clamp(42px, 7vw, 84px);
  align-items: center;
}

.hero-text {
  min-width: 0;
  text-align: left;
}

.eyebrow,
.contact-label {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #efc47e;
}

.hero-text h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.25rem, 8.6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-text h1 em {
  color: var(--blue-light);
  font-style: normal;
}

.sub-copy {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
}

.registration-note {
  max-width: 660px;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.65;
}

.contact-card {
  min-width: 0;
  padding: clamp(28px, 6vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.contact-label {
  margin-bottom: 10px;
  color: var(--gold-accessible);
}

.contact-card h2 {
  margin: 0 0 14px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.contact-copy {
  margin: 0 0 25px;
  color: var(--text-body);
  font-size: 0.965rem;
  line-height: 1.65;
}

address {
  min-width: 0;
  font-style: normal;
}

.contact-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  border-color: #aec3d8;
  background: #ebf1f7;
  transform: translateY(-1px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #7a4800;
  background: #fff0d8;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details {
  min-width: 0;
  display: block;
}

.contact-details > span {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-details strong {
  display: block;
  min-width: 0;
  font-size: clamp(0.78rem, 3.1vw, 0.94rem);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-arrow {
  width: 20px;
  height: 20px;
  color: var(--gold-accessible);
}

.site-footer {
  flex: 0 0 auto;
  padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 24, 50, 0.64);
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.site-footer p {
  margin: 0;
  text-align: left;
}

.legal-line {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  line-height: 1.6;
}

.copyright {
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-credit {
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-credit a {
  color: var(--white);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-credit a:hover {
  color: #efc47e;
}

.error-main {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 56px 20px 80px;
  text-align: center;
}

.error-content {
  width: min(100%, 620px);
}

.error-code {
  margin: 0 0 12px;
  color: #efc47e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.error-content h1 {
  margin: 0 0 16px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.error-content > p:not(.error-code) {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--navy-deep);
  background: var(--white);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 820px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  }

  .contact-card {
    justify-self: end;
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 430px) {
  .site-header,
  .hero-section,
  .site-footer {
    padding-inline: 16px;
  }

  .site-header {
    width: 100%;
  }

  .logo-wrapper {
    margin-inline: auto;
    padding: 12px 18px;
  }

  .hero-section {
    padding-top: 38px;
  }

  .hero-text {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .registration-note {
    padding: 12px 14px;
    border-left: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .contact-card {
    padding: 26px 20px;
  }

  .contact-link {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-arrow {
    display: none;
  }

  .site-footer p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  .sub-copy,
  .registration-note,
  .legal-line,
  .copyright {
    color: var(--white);
  }
}
