/* base.css — reset, base elements, typography */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;          /* horizontal-overflow safety net */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--ff-text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-accent); color: var(--c-dark); }

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }
p, li { max-width: var(--measure); }

strong { font-weight: 600; }

/* numeric figures use tabular lining figures */
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---- Eyebrow / mono labels — part of the photographic signature ---- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  max-width: none;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: var(--c-accent); }

/* ---- Lead paragraph ---- */
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.text-muted { color: var(--c-muted); }
.display { font-family: var(--ff-display); }

/* Visually hidden but accessible */
.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;
}

.skip-link {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -120%);
  background: var(--c-ink);
  color: var(--c-cream);
  padding: .65rem 1.1rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 200;
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }
