@layer reset, tokens, base, utilities;

@layer tokens {
  :root {
    --color-green-950: #012d23;
    --color-green-900: #043a2c;
    --color-green-800: #064936;
    --color-green-700: #0a5a43;
    --color-accent: #c4d94f;
    --color-gold: #bd8740;
    --color-ink: #10251e;
    --color-muted: #66766f;
    --color-paper: #f7f8f5;
    --color-white: #ffffff;
    --color-danger: #a62a22;
    --color-success: #12643d;

    --font-sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
    --header-height: 64px;
    --container-inline: clamp(20px, 5vw, 96px);
    --container-max: 1920px;
    --section-block: clamp(84px, 10vw, 150px);

    --radius-pill: 999px;
    --shadow-float: 0 18px 60px rgb(0 0 0 / 18%);
    --ease-out: cubic-bezier(.22, .82, .24, 1);
    --ease-standard: cubic-bezier(.4, 0, .2, 1);
  }

  @media (min-width: 768px) {
    :root {
      --header-height: 72px;
    }
  }
}

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

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

  body,
  h1,
  h2,
  h3,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

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

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

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

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  button {
    border: 0;
  }

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

@layer base {
  html {
    background: var(--color-green-950);
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: clip;
    color: var(--color-ink);
    background: var(--color-paper);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  body.is-scroll-locked {
    overflow: hidden;
    touch-action: none;
  }

  ::selection {
    color: var(--color-green-950);
    background: var(--color-accent);
  }

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

  h1,
  h2,
  h3 {
    text-wrap: balance;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  p {
    text-wrap: pretty;
  }

  .site-container {
    width: min(100%, var(--container-max));
    margin-inline: auto;
    padding-inline: var(--container-inline);
  }

  .skip-link {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    color: var(--color-white);
    border: 0;
    background: var(--color-green-900);
    opacity: 0;
    pointer-events: none;
  }

  .skip-link:focus-visible {
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  .kicker {
    margin-bottom: 12px;
    color: var(--color-gold);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .kicker--accent {
    color: var(--color-accent);
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-block: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 12px;
    font-weight: 500;
  }

  .text-link span,
  .button span {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  }

  @media (hover: hover) and (pointer: fine) {
    .text-link:hover span,
    .button:hover span {
      transform: translateX(4px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .text-link span,
    .button span {
      transition: none;
    }
  }
}

@layer utilities {
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
  }

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

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .001ms !important;
    }
  }
}
