/* D1FY INITIATIVE · shared tokens
   Palette: Tahiti Gold, Mariner, white, near-black, warm off-white. (Dixie is never used alongside Tahiti Gold.) */
:root {
  --gold: #DF6D20;
  --gold-deep: #B8540F;
  --gold-soft: #FAD9C0;
  --mariner: #3662AA;
  --mariner-deep: #274A86;
  --mariner-soft: #DCE5F4;
  --ink: #0C0C0C;
  --ink-2: #17130F;
  --ink-3: #241D17;
  --paper: #F2EDE8;
  --white: #FFFFFF;
  --line: rgba(12, 12, 12, .14);
  --ok: #1F7A4D;
  --warn: #9A5B00;
  --bad: #B3261E;

  --font-display: 'Madimi One', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Mohave', 'Arial Narrow', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--mariner-deep);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink); --bd: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .55rem 1.5rem;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; text-decoration: none;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.btn--blue { --bg: var(--mariner); --fg: #fff; --bd: var(--mariner); }
.btn--ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--sm { min-height: 38px; padding: .3rem 1rem; font-size: .92rem; }
.btn--danger { --bg: transparent; --fg: var(--bad); --bd: var(--bad); }

/* ---------- forms ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label, .field .label { font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.field .hint { font-size: 1rem; color: #4d5a72; margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .6rem .9rem;
  font: inherit; font-size: 1.2rem; color: var(--ink);
  background: #fff; border: 2px solid rgba(12, 12, 12, .28); border-radius: var(--r-sm);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mariner); box-shadow: 0 0 0 4px rgba(54, 98, 170, .22); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.pin { letter-spacing: .5em; font-family: var(--font-display); font-size: 1.5rem !important; text-align: center; }
.form-error { color: var(--bad); font-weight: 700; margin: .25rem 0 1rem; min-height: 1.4em; }
.form-note { color: var(--ok); font-weight: 700; }

/* ---------- toast ---------- */
.toast-host { position: fixed; z-index: 100; inset: auto 1rem 1rem 1rem; display: grid; gap: .5rem; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: toast-in .25s ease; }
.toast.bad { background: var(--bad); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
