/* AI Shopify System — design tokens
   Source: Vegtopia hero reference. Hex values sampled from the image, not eyeballed. */

:root {
  /* ---- Color ---- */
  --teal-950: #173438;   /* dark-section gradient midpoint. In production (print.css)
                            as a literal: linear-gradient(180deg,#0D0D0D 0%,#173438 55%,#0D0D0D 100%).
                            Tokenized here 2026-08-27 so the file stays source of truth. */
  --teal-900: #4A828A;   /* deep edge / hover on teal surfaces */
  --teal-700: #629EA6;   /* PRIMARY. dominant background field (10.6% of ref pixels) */
  --teal-400: #8ACDD4;   /* gradient bottom */
  --teal-200: #B6EDF2;   /* pale aqua wash */

  --cream:    #FFFFF3;   /* the "ink". headline, body copy, badge strokes */
  --white:    #FFFFFF;   /* chrome only: nav bar, icon buttons, logo tile */

  --gold:     #E0C67B;   /* ACCENT. sparingly: one word, one monogram, one active state */
  --gold-200: #FBE7BC;   /* tint. active nav pill fill only */

  --ink:      #0D0D0D;   /* primary CTA fill + nav link text */

  /* Reference holds the deep teal flat for ~70% of the canvas, then lifts fast.
     A straight 0->100% ramp reads paler and washier through the midsection. */
  --bg-gradient: linear-gradient(180deg, var(--teal-700) 0%, var(--teal-700) 70%, var(--teal-400) 100%);

  /* ---- Type ---- */
  --font-display: 'Anton', 'Oswald', 'Arial Narrow', sans-serif; /* + roughen, see .display */
  --font-body: 'Outfit', 'Poppins', ui-sans-serif, system-ui, sans-serif;

  --display-tracking: -0.02em;
  --display-leading: 0.86;      /* negative leading, cap-heights nearly touch */

  --body-size: 1.1875rem;       /* ~19px */
  --body-leading: 1.55;
  --body-weight: 400;
  --lead-in-weight: 700;        /* the bolded brand word opening the paragraph */

  --nav-size: 1.0625rem;
  --nav-weight: 600;
  --btn-weight: 600;

  --badge-size: 0.8125rem;
  --badge-tracking: 0.22em;     /* very wide, set on a circular path */

  /* ---- Shape ---- */
  --r-pill: 9999px;             /* every button. zero sharp corners in this system */
  --r-tile: 11px;               /* logo squircle */
  --r-nav: 30px;                /* nav bar: BOTTOM-LEFT ONLY, hangs from top edge */
  --r-card: 28px;               /* page container */

  --btn-h: 76px;
  --btn-pad-x: 40px;
  --icon-btn: 74px;             /* circle, sits flush against the pill */
  --scroll-btn: 76px;

  /* ---- Depth ---- */
  --shadow: none;               /* deliberate. depth comes from overlap only */
  --hairline: 1px;
}

/* ---- Base ---- */
body {
  background: var(--bg-gradient);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

/* ---- Display headline ----
   Reference letterforms are a condensed gothic with the texture DRAWN IN
   (chipped edges, background specks knocked OUT of the glyph). A CSS filter
   cannot reproduce a knockout. Two honest options:
     A. buy/licence a rough face (Sant'Elia Rough, Cheddar Gothic Rough, Gin Rough)
     B. render headlines as SVG/PNG with the grain baked in
   Anton below is the correct skeleton, clean. Swap the family, keep the metrics. */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  color: var(--cream);
  font-size: clamp(4rem, 13vw, 11rem);
}
.display em { color: var(--gold); font-style: normal; } /* the single accent word */

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-body);
  font-weight: var(--btn-weight);
  border: 0;
  border-radius: var(--r-pill);
  height: var(--btn-h);
  padding: 0 var(--btn-pad-x);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.btn:hover { background: #000; }

.btn-icon {
  width: var(--icon-btn); height: var(--icon-btn);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  border: 0;
  display: inline-grid; place-items: center;
  cursor: pointer;
}

.btn-ghost {                      /* scroll-down affordance */
  width: var(--scroll-btn); height: var(--scroll-btn);
  border-radius: 50%;
  background: transparent;
  border: var(--hairline) solid rgb(255 255 243 / 0.55);
  color: var(--cream);
}

/* ---- Nav ---- */
.nav {
  background: var(--white);
  border-radius: 0 0 0 var(--r-nav);   /* asymmetric: only bottom-left */
  color: var(--ink);
  font-weight: var(--nav-weight);
  font-size: var(--nav-size);
}
.nav a.is-active {
  background: var(--gold-200);
  border-radius: var(--r-pill);
  padding: 12px 26px;
}

/* ---- Grain ----
   Fine uniform noise over the whole field. Kills gradient banding and carries
   the printed-matter feel. Keep it subtle; UI layer stays crisp. */
/* Production (aisystem.leadsatscale.io/print.css) uses a real 96px noise.png tile on a
   plain .grain element (not ::after), with soft-light blending. Verified 2026-08-27.
   soft-light is load-bearing: at 0.16 with normal blending the same noise reads as dirt. */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("noise.png");   /* 8.7KB, 96px tile */
  background-size: 96px 96px;
}

/* Fallback when noise.png isn't available at the page's relative root. Same opacity and
   blend; the SVG turbulence is a coarser grain than the real tile. */
.grain--svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto;
}

/* ---- Rotating seal ---- */
.seal { animation: spin 24s linear infinite; }
.seal text { fill: var(--cream); font-size: var(--badge-size); letter-spacing: var(--badge-tracking); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }
