/* ============================================================
   UFJL, Base / reset / typography
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

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

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--navy-ink); text-decoration-thickness: 2px; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-ink);
  font-family: var(--f-display);
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 8vw, 120px); line-height: .9;  letter-spacing: -.045em; font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -.03em; font-weight: 900; text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h4 { font-size: 13px; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); }

p { margin: 0 0 14px; max-width: 68ch; text-wrap: pretty; }
em { font-style: normal; }

/* Utility */
.serif      { font-family: var(--f-serif); font-optical-sizing: auto; }
.mono       { font-family: var(--f-mono); }
.sans       { font-family: var(--f-display); }
.italic     { font-style: normal; }
.gold       { color: var(--gold); }
.navy       { color: var(--navy); }
.upper      { text-transform: uppercase; letter-spacing: .04em; }
.eyebrow    {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow.gold { color: var(--gold); }

.wrap       { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow{ max-width: 880px;  margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.rule       { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-thick { border: 0; border-top: 3px solid var(--navy-ink); margin: 0; }

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

/* Selection */
::selection { background: var(--gold); color: var(--navy-ink); }

/* Section spacing */
section { padding: clamp(56px, 9vw, 120px) 0; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* Buttons / CTA */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 16px 26px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover {
  background: #ffba33;
  border-color: #ffba33;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  color: var(--navy-ink);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--navy-ink);
  border-color: var(--navy-ink);
}
.btn--ghost:hover { background: var(--navy-ink); color: #fff; }

.btn--navy {
  background: var(--navy-ink);
  color: #fff;
  border-color: var(--navy-ink);
}
.btn--navy:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn--lg { padding: 20px 32px; font-size: 15px; }
.btn--sm { padding: 10px 16px; font-size: 12px; letter-spacing: .12em; }

/* Form fields */
.field {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--navy-ink);
  background: #fff;
  border: 1.5px solid var(--navy-ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: #9a9684; }
.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242,168,29,.25);
}
.field.is-invalid {
  border-color: var(--alarm, #C8102E);
  box-shadow: 0 0 0 3px rgba(200,16,46,.18);
}
.field.is-invalid:focus {
  border-color: var(--alarm, #C8102E);
  box-shadow: 0 0 0 3px rgba(200,16,46,.25);
}
textarea.field { resize: vertical; min-height: 120px; }

label.field-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

/* Card */
.card {
  background: #FBF7EA;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
}
.card--gold { background: #FFF5DE; border-color: #e9c870; }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy h2, .card--navy h3, .card--navy h4 { color: #fff; }
.card--paper { background: var(--paper); border-color: var(--line); }

/* Eyebrow row (number + label) */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow-row .num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  background: var(--navy-ink);
  color: var(--gold);
  padding: 4px 8px;
  border-radius: 2px;
}
.eyebrow-row .label {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Honeypot, hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
