/* ==========================================================================
   Greensnake — reset, layout primitives and shared typography
   Design tokens live in tokens.css; the button system in buttons.css.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--blue-assist);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.container--wide { max-width: var(--container-wide); }

.section { position: relative; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-display);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.t-h2 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t-h3 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--step-h3);
  line-height: 1.375;
  letter-spacing: -0.03em;
}

.t-lead {
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: var(--step-lead);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.t-body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.03em;
}

/* Small eyebrow label with the leading dot */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--grey);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-assist);
}

.eyebrow--yellow::before { background: var(--yellow); }
.eyebrow--light { color: var(--white); }

/* Hairline rule used under section titles */
.rule {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: currentColor;
  opacity: 0.25;
}
/* --------------------------------------------------------------------------
   Scroll reveal — used by js/main.js

   The hidden state is scoped to `.js`, which the inline snippet in <head>
   adds. Without JavaScript nothing is ever hidden, so the page still reads.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
