@font-face {
  font-family: "Memoir";
  src: url("assets/Memoir.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "ABC Social";
  src: url("assets/ABCSocial-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  --cream: #fff7ea;
  --cream-deep: #f1eadc;
  --charcoal: #1d1d1d;
  --forest: #161f11;
  --teal: #062b2d;
  --lime: #b9cd40;
  --sky: #5fc4dc;
  --aqua: #35c0ca;
  --orange: #e05c34;
  --gold: #f4b800;
  --text-soft: rgba(29, 29, 29, 0.72);
  --line: rgba(6, 43, 45, 0.16);
  --shadow: 0 24px 70px rgba(12, 21, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(185, 205, 64, 0.08), transparent 24%),
    linear-gradient(180deg, #fff8ec 0%, #f7f0e2 100%);
  color: var(--charcoal);
  font-family: "ABC Social", Arial, Helvetica, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-frame {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.hero,
.section {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero {
  background: var(--cream);
  border: 1px solid rgba(6, 43, 45, 0.12);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 247, 234, 0.92);
  border-bottom: 1px solid rgba(6, 43, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(180px, 22vw, 250px);
  height: auto;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--teal);
  font-size: 0.95rem;
}

.topbar-links a {
  text-decoration: none;
}

.hero-image {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(135deg, rgba(255, 247, 234, 0.98) 0%, rgba(247, 240, 226, 0.96) 42%, rgba(241, 234, 220, 0.82) 100%);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(185, 205, 64, 0.2), transparent 24%),
    radial-gradient(circle at 84% 24%, rgba(95, 196, 220, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 247, 234, 0), rgba(6, 43, 45, 0.12));
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  min-width: 0;
  padding: 2rem 2rem 2.1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.88), rgba(255, 247, 234, 0.76)),
    rgba(255, 247, 234, 0.84);
  border: 1px solid rgba(6, 43, 45, 0.09);
  box-shadow: 0 18px 50px rgba(12, 21, 18, 0.08);
}

.eyebrow,
.kicker,
.schedule-time,
.track-number {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.9rem;
  color: var(--teal);
}

h1,
h2,
h3,
.brand {
  font-family: "Memoir", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.88;
  color: var(--forest);
  max-width: 8ch;
}

.event-line {
  display: inline;
  color: #0d302f;
}

.hero-copy {
  max-width: 56ch;
  margin-bottom: 0;
  color: rgba(22, 31, 17, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #d7d5ca;
  box-shadow: 0 28px 70px rgba(12, 21, 18, 0.18);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 43, 45, 0.02), rgba(6, 43, 45, 0.2)),
    linear-gradient(135deg, rgba(185, 205, 64, 0.08), transparent 45%);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-visual-tag {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  padding: 0.7rem 0.95rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 247, 234, 0.88);
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}

.button-primary {
  background: var(--teal);
  color: var(--cream);
}

.button-secondary {
  background: rgba(255, 247, 234, 0.84);
  border: 1px solid rgba(6, 43, 45, 0.16);
  color: var(--teal);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(6, 43, 45, 0.08);
}

.intro-card {
  padding: 1.2rem 1.25rem 1.35rem;
  background: rgba(255, 247, 234, 0.96);
}

.intro-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--forest);
  font-size: 1.3rem;
  font-family: "Memoir", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro-card span,
.section-copy p,
.track-card p,
.schedule-row p,
.criteria-card p,
.faq-card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.section {
  margin-top: 1.5rem;
  padding: 1.4rem;
  background: rgba(255, 247, 234, 0.92);
  border: 1px solid rgba(6, 43, 45, 0.1);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.section-copy h2,
.callout h2 {
  max-width: 11.5ch;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 0.96;
  color: var(--forest);
}

.image-panel {
  min-height: 100%;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

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

.section-dark {
  background:
    linear-gradient(180deg, rgba(6, 43, 45, 0.94), rgba(22, 31, 17, 0.96)),
    var(--teal);
  color: var(--cream);
  border: none;
}

.section-dark .eyebrow,
.section-dark .track-number {
  color: var(--lime);
}

.section-dark .section-heading h2,
.section-dark .track-card h3,
.section-dark .track-card p {
  color: var(--cream);
}

.track-grid,
.criteria-grid,
.faq-grid,
.prize-grid {
  display: grid;
  gap: 1rem;
}

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

.track-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 247, 234, 0.06);
  border: 1px solid rgba(185, 205, 64, 0.22);
}

.idea-form {
  margin-top: 1.1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(185, 205, 64, 0.08), rgba(95, 196, 220, 0.08)),
    rgba(255, 247, 234, 0.07);
  border: 1px solid rgba(185, 205, 64, 0.22);
}

