:root {
  --primary: #a85613;
  --primary-dark: #713408;
  --primary-soft: #f6c781;
  --ink: #1f211d;
  --muted: #667067;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --line: #e1ddd2;
  --forest: #164032;
  --forest-bright: #2f735a;
  --sky: #dbe9ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
  overflow: hidden;
}

.event-shell {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 66vh, 620px);
  width: 100%;
  overflow: hidden;
  background: #f5efe4;
}

.image-panel {
  position: absolute;
  inset: 0;
}

.image-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(250, 244, 235, 0.96) 0%,
      rgba(250, 244, 235, 0.86) 34%,
      rgba(250, 244, 235, 0.22) 60%,
      rgba(250, 244, 235, 0) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(245, 239, 228, 0.2));
  pointer-events: none;
}

.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(660px, calc(100% - 48px));
  margin: clamp(54px, 8vw, 92px) 0 clamp(28px, 5vw, 52px)
    clamp(24px, 6vw, 86px);
  color: var(--ink);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 54px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(22, 64, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(67, 51, 30, 0.14);
  backdrop-filter: blur(12px);
}

.brand-row img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.brand-row span {
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow,
.form-kicker {
  margin-bottom: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#event-title {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--forest);
  font-size: clamp(2.75rem, 5.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

#event-title span {
  display: block;
}

.intro {
  max-width: 560px;
  margin-bottom: 2px;
  color: #435044;
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  font-weight: 650;
}

.hero-register {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  min-width: 190px;
  min-height: 54px;
  padding: 7px 7px 7px 22px;
  border: 1px solid rgba(22, 64, 50, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--forest);
  box-shadow: 0 24px 64px rgba(67, 51, 30, 0.18);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.hero-register:hover {
  transform: translateY(-2px);
  background: #f7fff9;
  box-shadow: 0 30px 76px rgba(67, 51, 30, 0.24);
}

.hero-register:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 5px;
}

.hero-register-label {
  font-weight: 900;
  white-space: nowrap;
}

.hero-register-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(22, 64, 50, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.form-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  justify-content: center;
  padding: clamp(22px, 4vw, 48px) clamp(12px, 4vw, 40px);
  scroll-margin-top: 18px;
  background:
    linear-gradient(180deg, #f1f5f2 0%, #ffffff 72%),
    var(--surface);
}

.form-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(23, 41, 33, 0.13);
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: clamp(16px, 2.6vw, 24px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--forest) 0 8px, transparent 8px),
    linear-gradient(135deg, #ffffff, #f4f8f5 58%, var(--sky));
  color: var(--ink);
}

.form-card-header h2 {
  margin: 4px 0 6px;
  color: var(--forest);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.form-card-header p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.form-frame {
  height: clamp(620px, 72vh, 740px);
  background: var(--surface);
  overflow: hidden;
}

.form-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.form-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 620px;
  padding: 28px;
  text-align: center;
}

.form-placeholder h3 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 1.25rem;
}

.form-placeholder p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px 28px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
}

.site-credit a {
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
}

.site-credit a:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 4px;
}

code {
  border-radius: 5px;
  background: #edf3ef;
  padding: 2px 5px;
  color: var(--forest);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .event-shell {
    min-height: clamp(500px, 70vh, 620px);
  }

  .image-panel::after {
    background:
      linear-gradient(
        180deg,
        rgba(250, 244, 235, 0.94) 0%,
        rgba(250, 244, 235, 0.76) 48%,
        rgba(250, 244, 235, 0.34) 100%
      );
  }

  .hero-content {
    width: min(650px, calc(100% - 32px));
    margin: 64px auto 30px;
  }
}

@media (max-width: 560px) {
  .event-shell {
    min-height: 420px;
    align-items: center;
  }

  .image-panel img {
    object-position: 62% center;
  }

  .hero-content {
    gap: 10px;
    width: min(100% - 20px, 620px);
    margin-top: 2px;
    margin-bottom: 18px;
  }

  .brand-row {
    max-width: 100%;
    min-height: 42px;
    gap: 9px;
    padding: 6px 12px 6px 7px;
  }

  .brand-row img {
    width: 28px;
    height: 28px;
  }

  .brand-row span {
    min-width: 0;
    overflow: hidden;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #event-title {
    font-size: clamp(2rem, 9.6vw, 2.65rem);
    line-height: 1;
  }

  .intro {
    max-width: 34rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-register {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    justify-self: center;
    padding-left: 20px;
  }

  .hero-register-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-points span {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 0.78rem;
  }

  .hero-points {
    justify-content: center;
  }

  .form-card-header {
    min-height: 0;
    padding: 14px 16px 14px 22px;
  }

  .form-card-header h2 {
    margin-bottom: 0;
    font-size: 1.12rem;
    line-height: 1.2;
  }

  .form-card-header p:last-child {
    display: none;
  }

  .form-kicker {
    font-size: 0.68rem;
  }

  .form-section {
    padding: 0 0 24px;
  }

  .form-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-frame {
    height: min(620px, 78dvh);
  }

  .form-placeholder {
    min-height: 560px;
  }
}

@media (max-width: 380px) {
  .event-shell {
    min-height: 440px;
  }

  .hero-content {
    width: min(100% - 16px, 620px);
    margin-bottom: 14px;
  }

  #event-title {
    font-size: clamp(1.82rem, 9.8vw, 2.22rem);
  }

  .intro {
    font-size: 0.84rem;
  }

  .hero-points {
    gap: 7px;
  }
}
