/* ==========================================================================
   Base reset + global element styles
   ========================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--colour-bg);
  color: var(--colour-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--size-body);
  line-height: 1.3;
}

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

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: inherit; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* No pure black/white text anywhere — charcoal navy is as dark as the palette goes */
a, button {
  color: var(--colour-ink);
  letter-spacing: var(--tracking-interactive);
  font-family: var(--font-ui);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button { padding: 0; font: inherit; }

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

:focus-visible {
  outline: 2px solid var(--colour-accent);
  outline-offset: 2px;
}

/* Page-level scroll-snap container used on the homepage */
.pg-scroll-root {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-gutter: stable;
  background: var(--colour-bg);
}

.pg-scroll-root.no-snap { scroll-snap-type: none; }

.pg-section {
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}

/* Mobile content column (350px inside a 390px phone band) */
.pg-content-col {
  width: 100%;
  max-width: var(--mobile-content-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: content-box;
}

@media (min-width: 760px) {
  .pg-content-col {
    max-width: var(--content-max-width);
    padding: 0 40px;
  }
}

/* Global content column: mobile 350px width, container-query sizing for
   the type-scale classes below. Used inside every .pg-sec / flowing section
   on every page, not just the homepage. */
.pg-col {
  width: 100%;
  max-width: var(--mobile-content-width);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* GLOBAL TYPE SCALE primitives (CLAUDE.md) — page title / section headline /
   body copy, shared by every page's sections. */
.pg-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-page-title);
  letter-spacing: 0.04em;
  color: var(--colour-ink);
  text-transform: uppercase;
}

.pg-headline {
  margin: calc(var(--size-page-title) * 1.15) 0 0 0;
  font-family: var(--font-ui);
  font-weight: 400;
  -webkit-text-stroke: 0.048em currentColor;
  font-size: min(2.4rem, 8.8cqw, 4dvh);
  line-height: 1.1;
  letter-spacing: calc(0.029em + 0.2pt);
  text-transform: uppercase;
  color: var(--colour-ink);
  text-wrap: balance;
}

.pg-body {
  margin: 10px 0 0 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: min(0.85rem, 3.9cqw, 2.2dvh);
  line-height: 1.3;
  color: #5C646B;
}

.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;
}
