/* =============================================================================
   Chip & Chance — core.css
   Design system: "Aurora Nocturne" — a northern-Manitoba night palette.
   Deep indigo ink, muted aurora teal, champagne and antique brass.
   Mobile-first. No external fonts or libraries.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* palette */
  --ink-900: #070A10;
  --ink-800: #0B1018;
  --ink-700: #10171F;
  --ink-600: #141D28;
  --ink-500: #1B2630;
  --ink-400: #26323E;
  --line: rgba(228, 207, 163, 0.16);
  --line-soft: rgba(238, 241, 243, 0.09);

  --aurora: #5FB7A6;
  --aurora-dim: #3C7F74;
  --champagne: #E4CFA3;
  --brass: #B2884F;
  --brass-dim: #7E6237;

  --porcelain: #EEF1F3;
  --mist: #B9C3CB;
  --mist-dim: #8A95A0;

  /* type */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  /* spacing / rhythm */
  --shell: 1200px;
  --shell-narrow: 780px;
  --gutter: 20px;
  --sec: clamp(56px, 8vw, 116px);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 10px 28px -14px rgba(0, 0, 0, 0.55);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--porcelain);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--ink-600); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.14; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
figure { margin: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(95, 183, 166, 0.12);
  border: 1px solid rgba(95, 183, 166, 0.22);
  border-radius: var(--r-sm);
  padding: 0.1em 0.38em;
  color: #9FD8CC;
  word-break: break-word;
}

a { color: var(--champagne); text-decoration-color: rgba(228, 207, 163, 0.4); text-underline-offset: 3px; }
a:hover { color: #F3E6C8; text-decoration-color: currentColor; }

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

::selection { background: rgba(95, 183, 166, 0.3); color: #fff; }

/* --------------------------------------------------------------- typography */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; }

h1.display, .hero__h { font-size: clamp(2.3rem, 6.2vw, 4.2rem); }
.ihero__h { font-size: clamp(2rem, 5vw, 3.3rem); }
.phero__h { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.715rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aurora);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.68;
  color: var(--mist);
  max-width: 62ch;
}

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

main > section { position: relative; padding-block: var(--sec); }
main > section + section { padding-top: 0; }
main > section.cta,
main > section.form,
main > section.pull,
main > section.qband,
main > section.cband { padding-top: var(--sec); }

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

.skip {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -140%);
  z-index: 200; background: var(--champagne); color: var(--ink-900);
  padding: 12px 22px; border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; text-decoration: none; transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.sechead { max-width: 64ch; margin-bottom: clamp(32px, 4vw, 56px); }
.sechead--wide { max-width: 78ch; }

/* ------------------------------------------------------------------- icons */
.ico {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------- reveal micro-animation */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .js-off .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------- shared surfaces */
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
}
.pill--age { border-color: rgba(95, 183, 166, 0.5); color: var(--aurora); }

/* ---------------------------------------------------- compliance elements */
.cbadge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.cbadge li {
  font-size: 0.705rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.cbadge .cbadge__age {
  color: var(--ink-900);
  background: var(--aurora);
  border-color: var(--aurora);
  letter-spacing: 0.1em;
}
.cbadge--inner { margin-top: 34px; }

.disc {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--aurora);
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(95, 183, 166, 0.07), rgba(255, 255, 255, 0.015));
  font-size: 0.945rem;
  color: var(--mist);
}
.disc .ico { width: 22px; height: 22px; color: var(--aurora); margin-top: 2px; }
.disc strong { color: var(--porcelain); }

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(228, 207, 163, 0.05);
}
.callout__label {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne);
}
.callout p:last-child { margin-bottom: 0; }
