/* ============================================================================
   Packfilm Group — reset, typography, utilities
   ========================================================================== */

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;   /* sticky header height, for #anchor landings */
}

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: none; cursor: pointer; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--brand-deep); }

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

/* --- headings -------------------------------------------------------------- */
/* Archivo Black has one weight (900), so never set font-weight on it — a
   synthesised bold on an already-black face turns to mud. */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
h4, h5, h6 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.3;
}

p { text-wrap: pretty; }

strong { font-weight: 600; }

/* --- focus: one visible ring everywhere ----------------------------------- */
/* Ochre reads on both the cream canvas and the brown bands, which a brown ring
   would not. */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.on-dark :focus-visible,
.footer :focus-visible { outline-color: var(--accent); }

/* --- skip link ------------------------------------------------------------ */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brand-deep);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* --- layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--wash { background: var(--brand-wash); }
.section--tint { background: var(--brand-tint); }
.section--dark { background: var(--brand-deep); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.stack > * + * { margin-top: var(--flow, 1rem); }

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.5;
}

.muted { color: var(--muted); }
.prose { max-width: var(--maxw-prose); }

/* --- eyebrow -------------------------------------------------------------- */
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--accent); }

/* --- section heading block ------------------------------------------------ */
.head { max-width: 62ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.head--center { margin-inline: auto; text-align: center; }
.head .eyebrow + h2 { margin-top: .6rem; }
.head h2 + p { margin-top: .9rem; }

/* --- visually hidden ------------------------------------------------------ */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- reveal on scroll ----------------------------------------------------- */
/* Applied by js/site.js. Defined so that with JS off or reduced motion on,
   content is simply visible — never stuck at opacity 0. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
