/* ===========================================================================
   Base - reset, body, typography defaults
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper-0);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
}

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

a {
  color: var(--brand-petrol);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--brand-petrol-deep); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  color: var(--ink-1);
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--ff-sans);
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

dl { margin: 0; }
dt { font-weight: 600; color: var(--ink-1); margin-top: var(--s-4); }
dt:first-child { margin-top: 0; }
dd { margin: var(--s-1) 0 0 0; color: var(--ink-2); }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-1);
}

:focus-visible {
  outline: 3px solid var(--brand-petrol-tint);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* --- Typography helpers ---------------------------------------------- */

.ff-display {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.ff-display--xl { font-size: var(--t-display-xl); }
.ff-display--lg { font-size: var(--t-display-lg); }
.ff-display--md { font-size: var(--t-display-md); }

.ff-display em,
.ff-display .is-italic {
  font-style: italic;
  font-weight: 500;
}

.ff-eyebrow {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-petrol);
  margin-bottom: var(--s-4);
}

.ff-lede {
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
}

.ff-meta {
  font-size: var(--t-meta);
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.ff-meta--upper {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ff-quote-serif {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink-1);
}

/* --- Skip link ------------------------------------------------------- */

.ff-skip {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: var(--brand-petrol);
  color: var(--paper-0);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--t-body-sm);
  z-index: 100;
  transition: top var(--dur-base) var(--ease);
}
.ff-skip:focus,
.ff-skip:focus-visible {
  top: var(--s-4);
  color: var(--paper-0);
}

/* --- Selection ------------------------------------------------------- */

::selection {
  background: var(--brand-petrol-tint);
  color: var(--ink-1);
}

/* --- Reduced motion -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
