/* ============================================================================
   Base — reset, typography, layout primitives, buttons, focus.
   ============================================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
p { max-width: var(--content); }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

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

/* ---- Layout containers ---- */
.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--s-6); }
.column    { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--s-6); }

/* ---- Eyebrow / section label (mono, tracked) ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .num { color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--teal-dark); transform: translateY(-1px); color: #fff; }

.btn-outline { background: transparent; border-color: var(--hairline); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--muted); padding: 13px 12px; }
.btn-ghost:hover { color: var(--navy); }

.btn-lg { padding: 15px 30px; font-size: var(--t-base); }

/* On dark fields */
.on-dark .btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.on-dark .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---- Focus: 3px teal ring, always visible for keyboard ---- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Headings receive focus programmatically on screen change (for screen-reader
   users); suppress the visible ring since they are not interactive targets. */
[tabindex="-1"]:focus { outline: none; }

/* ---- Utility ---- */
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.gold-rule {
  width: 40px; height: 2px; background: var(--gold); border: 0; margin: var(--s-4) 0;
}
