/* Bledsoe Brand — CSS Token Scaffold
 * Locked Session 6 close. Source of truth: bledsoe-brand-audit.md
 * Reusable across all standalone marketing HTML pages on bledsoe.life.
 *
 * Deploy: upload to Hostinger web root (or /assets/css/) and reference
 * via <link rel="stylesheet" href="/bledsoe-tokens.css"> in each page.
 * Purge LiteSpeed cache after upload.
 */

/* ---------------------------------------------------------------- */
/* Self-hosted fonts (Latin subset)                                 */
/* Sources: fonts.gstatic.com mirrors — IBM Plex Serif v20,         */
/* Inter v20 (variable), JetBrains Mono v24 (variable).             */
/* ---------------------------------------------------------------- */

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-serif-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-variable.woff2') format('woff2-variations');
}

/* ---------------------------------------------------------------- */
/* Tokens (custom properties)                                       */
/* ---------------------------------------------------------------- */

:root {
  /* Backgrounds */
  --bg-deepest: #09090b;        /* zinc-950 */
  --bg-elevated: #18181b;       /* zinc-900 */
  --bg-card: #27272a;           /* zinc-800 */

  /* Text */
  --text-primary: #fafafa;      /* zinc-50 */
  --text-body: #d4d4d8;         /* zinc-300 */
  --text-secondary: #a1a1aa;    /* zinc-400 */
  --text-tertiary: #71717a;     /* zinc-500 */

  /* Accent */
  --accent: #f59e0b;            /* amber-500 */
  --accent-hover: #d97706;      /* amber-600 */
  --accent-soft: #fbbf24;       /* amber-400 — for hover states on links */
  --accent-foreground: #09090b; /* text on accent fills */

  /* Borders */
  --border-subtle: #27272a;     /* zinc-800 */
  --border-strong: #3f3f46;     /* zinc-700 */
  --border-hover: #52525b;      /* zinc-600 */

  /* Semantic */
  --semantic-error: #dc2626;    /* red-600 */
  --semantic-success: #16a34a;  /* green-600 */
  --semantic-warning: #ea580c;  /* orange-600 */

  /* Typography families */
  --font-headline: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Type scale (matches Tailwind defaults) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */

  /* Spacing scale (Tailwind 4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Radius */
  --radius-default: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Container widths */
  --container-prose: 65ch;
  --container-2xl: 42rem;
  --container-4xl: 56rem;
  --container-7xl: 80rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* ---------------------------------------------------------------- */
/* Reset                                                            */
/* ---------------------------------------------------------------- */

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

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

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

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

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

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---------------------------------------------------------------- */
/* Reduced motion                                                   */
/* ---------------------------------------------------------------- */

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

/* ---------------------------------------------------------------- */
/* Accessibility utilities                                          */
/* ---------------------------------------------------------------- */

.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-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  border-radius: var(--radius-default);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

*:focus {
  outline: none;
}

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

/* ---------------------------------------------------------------- */
/* Layout utilities                                                 */
/* ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-7xl);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .section { padding-top: 8rem; padding-bottom: 8rem; }
}

.section-conversion {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (min-width: 768px) {
  .section-conversion { padding-top: 10rem; padding-bottom: 10rem; }
}

.bg-deepest { background-color: var(--bg-deepest); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-card { background-color: var(--bg-card); }

/* ---------------------------------------------------------------- */
/* Typography utilities                                             */
/* ---------------------------------------------------------------- */

.font-headline { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

.text-primary { color: var(--text-primary); }
.text-body { color: var(--text-body); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }

.label-uppercase {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.prose-center {
  max-width: var(--container-prose);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------- */
/* Components                                                       */
/* ---------------------------------------------------------------- */

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-default);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Text-link with arrow */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition-fast), gap var(--transition-fast);
  padding: 0.5rem 0;
}

.btn-link:hover {
  color: var(--accent-soft);
  gap: 0.625rem;
}

/* Subscribe input */
.subscribe-input {
  flex: 1;
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-default);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.subscribe-input::placeholder {
  color: var(--text-tertiary);
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Subscribe form (shared shape) */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .subscribe-form { flex-direction: row; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hand-drawn underline accent (for H1 word emphasis) */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4em;
  height: 0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 50 2, 100 4 T 198 4' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' fill='none' /%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------------------------------------------------------------- */
/* Craft layer (Stage 4 — added after visual-references reverse-     */
/* engineering of Vercel + Linear). Subtle gradients, glows, and    */
/* shadows are permitted at low intensity for ambient depth and     */
/* interactive feedback. Loud / gaudy effects remain forbidden.     */
/* ---------------------------------------------------------------- */

:root {
  /* Subtle ambient glow tokens (derived from accent #f59e0b) */
  --accent-glow-soft:    rgba(245, 158, 11, 0.08);
  --accent-glow-medium:  rgba(245, 158, 11, 0.12);
  --accent-glow-button:  rgba(245, 158, 11, 0.25);
  --accent-glow-strong:  rgba(245, 158, 11, 0.35);

  /* Alpha border tokens — for surfaces where opaque borders read too rigid */
  --border-subtle-alpha:  rgba(255, 255, 255, 0.06);
  --border-default-alpha: rgba(255, 255, 255, 0.10);
  --border-strong-alpha:  rgba(255, 255, 255, 0.16);

  /* Premium motion easing */
  --easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadow recipes — for interactive feedback only, never default */
  --shadow-button-hover: 0 4px 16px var(--accent-glow-button);
  --shadow-cta-glow:     0 6px 20px var(--accent-glow-medium);
  --shadow-card-hover:   0 8px 24px rgba(0, 0, 0, 0.3);

  /* Gradient recipes — page-level ambient texture, not section-level decoration */
  --gradient-hero-glow:       radial-gradient(ellipse 60% 40% at 50% 0%,  var(--accent-glow-medium) 0%, transparent 70%);
  --gradient-conversion-glow: radial-gradient(ellipse 55% 60% at 50% 50%, var(--accent-glow-soft) 0%,   transparent 70%);
  --gradient-rule-fade:       linear-gradient(90deg, var(--accent), transparent);
}

/* Refined button hover — translateY + soft shadow on accent-tinted glow */
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------------------------------------------------------------- */
/* Fade-up scroll animation (progressive enhancement)               */
/* Pages opt in by adding class="fade-up" to elements + JS handler. */
/* ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------------- */
/* Page-extras vocabulary (Stage 5 — Manus Round 3 propagation)     */
/*                                                                  */
/* These tokens are NOT applied globally — pages opt in by inlining */
/* the `:root` block below into their own <style> alongside the     */
/* scaffold. The `--page-*` namespace marks them as page-additive,  */
/* not scaffold-locked, so individual pages can override safely.    */
/*                                                                  */
/* Locked Round 3: drop cap, film grain overlay, scroll progress,   */
/* ornament glyph divider, hero glow ambient drift, masthead-style  */
/* footer rule, track-record hover indent.                          */
/*                                                                  */
/* Reference recipe (copy into a page's <style> block to opt in):   */
/*                                                                  */
/* :root {                                                          */
/*   --page-grain-opacity:       0.022;                             */
/*   --page-dropcap-size:        4.5rem;                            */
/*   --page-dropcap-line-height: 0.82;                              */
/*   --page-ornament-color:      var(--text-tertiary);              */
/*   --page-tr-hover-indent:     0.75rem;                           */
/*   --page-glow-duration:       22s;                               */
/*   --page-progress-height:     2px;                               */
/*   --page-progress-color:      var(--accent);                     */
/*   --page-footer-rule:                                            */
/*     linear-gradient(90deg, var(--accent), transparent 60%);      */
/* }                                                                */
/*                                                                  */
/* about.html (canonical reference page) is the working example.    */
/* ---------------------------------------------------------------- */

/* ---------------------------------------------------------------- */
/* Footer legal nav — disclaimer / privacy / terms                  */
/* Sits between copyright and wordmark in the footer-bottom row.    */
/* Loaded site-wide via wp_enqueue_style 'bledsoe-tokens'.          */
/* ---------------------------------------------------------------- */

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary, #71717a);
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--text-secondary, #a1a1aa);
}
@media (max-width: 767px) {
  .footer-legal {
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
  }
}

/* End of scaffold */
