:root {
  --black: #080706;
  --charcoal: #181310;
  --red: #d31b22;
  --red-bright: #f0282f;
  --cream: #f6edd8;
  --cream-dim: #cfc4aa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--cream);
  font-family: "Oswald", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(211, 27, 34, 0.2), transparent 34rem),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 9px
    ),
    var(--black);
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  width: min(100% - 40px, 1100px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 24px 0;
}

.logo-link {
  display: block;
  border-radius: 12px;
}

.logo-link:focus-visible,
.home-link:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 4px;
}

.logo-link img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.home-link {
  color: var(--cream-dim);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.home-link:hover {
  color: var(--cream);
}

main {
  width: min(100% - 40px, 820px);
  margin: 52px auto 0;
}

.hero {
  text-align: center;
  animation: rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  color: var(--red-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 12px auto 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.intro {
  max-width: 46ch;
  margin: 22px auto 0;
  color: var(--cream-dim);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.65;
}

.application-form {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  border: 1px solid rgba(246, 237, 216, 0.18);
  border-radius: 26px;
  background: var(--charcoal);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  animation: rise 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.application-form::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 90px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: var(--red);
  box-shadow: 0 0 24px rgba(211, 27, 34, 0.6);
  content: "";
  transform: translateX(-50%);
}

.application-form iframe {
  display: block;
  width: 100% !important;
}

.site-footer {
  display: flex;
  width: min(100% - 40px, 820px);
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 42px auto 0;
  padding-bottom: 34px;
  color: rgba(207, 196, 170, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .site-header {
    width: min(100% - 28px, 1100px);
    padding-top: 14px;
  }

  .logo-link img {
    width: 72px;
    height: 72px;
  }

  main {
    width: min(100% - 28px, 820px);
    margin-top: 36px;
  }

  .application-form {
    margin-top: 40px;
    border-radius: 20px;
  }

  .site-footer {
    width: min(100% - 28px, 820px);
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .application-form {
    animation: none;
  }
}
