/* =============================================================================
 * ORVOMA · tokens.css
 * Owned by: Agent 08 — UX Architect
 * Single source of truth for typography, color tokens, reset, and shared
 * primitives (corner brackets, chips, CTA). Every other stylesheet and
 * section partial in the build depends on the values declared here.
 * Values §3 (color) and §4 (typography) are copied verbatim from
 * DESIGN_BRIEF.md and must not be altered.
 * ========================================================================== */


/* =============================================================================
 * === FONT FACE · IBM PLEX (self-hosted, NO Google Fonts CDN) ===
 * Source: github.com/IBM/plex — releases page → OpenType collection (OFL license)
 * Workflow: download the WOFF2 release, subset to Latin only (e.g. via
 *   `pyftsubset PlexSans-Regular.otf --flavor=woff2 --unicodes=U+0000-00FF
 *    --output-file=ibm-plex-sans-400.woff2`) and drop the files in
 *    site/assets/fonts/ using the naming convention below.
 * Latin subset (U+0000-00FF) keeps each weight under ~25KB.
 * ========================================================================== */

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}


/* =============================================================================
 * === ROOT TOKENS · COLORS (§3) + TYPOGRAPHY (§4) — locked, verbatim ===
 * ========================================================================== */

:root {
  /* === SURFACES === */
  --bg:          #0F0A06;   /* canvas background, primary surface */
  --bg-elev:    #15100B;   /* one step elevated — cards, panels */
  --bg-elev-2:  #1C1610;   /* two steps elevated — input chips, hovered cards */
  --hairline:   #2A211A;   /* divider lines, subtle borders */
  --hairline-2: #3A2E24;   /* slightly stronger borders, focus rings on dark */

  /* === TEXT === */
  --text:       #FAF3EC;   /* primary text, warm beige (NOT white) */
  --text-2:     #C9BFB3;   /* secondary text, body copy */
  --text-muted: #8A8175;   /* meta, captions, footer */
  --text-dim:   #5C5448;   /* lowest tier, separators */

  /* === ACCENT — USE SPARINGLY === */
  --accent:       #C8784A;   /* terracotta, primary CTA + key emphasis ONLY */
  --accent-hot:   #B06A3E;   /* hover / pressed state */
  --accent-soft:  rgba(200,120,74,0.12);  /* tint backgrounds, focus glow */
  --accent-line:  rgba(200,120,74,0.35);  /* scan lines, decorative rules */

  /* === STATUS (rare on public site) === */
  --green:  #6FA873;
  --amber:  #C99645;
  --red:    #C76B5A;

  /* === FONT STACK === */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* === TYPE SCALE === */
  --fs-hero:      clamp(80px, 14vw, 220px);   /* the wordmark — massive */
  --fs-display-1: clamp(48px, 6vw, 88px);     /* section eyebrows in display weight, rare */
  --fs-h1:        clamp(40px, 5vw, 64px);     /* section titles */
  --fs-h2:        clamp(28px, 3vw, 40px);     /* subsection titles */
  --fs-h3:        20px;                       /* card titles */
  --fs-body:      16px;                       /* default body */
  --fs-body-lg:   18px;                       /* hero subtitle, lead paragraphs */
  --fs-small:     14px;
  --fs-meta:      12px;                       /* chips, mono labels, uppercase */

  /* === LINE HEIGHT === */
  --lh-tight: 1.04;     /* the wordmark */
  --lh-snug:  1.15;     /* titles */
  --lh-base:  1.55;     /* body */
}


/* =============================================================================
 * === RESET + BASELINE ===
 * ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}


/* =============================================================================
 * === PREFERS-REDUCED-MOTION ===
 * Disable smooth scroll and zero out transitions/animations for users who
 * have set reduced-motion at the OS level. Required by WCAG 2.2.
 * ========================================================================== */

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

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


/* =============================================================================
 * === CORNER BRACKETS · .bk (§5.1, verbatim) ===
 * Four small L-shaped marks that frame any "framed" element (hero
 * composition, OG image, occasional pricing cards). 12px arms, 1px stroke.
 * Brand's recognizable structural mark.
 * ========================================================================== */

.bk-frame { position: relative; padding: 32px; }
.bk { position: absolute; width: 12px; height: 12px; border: 1px solid var(--hairline-2); }
.bk-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.bk-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bk-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.bk-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }


/* =============================================================================
 * === MONO CHIPS · .chip (§5.3) ===
 * Uppercase IBM Plex Mono · 12px · letter-spacing 0.08em · 6px 10px padding
 * 1px hairline-2 border · transparent or bg-elev background. Primary meta
 * element across the site (top-corner chips, eyebrows, status pips).
 * Variants:
 *   .chip--accent — terracotta border + accent text, for key emphasis (rare).
 *   .chip--solid  — filled bg-elev background instead of transparent.
 * ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: 0;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.chip--solid {
  background: var(--bg-elev);
}

.chip--accent {
  color: var(--accent);
  border-color: var(--accent-line);
}

.chip--accent:hover {
  color: var(--accent-hot);
  border-color: var(--accent);
  background: var(--accent-soft);
}


/* =============================================================================
 * === CTA CHIP · .cta-chip (§9, locked) ===
 * The single locked CTA used by every "Book pricing leak discovery" button
 * across all section partials. Terracotta-bordered, mono uppercase, with a
 * leading arrow. Hover lifts and fills; focus-visible adds a terracotta
 * glow ring. Minimum 44×44px touch target (WCAG 2.5.5).
 * ========================================================================== */

.cta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.cta-chip .cta-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  line-height: 1;
  transform: translateX(0);
  transition: transform 200ms ease;
}

.cta-chip:hover {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -8px var(--accent-soft);
  text-decoration: none;
}

.cta-chip:hover .cta-arrow {
  transform: translateX(3px);
}

.cta-chip:active {
  transform: translateY(0);
  background: var(--accent-hot);
  border-color: var(--accent-hot);
}

.cta-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}


/* =============================================================================
 * === FOCUS VISIBILITY (global) ===
 * Terracotta outline at 2px with 3px offset on any keyboard-focused element.
 * ========================================================================== */

:focus {
  outline: none;
}

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


/* =============================================================================
 * === LINK DEFAULTS ===
 * ========================================================================== */

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover {
  color: var(--accent-hot);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}


/* =============================================================================
 * === SECTION TITLE + LEAD UTILITIES ===
 * Used by every section partial via the .sec-head pattern in §5.5.
 * ========================================================================== */

.sec-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.sec-lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-base);
  color: var(--text-2);
  max-width: 64ch;
}