.idea-form-copy {
  max-width: 60ch;
  margin-bottom: 1rem;
}

.idea-form-copy h3 {
  margin-bottom: 0.55rem;
  color: var(--cream);
  font-size: 1.6rem;
}

.idea-form-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 247, 234, 0.78);
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.signup-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.detail-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.track-number {
  display: block;
  margin-bottom: 0.8rem;
}

.track-card h3,
.schedule-row h3,
.criteria-card h3,
.faq-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  line-height: 1.05;
}

.schedule-grid {
  display: grid;
  gap: 0.9rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--line);
}

.schedule-time {
  display: inline-block;
  color: var(--lime);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

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

.criteria-card,
.faq-card {
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.signup-form {
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(185, 205, 64, 0.12), rgba(95, 196, 220, 0.08)),
    rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.signup-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.registration-table-shell {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.registration-table-shell-dark {
  background:
    linear-gradient(135deg, rgba(185, 205, 64, 0.08), rgba(95, 196, 220, 0.08)),
    rgba(255, 247, 234, 0.07);
  border: 1px solid rgba(185, 205, 64, 0.22);
}

.registration-table-shell-dark .registration-table-header h3 {
  color: var(--cream);
}

.registration-table-shell-dark .registration-table-note {
  color: rgba(255, 247, 234, 0.72);
}

.registration-table-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.registration-table-header h3 {
  margin-bottom: 0;
  font-size: 1.6rem;
  color: var(--forest);
}

.registration-table-note {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.5;
  text-align: right;
}

.registration-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
}

.registration-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 247, 234, 0.72);
}

.registration-table-dark {
  background: rgba(255, 247, 234, 0.1);
}

.registration-table th,
.registration-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(6, 43, 45, 0.1);
  text-align: left;
  vertical-align: top;
}

.registration-table th {
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-table td {
  color: var(--charcoal);
  line-height: 1.55;
}

.registration-table-dark th {
  color: var(--lime);
}

.registration-table-dark td {
  color: var(--cream);
}

.registration-table-dark th,
.registration-table-dark td {
  border-bottom: 1px solid rgba(255, 247, 234, 0.12);
}

.registration-table tbody tr:last-child td {
  border-bottom: 0;
}

.registration-empty-row td {
  color: var(--text-soft);
  text-align: center;
}

.registration-table-dark .registration-empty-row td {
  color: rgba(255, 247, 234, 0.7);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--forest);
  font-size: 0.95rem;
}

.field span {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 43, 45, 0.18);
  background: rgba(255, 247, 234, 0.88);
  color: var(--charcoal);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.section-dark .field {
  color: var(--cream);
}

.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea {
  border: 1px solid rgba(255, 247, 234, 0.18);
  background: rgba(255, 247, 234, 0.12);
  color: var(--cream);
}

.section-dark .field input::placeholder,
.section-dark .field textarea::placeholder {
  color: rgba(255, 247, 234, 0.55);
}

.section-dark .form-note {
  color: rgba(255, 247, 234, 0.72);
}

.field-full {
  grid-column: 1 / -1;
}

.form-note {
  margin: 1rem 0 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.submission-status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.submission-status[data-tone="success"] {
  color: #1d6b41;
}

.submission-status[data-tone="error"] {
  color: #b03721;
}

.section-dark .submission-status {
  color: rgba(255, 247, 234, 0.72);
}

.section-dark .submission-status[data-tone="success"] {
  color: #b9cd40;
}

.section-dark .submission-status[data-tone="error"] {
  color: #ffb59d;
}

.callout-section {
  background:
    linear-gradient(135deg, rgba(185, 205, 64, 0.18), rgba(95, 196, 220, 0.1)),
    rgba(255, 247, 234, 0.94);
}

.callout {
  padding: 1rem 0;
}

.callout h2 {
  max-width: 16ch;
}

@media (max-width: 920px) {
  .intro-band,
  .section-split,
  .track-grid,
  .signup-grid,
  .criteria-grid,
  .faq-grid,
  .prize-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 540px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-photo {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .site-frame {
    width: min(100% - 1rem, 1220px);
    padding-bottom: 2.5rem;
  }

  .hero,
  .section {
    border-radius: 22px;
  }

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

  .hero-content,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    padding-top: 1.4rem;
    padding-bottom: 1.5rem;
  }

  .hero-shell {
    gap: 1rem;
    padding: 1rem;
  }

  .hero-visual {
    border-radius: 24px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .registration-table-header {
    align-items: start;
    flex-direction: column;
  }

  .registration-table-note {
    max-width: none;
    text-align: left;
  }

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

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

}
