/* ============================================================
   Base — reset, typography, buttons, links
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Jump links, the skip link, error summaries and keyboard focus all land below the sticky header */
html { scroll-padding-top: calc(var(--header-h) + 1.5rem); }

::selection { background: rgba(var(--ham-blue-rgb), 0.16); color: var(--slate-navy); }

body {
  background-color: var(--paper-cream);
  color: var(--charcoal-ink);
  font-family: var(--f-spectral);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 4%; }

h1, h2, h3 {
  font-family: var(--f-cormorant);
  color: var(--slate-navy);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-variant-numeric: lining-nums; /* Cormorant's old-style 1 reads as a capital I ("11oth") */
}
p, li { text-wrap: pretty; }
h1.mega-display { font-size: clamp(3.2rem, 6vw + 1rem, 6.5rem); margin-bottom: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }

/* Accessibility helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--slate-navy); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--f-manrope); border-radius: 0 0 var(--br-dropdown) 0;
}
.skip-link:focus { left: 0; }

/* Focus ring: HAM blue on light surfaces; dark panels switch --focus to brass (see components.css) */
:focus-visible { outline: 3px solid var(--focus, var(--ham-blue)); outline-offset: 2px; }

/* Buttons: pills with a lit top edge, a tight contact shadow and a soft drop, like a pressed seal */
.btn {
  font-family: var(--f-manrope); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: calc(0.9rem - 0.1em) 1.6rem; border-radius: var(--br-pill);
  cursor: pointer; font-size: 0.95rem; text-align: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
  text-decoration: none; line-height: 1.2; border: 2px solid transparent; /* 1.2 so a wrapped label breathes; padding trimmed to match */
}
.btn-lg { padding: calc(1rem - 0.1em) 2rem; }
.btn-sm { padding: calc(0.6rem - 0.1em) 1.4rem; }
.btn-primary, .btn-primary.ama {
  color: var(--card-white);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 65%);
}
.btn-primary { background-color: var(--slate-navy); border-color: var(--slate-navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(var(--navy-rgb), 0.2), 0 8px 18px -10px rgba(var(--navy-rgb), 0.55); }
.btn-primary.ama { background-color: var(--ham-blue); border-color: var(--ham-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(var(--ham-blue-rgb), 0.25), 0 8px 18px -10px rgba(var(--ham-blue-rgb), 0.6); }
.btn-primary:hover { background-color: #135177; border-color: #135177; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 4px rgba(var(--navy-rgb), 0.18), 0 14px 26px -12px rgba(var(--navy-rgb), 0.55); transform: translateY(-1px); }
.btn-primary.ama:hover { background-color: var(--ham-blue-deep); border-color: var(--ham-blue-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 4px rgba(var(--ham-blue-rgb), 0.22), 0 14px 26px -12px rgba(var(--ham-blue-rgb), 0.6); transform: translateY(-1px); }
.btn-primary:active, .btn-primary.ama:active { transform: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18); }
.btn-outline { color: var(--slate-navy); border-color: rgba(var(--navy-rgb), 0.28); background: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: var(--slate-navy); color: #fff; border-color: var(--slate-navy); box-shadow: 0 10px 22px -12px rgba(var(--navy-rgb), 0.55); }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
.btn-on-dark:hover { background: #fff; color: var(--slate-navy); border-color: #fff; }
.btn .arr { margin-left: 0.6rem; display: inline-block; font-size: 1.2em; font-weight: normal; transform: translateY(-1px); transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translate(4px, -1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arr { transition: none; } .btn:hover, .btn-primary:hover, .btn-primary.ama:hover { transform: none; } }

/* Overline: one style for every eyebrow and small caps label. Deep gold on light, brass on dark */
.eyebrow {
  display: block; font-family: var(--f-manrope); font-weight: 800; font-size: 0.78rem; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase; font-feature-settings: 'case';
  color: var(--gold-deep);
}

/* Tertiary text link */
.pathway-link {
  font-family: var(--f-manrope); color: var(--slate-navy); font-weight: 700;
  border-bottom: 2px solid var(--gold-brass); display: inline-block; margin-top: auto;
  font-size: 0.95rem; padding-bottom: 3px; transition: color 0.2s, border-color 0.2s;
}
.pathway-link:hover { color: var(--ham-blue); border-bottom-color: var(--ham-blue); }
.pathway-link--light { color: #fff; }
.pathway-link--light:hover { color: var(--gold-brass); border-bottom-color: var(--gold-brass); }
