/* Ménage public site — self-contained, no external requests, no trackers.
   Brand: monochrome (black / white / grey), Optima wordmark, thin centered
   dividers, solid bottom band.
   Type: Libertinus Sans (SIL OFL, self-hosted below) as the Optima stand-in,
   identical on every platform. License: assets/fonts/OFL.txt. */

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Sans";
  src: url("assets/fonts/LibertinusSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #141414;
  --text: #f2f0ec;
  --text-dim: #a5a5a5;
  --grey: #666;
  --line: #3a3a3a;
  --band: #f2f0ec;
  --band-text: #141414;
  --error: #c0655f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libertinus Sans", Optima, Candara, "Segoe UI", "Gill Sans", sans-serif;
  line-height: 1.7;
  font-size: 1.05rem;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  padding: 3rem 0 0.5rem;
  text-align: center;
}

header.site img.lockup {
  width: 150px;
  max-width: 45vw;
  height: auto;
}

main { padding: 0.5rem 0 4rem; }

.hero {
  text-align: center;
  padding: 2.25rem 0 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.hero h1 em { font-style: normal; text-transform: uppercase; }

.hero p.lead {
  color: var(--text-dim);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Thin centered divider, as on the print pieces. */
.divider {
  border: none;
  border-top: 1px solid var(--text);
  width: 9rem;
  margin: 2.75rem auto;
  opacity: 0.85;
}

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin: 2.75rem 0 1rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.values li {
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem;
}

.values li strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.values li p { margin: 0; font-size: 0.95rem; color: var(--text-dim); }

.cta { text-align: center; margin: 3rem 0 1rem; }

a.button, button.button {
  display: inline-block;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--text);
  padding: 0.85rem 2.6rem;
  font-size: 1.02rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

a.button:hover, button.button:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---- Form ---- */

form.apply { margin-top: 2rem; text-align: left; }

fieldset {
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem 1.6rem;
  margin: 0 0 1.75rem;
}

legend {
  padding: 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 700;
}

label.field {
  display: block;
  margin: 1.2rem 0 0.3rem;
  font-weight: 700;
}

/* Required-field marker. */
.req {
  color: var(--text-dim);
  font-weight: 400;
}

.req-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.hint {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0.15rem 0 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  width: 100%;
  background: #1d1d1d;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.65rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

/* After the user has interacted with a field, keep invalid ones visibly
   flagged (the browser's own message appears on submit). */
input:user-invalid, textarea:user-invalid {
  border-color: var(--error);
  outline: 1px solid var(--error);
  outline-offset: 0;
}

/* Server-side bounce banner; revealed by a tiny script when the apply
   endpoint redirects back with ?e=1. Hidden by default, so no-JS visitors
   simply see the form again. */
.form-error {
  display: none;
  border: 1px solid var(--error);
  border-left-width: 3px;
  color: var(--text);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0 0;
  font-size: 0.97rem;
}

.form-error.show { display: block; }

textarea { min-height: 7rem; resize: vertical; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin: 0.45rem 0;
}

.check input { flex: none; accent-color: var(--grey); }

/* CSS-only reveal for the "Other / Not Listed" text input */
.check-other { flex-wrap: wrap; }
#g-other-toggle ~ .other-reveal { display: none; }
#g-other-toggle:checked ~ .other-reveal {
  display: block;
  flex-basis: 100%;
  margin-top: 0.35rem;
}

/* Inside the reveal, the label sits tight under its checkbox so the pair
   reads as one unit, not as part of the next question. */
.other-reveal label.field { margin-top: 0; }

input[type="file"] { color: var(--text-dim); margin-top: 0.3rem; }

/* Honeypot: hidden from humans, present for bots. */
.leave-blank {
  position: absolute;
  left: -6000px;
  top: auto;
  height: 1px;
  overflow: hidden;
}

/* Solid bottom band, as on the card back. */
footer.site {
  background: var(--band);
  color: var(--band-text);
  font-size: 0.92rem;
  text-align: center;
  padding: 1.4rem 0 1.5rem;
  margin-top: 2rem;
}

footer.site p { margin: 0.2rem 0; }
footer.site a { color: var(--band-text); }

.notice {
  border-left: 3px solid var(--grey);
  padding: 0.9rem 1.1rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}
