/* ==========================================================================
   PURSUIT OF FLIGHT — shared site system (extracted from the v1 landing,
   2026-07-18, when register/waiver/pass moved to the apex: Jake — "I want
   those forms to share the same css as the front page").
   Wordmark-only brand: no icon. Paper/ink, hairline rules, mono voice.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --smoke: #8a8a8a;
  --line: #e4e4e4;
  --danger: #b3392e;
  --display: "Montserrat", sans-serif;
  --body: "Source Sans 3", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.muted { color: var(--smoke); }

/* The official wordmark treatment at text size (Montserrat 700 / 0.42em) */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:disabled:hover { background: var(--ink); color: var(--paper); }

/* Load-in rise */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(var(--d) * 1ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
}

/* Footer ------------------------------------------------------------------ */
footer {
  padding: 2.4rem var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot-legal a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-legal a:hover { border-color: var(--ink); }

/* Inner pages (register / waiver / pass) ---------------------------------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(2.2rem, 7vh, 4.5rem) 1.25rem 5rem;
}
.page-brand { display: block; margin-bottom: 2.2rem; }
.page-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.page-sub { color: var(--smoke); font-size: 0.98rem; line-height: 1.6; margin-bottom: 2rem; }

/* Form system — mono labels, hairline fields, square everything */
.stack { display: flex; flex-direction: column; gap: 1.15rem; }
.stack > label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stack input[type="text"],
.stack input[type="date"],
.stack input[type="tel"],
.stack input[type="email"],
.stack textarea {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.stack input:focus, .stack textarea:focus { outline: none; border-color: var(--ink); }
.stack textarea { resize: vertical; }
.stack input[type="file"] {
  font-family: var(--body);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.stack input[type="file"]::file-selector-button {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.5rem 0.9rem;
  margin-right: 0.85rem;
  cursor: pointer;
}
label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.55;
}
label.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--ink);
}
.hint {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--smoke);
}
.error { color: var(--danger); font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Done / status screens */
.done { text-align: center; padding: 3rem 0; }
.done .big {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
.done p { color: var(--smoke); line-height: 1.6; }
.done .btn { margin-top: 1.4rem; }
