@font-face {
  font-family: "Meslo LG S";
  src: url("/assets/meslo-lg-s-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #F4EEE3;
  --ink: #000000;
  background: var(--ground);
  color: var(--ink);
  font-family: "Meslo LG S", Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
  font-synthesis: none;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: var(--ground); }
a { color: var(--ink); text-underline-offset: .25em; }
.back-link, .site-footer a, .fallback a { color: var(--ink); }
a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
::selection { color: var(--ground); background: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page { width: min(100% - 64px, 1040px); margin: 0 auto; padding: 32px 0 38px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { display: block; width: 140px; height: auto; }
.back-link { font-size: 16px; text-decoration: none; }
.join-intro { padding: 72px 0 32px; }
.eyebrow { margin: 0 0 12px; color: var(--ink); font-size: 16px; text-transform: uppercase; }
h1, h2, h3 { font-weight: 400; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.14; letter-spacing: -.02em; }
.intro { max-width: 77ch; margin: 26px 0 0; font-size: 20px; line-height: 1.6; }
.interest { border-top: 2px solid var(--ink); padding-top: 28px; }
.interest > .eyebrow { margin-bottom: 2px; color: var(--ink); }
h2 { margin: 0 0 30px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.35; letter-spacing: -.02em; }

form { margin: 0; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-fields .field { display: flex; flex-direction: column; }
.contact-fields .field > input { margin-top: auto; }
.field { min-width: 0; margin: 0 0 28px; }
.field > label, legend { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 16px; line-height: 1.55; }
.question-number { display: block; margin-bottom: 2px; color: var(--ink); font-size: 18px; }
.required { color: var(--ink); }
.optional { font-size: 14px; white-space: nowrap; }
.field-help { margin: -2px 0 12px; font-size: 14px; line-height: 1.6; }
input, textarea, button { font: inherit; }
input[type="email"], input[type="text"], textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.6;
}
input[type="email"], input[type="text"] { min-height: 50px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink); opacity: 1; }
input:disabled { opacity: .65; cursor: not-allowed; }
fieldset { border: 0; padding: 0; }
.goal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.goal-option {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  min-width: 0;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}
.goal-option:hover { outline: 1px solid var(--ink); outline-offset: -3px; }
.goal-option:has(input[type="checkbox"]:checked) { border-color: var(--ink); }
.goal-option > input[type="checkbox"], .goal-option-other > label > input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ground);
  cursor: pointer;
}
.goal-option input[type="checkbox"]:checked { border-color: var(--ink); background: var(--ink); }
.goal-option input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid var(--ground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.goal-option-other { grid-column: 1 / -1; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.goal-option-other > label:not(.visually-hidden) { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; cursor: pointer; }
.goal-option-other > input[type="text"] { flex: 1; min-height: 38px; padding: 5px 12px; }
.consent { margin: 36px 0 26px; font-size: 14px; line-height: 1.7; }
#submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  min-height: 60px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ground);
  background: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
#submit-button:hover:not(:disabled) { color: var(--ink); background: var(--ground); }
#submit-button:disabled { opacity: .65; cursor: wait; }
.required-note { margin: 14px 0 0; font-size: 14px; }
.form-status { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--ink); font-size: 16px; }
.form-success { padding: 26px 0 32px; }
.form-success h3 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 36px); line-height: 1.4; }
.form-success > p:last-child { margin: 0; max-width: 65ch; font-size: 18px; }
.fallback { margin: 22px 0 0; font-size: 13px; line-height: 1.7; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink); font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer p { margin: 0; font-size: 12px; }
.visually-hidden, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .page { width: min(100% - 48px, 1040px); }
  .contact-fields { gap: 24px; }
  .intro { font-size: 18px; }
  .goal-options { gap: 12px; }
  .goal-option { padding: 12px; gap: 12px; font-size: 14px; }
}

@media (max-width: 700px) {
  .brand img { width: 100px; }
}

@media (max-width: 650px) {
  .page { width: calc(100% - 40px); padding: 24px 0 28px; }
  .site-header { gap: 16px; align-items: flex-start; }
  .back-link { max-width: 12ch; font-size: 12px; text-align: right; line-height: 1.6; }
  .join-intro { padding-top: 52px; padding-bottom: 28px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(30px, 7.4vw, 44px); line-height: 1.2; letter-spacing: -.03em; }
  .desktop-break { display: none; }
  .intro { margin-top: 22px; font-size: 16px; }
  .interest { padding-top: 24px; }
  h2 { margin-bottom: 26px; font-size: 26px; }
  .contact-fields, .goal-options { grid-template-columns: 1fr; }
  .contact-fields { gap: 0; }
  .field { margin-bottom: 26px; }
  .field > label, legend { font-size: 16px; }
  .field-help { font-size: 13px; }
  input[type="email"], input[type="text"], textarea { padding: 12px; }
  textarea { min-height: 132px; }
  .goal-option { min-height: 58px; padding: 14px; gap: 14px; font-size: 15px; }
  .goal-option-other { flex-wrap: wrap; gap: 12px; }
  .goal-option-other > input[type="text"] { flex-basis: 100%; min-height: 46px; }
  .consent { margin-top: 30px; font-size: 13px; }
  #submit-button { min-height: 60px; font-size: 18px; gap: 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 38px; }
}
