@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --fg: #ede7d9;
  --yellow: #f4b223;
  --muted: #aaa69d;
  --line: #3b3934;
  --error: #ffaaa0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fg);
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button,
input,
textarea,
summary {
  font: inherit;
}

button,
summary,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

input,
textarea {
  border-radius: 0;
}

button {
  border-radius: 0;
}

::selection {
  background: var(--yellow);
  color: var(--bg);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

input:focus-visible,
textarea:focus-visible {
  outline-offset: 2px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--bg);
  padding: 14px;
  z-index: 10;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header .wordmark {
  font-weight: 700;
  letter-spacing: 0.025em;
}

.site-header .back {
  color: var(--muted);
}

/* HERO */

.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 240px;
}

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

/* SECTIONS */

.section {
  border-top: 1px solid var(--line);
  padding-block: 64px;
}

.join {
  display: grid;
  gap: 32px;
}

.eyebrow {
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 20px;
}

.intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 38ch;
  margin: 0;
}

.join-copy {
  max-width: 420px;
}

/* FORMS */

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  min-width: 0;
}

.field > label,
.field-label {
  font-size: 13px;
  line-height: 1.5;
}

.optional {
  color: var(--muted);
}

input:not([type="checkbox"]):not([type="hidden"]),
textarea,
.roles summary {
  background: #111110;
  color: var(--fg);
  border: 1px solid #514d44;
  width: 100%;
  padding: 15px 16px;
  min-height: 52px;
  font-size: 16px;
  line-height: 1.35;
}

input::placeholder,
textarea::placeholder {
  color: #8d8980;
}

textarea {
  resize: vertical;
  min-height: 125px;
}

/* PHONE */

.phone-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.phone-row > * {
  min-width: 0;
}

#phoneCountryCode {
  text-align: center;
  padding-inline: 10px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.field-error:empty {
  display: none;
}

.primary {
  background: var(--yellow);
  border: 1px solid var(--yellow);
  color: var(--bg);
  padding: 18px 20px;
  width: 100%;
  min-height: 58px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.primary:hover {
  background: #ffc34a;
}

.fine {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 14px 0 0;
}

.form-status {
  font-size: 15px;
  line-height: 1.6;
  margin: 18px 0 0;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="error"] {
  color: var(--error);
}

.form-status[data-state="success"] {
  color: var(--yellow);
}

.trap {
  display: none;
}

/* ROLE MULTI-SELECT */

.roles {
  min-width: 0;
}

.roles summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roles summary::-webkit-details-marker {
  display: none;
}

.roles summary::after {
  content: "+";
  font-size: 22px;
  flex-shrink: 0;
  color: var(--yellow);
}

.roles[open] summary::after {
  content: "−";
}

.roles-display {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roles-panel {
  padding: 8px;
  border: 1px solid #514d44;
  border-top: 0;
  max-height: min(340px, 50dvh);
  overflow: auto;
  overscroll-behavior: contain;
  background: #111110;
}

.role-option {
  min-height: 44px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px;
  cursor: pointer;
  font-size: 14px;
}

.role-option:hover,
.role-option:focus-within {
  background: #23221e;
}

.role-option input {
  accent-color: var(--yellow);
  width: 19px;
  height: 19px;
  margin: 0;
  flex-shrink: 0;
}

/* SOCIAL + CTA */

.social-grid,
.cta-grid {
  display: grid;
  gap: 14px;
}

.social-card {
  border: 1px solid var(--line);
  min-height: 130px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.social-card[aria-disabled="true"] {
  color: var(--muted);
}

a.social-card:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.cta {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 24px;
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 19px;
  gap: 20px;
}

.cta:hover {
  background: var(--yellow);
  color: var(--bg);
}

/* SPONSOR */

.sponsor {
  display: grid;
  gap: 28px;
}

.sponsor .intro {
  max-width: 50ch;
}

.contact {
  font-size: 15px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-self: start;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

a.contact {
  color: var(--yellow);
  text-decoration: none;
  border-color: var(--yellow);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

/* APPLICATION PAGES */

.application {
  max-width: 740px;
  margin-inline: auto;
  padding-block: 56px 72px;
}

.application h1,
.response h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 0 0 18px;
}

.application .intro {
  margin-bottom: 38px;
  max-width: none;
}

.form-grid {
  display: grid;
  gap: 0 24px;
}

.wide {
  grid-column: 1 / -1;
}

.response {
  width: min(740px, calc(100% - 40px));
  margin: 15vh auto;
}

.response p {
  line-height: 1.6;
}

.response a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--yellow);
}

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

/* MOBILE HERO */

@media (max-width: 679px) {
  .hero {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .hero-cover {
    object-position: center;
  }

  .phone-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* TABLET */

@media (min-width: 680px) {
  .shell {
    width: min(1120px, calc(100% - 80px));
  }

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

  .social-card {
    min-height: 180px;
    padding: 34px;
  }

  .sponsor {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .section {
    padding-block: 78px;
  }
}

/* DESKTOP */

@media (min-width: 900px) {
  .join {
    grid-template-columns: 1fr 1fr;
    gap: 90px;
  }

  .site-header {
    height: 86px;
  }

  .site-header a {
    font-size: 14px;
  }

  .join-copy {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      color 0.15s ease,
      background-color 0.15s ease,
      border-color 0.15s ease;
  }
}

/* Application helpers; existing palette and layout are retained. */
select { font: inherit; border-radius: 0; background: #111110; color: var(--fg); border: 1px solid #514d44; width: 100%; padding: 15px 16px; min-height: 52px; }
select[aria-invalid="true"] { border-color: var(--error); }
.helper { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.newsletter-opt-in { display: flex; align-items: flex-start; gap: 12px; line-height: 1.65; }
.newsletter-opt-in input { accent-color: var(--yellow); width: 20px; height: 20px; flex-shrink: 0; }
.minor-check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.minor-check input { accent-color: var(--yellow); width: 20px; height: 20px; }
.guardian-fields { border: 1px solid #514d44; padding: 24px; margin: 0 0 24px; min-width: 0; }
.guardian-fields legend { color: var(--yellow); font-size: 13px; letter-spacing: .14em; padding: 0 8px; }
.guardian-fields > .helper { margin-bottom: 22px; }
.guardian-fields .field { margin-bottom: 0; }
.guardian-fields .form-grid { gap: 18px 24px; }
@media (max-width: 600px) { .guardian-fields { padding: 18px; } }
.privacy { margin-bottom: 22px; }
.privacy a, .privacy-copy a { color: var(--yellow); }
.privacy-copy { line-height: 1.75; }
.privacy-copy h2 { margin-top: 32px; font-weight: 500; }
