@charset "UTF-8";
/* 1.1 CORE VARIABLES */
:root {
  --content-width: 71.875rem; /* 1150px */
  --focus-width: 2px;
  --body-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --headline-font: var(--body-font);
  color-scheme: light-dark;
}

/* 1.2 COLOR SYSTEM (OKLCH only) */
:root {
  /* Background */
  --bg-body: oklch(99.2% 0.002 257.7);
  --bg-surface: oklch(97.8% 0.003 257.7);
  --bg-surface-hover: oklch(95.5% 0.005 257.7);
  --bg-muted: oklch(92.5% 0.008 257.7);
  /* Primary */
  --primary-ultra-light: oklch(97.5% 0.015 257.7);
  --primary-bg: oklch(95% 0.025 257.7);
  --primary-light: oklch(85% 0.075 257.7);
  --primary: oklch(45% 0.155 257.7);
  --primary-hover: oklch(50% 0.165 257.7);
  --primary-focus: oklch(53% 0.142 257.7);
  --primary-dark: oklch(38% 0.148 257.7);
  --primary-ultra-dark: oklch(25% 0.135 257.7);
  /* Primary transparency */
  --primary-trans-15: oklch(45% 0.155 257.7 / 0.15);
  --primary-trans-25: oklch(45% 0.155 257.7 / 0.25);
  --primary-trans-40: oklch(45% 0.155 257.7 / 0.4);
  --primary-trans-65: oklch(45% 0.155 257.7 / 0.65);
  --primary-trans-85: oklch(45% 0.155 257.7 / 0.85);
  /* Primary variations */
  --primary-bright: oklch(78% 0.125 257.7);
  --primary-soft: oklch(88% 0.065 257.7);
  --primary-ultra-soft: oklch(96.5% 0.02 257.7);
  --primary-brightest: oklch(98.5% 0.012 257.7);
  /* Secondary */
  --secondary-ultra-light: oklch(96.5% 0.016 8);
  --secondary-bg: oklch(94.5% 0.022 8);
  --secondary-light: oklch(86% 0.062 8);
  --secondary: oklch(42% 0.125 8);
  --secondary-hover: oklch(46% 0.132 8);
  --secondary-focus: oklch(50% 0.118 8);
  --secondary-dark: oklch(35% 0.122 8);
  --secondary-ultra-dark: oklch(22% 0.115 8);
  /* Secondary transparency */
  --secondary-trans-15: oklch(42% 0.125 8 / 0.15);
  --secondary-trans-25: oklch(42% 0.125 8 / 0.25);
  --secondary-trans-45: oklch(42% 0.125 8 / 0.45);
  --secondary-trans-70: oklch(42% 0.125 8 / 0.7);
  /* Text */
  --text-primary: oklch(12% 0.008 257.7);
  --text-secondary: oklch(35% 0.012 257.7);
  --text-tertiary: oklch(48% 0.018 257.7);
  --text-muted: oklch(58% 0.02 257.7);
  --text-on-primary: oklch(99.8% 0.001 257.7);
  --text-on-secondary: oklch(99.8% 0.001 8);
  --text-inverse: oklch(88% 0.005 257.7);
  /* Neutral scale */
  --neutral-50: oklch(98% 0.001 257.7);
  --neutral-100: oklch(96.5% 0.002 257.7);
  --neutral-200: oklch(94% 0.003 257.7);
  --neutral-300: oklch(89% 0.005 257.7);
  --neutral-400: oklch(82% 0.008 257.7);
  --neutral-500: oklch(72% 0.012 257.7);
  --neutral-600: oklch(62% 0.015 257.7);
  --neutral-700: oklch(48% 0.018 257.7);
  --neutral-800: oklch(32% 0.02 257.7);
  --neutral-900: oklch(18% 0.025 257.7);
  --neutral-950: oklch(8% 0.015 257.7);
  /* Status */
  --success: oklch(65% 0.145 142.5);
  --success-bg: oklch(95.5% 0.025 142.5);
  --success-light: oklch(85% 0.095 142.5);
  --success-dark: oklch(45% 0.138 142.5);
  --error: oklch(68% 0.195 27.3);
  --error-bg: oklch(96% 0.035 27.3);
  --error-light: oklch(88% 0.125 27.3);
  --error-dark: oklch(48% 0.185 27.3);
  --warning: oklch(78% 0.142 85.9);
  --warning-bg: oklch(96.5% 0.028 85.9);
  --warning-light: oklch(90% 0.088 85.9);
  --warning-dark: oklch(58% 0.135 85.9);
  --info: oklch(72% 0.132 220);
  --info-bg: oklch(96% 0.022 220);
  --info-light: oklch(88% 0.085 220);
  --info-dark: oklch(52% 0.125 220);
  /* Borders */
  --border-subtle: oklch(90% 0.003 257.7);
  --border-light: oklch(86% 0.005 257.7);
  --border-medium: oklch(78% 0.012 257.7);
  --border-strong: oklch(68% 0.018 257.7);
  --border-primary: oklch(45% 0.155 257.7);
  --border-secondary: oklch(42% 0.125 8);
  /* Shadows (OKLCH with alpha) */
  --shadow-xs: oklch(20% 0.01 257.7 / 0.08);
  --shadow-sm: oklch(20% 0.01 257.7 / 0.12);
  --shadow-md: oklch(20% 0.01 257.7 / 0.16);
  --shadow-lg: oklch(20% 0.01 257.7 / 0.22);
  --shadow-xl: oklch(20% 0.01 257.7 / 0.28);
  --shadow-primary: oklch(45% 0.155 257.7 / 0.25);
  --shadow-secondary: oklch(42% 0.125 8 / 0.2);
  /* Focus */
  --focus-ring-primary: oklch(82% 0.085 257.7);
  --focus-ring-primary-outline: oklch(68% 0.135 257.7);
  --focus-shadow-primary: oklch(45% 0.155 257.7 / 0.35);
  --focus-ring-secondary: oklch(80% 0.068 8);
  --focus-ring-secondary-outline: oklch(65% 0.118 8);
  --focus-shadow-secondary: oklch(42% 0.125 8 / 0.4);
  --focus-ring-neutral: oklch(72% 0.012 257.7);
  --focus-shadow-neutral: oklch(20% 0.008 257.7 / 0.18);
  /* Role tokens (aliases) */
  --role-action-primary: var(--primary);
  --role-action-primary-hover: var(--primary-hover);
  --role-action-primary-focus: var(--primary-focus);
  --role-action-secondary: var(--secondary);
  --role-action-secondary-hover: var(--secondary-hover);
  --role-surface-default: var(--bg-surface);
  --role-surface-alt: var(--bg-surface-hover);
  --role-surface-muted: var(--bg-muted);
  --role-surface-brand: var(--primary-bg);
  --role-text-default: var(--text-primary);
  --role-text-secondary: var(--text-secondary);
  --role-text-tertiary: var(--text-tertiary);
  --role-text-inverse: var(--text-on-primary);
  --role-border-default: var(--border-light);
  --role-border-strong: var(--border-strong);
  --role-border-focus: var(--focus-ring-primary-outline);
  --role-focus-ring: var(--focus-ring-primary);
  --role-focus-shadow: var(--focus-shadow-primary);
  --role-success: var(--success);
  --role-success-bg: var(--success-bg);
  --role-warning: var(--warning);
  --role-warning-bg: var(--warning-bg);
  --role-error: var(--error);
  --role-error-bg: var(--error-bg);
  --role-info: var(--info);
  --role-info-bg: var(--info-bg);
  --role-elevation-1: var(--shadow-xs);
  --role-elevation-2: var(--shadow-sm);
  --role-elevation-3: var(--shadow-md);
  --role-elevation-4: var(--shadow-lg);
  --role-badge-bg: var(--primary-ultra-soft);
  --role-chip-bg: var(--neutral-100);
  --role-pill-outline: var(--border-light);
  --role-link: var(--primary);
  --role-link-hover: var(--primary-hover);
}

/* 1.3 RADIUS SYSTEM */
:root {
  --radius-none: 0;
  --radius-xxs: 0.125rem; /* sm */
  --radius-xs: 0.25rem; /* ~ between sm & md */
  --radius-s: 0.375rem; /* md */
  --radius-m: 0.5rem; /* lg */
  --radius-l: 0.75rem; /* xl */
  --radius-xl: 1rem; /* 2xl */
  --radius-xxl: 1.5rem; /* 3xl */
  --radius: 0.375rem; /* default = md */
  --radius-50: 50%;
  --radius-circle: 50%;
  --radius-pill: 9999px;
}

/* 1.4 SPACING TOKENS */
:root {
  --space-xxs: clamp(0.5rem, 0.2vw + 0.4375rem, 0.75rem);
  --space-xs: clamp(0.625rem, 0.25vw + 0.5625rem, 0.9375rem);
  --space-s: clamp(0.875rem, 0.3vw + 0.75rem, 1.25rem);
  --space-m: clamp(1.25rem, 0.8vw + 1rem, 1.875rem);
  --space-l: clamp(2rem, 1.5vw + 1.5rem, 3.125rem);
  --space-xl: clamp(3.25rem, 2.5vw + 2.5rem, 4.75rem);
  --space-xxl: clamp(5.25rem, 4vw + 3.75rem, 7.125rem);
}

/* 1.5 SECTION SPACING */
:root {
  --section-padding-x: clamp(1rem, 4vw - 0.125rem, 5rem);
  --section-space-xxs: clamp(0.625rem, 1.1vw + 0.375rem, 1.375rem);
  --section-space-xs: clamp(1rem, 2vw + 0.625rem, 2.625rem);
  --section-space-s: clamp(1.5rem, 3vw + 0.75rem, 4.125rem);
  --section-space-m: clamp(2rem, 5vw + 1rem, 6.25rem);
  --section-space-l: clamp(3rem, 8vw + 1.25rem, 9.375rem);
  --section-space-xl: clamp(4rem, 13vw + 1.5rem, 14.3125rem);
  --section-space-xxl: clamp(5.25rem, 21vw + 1.875rem, 21.5rem);
}

/* 1.6 TYPOGRAPHY SCALE */
:root {
  /* Headings */
  --h1: clamp(2.75rem, 2rem + 2.5vw, 3.75rem);
  --h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --h3: clamp(1.5rem, 1.15rem + 1.2vw, 2.25rem);
  --h4: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --h5: clamp(1.125rem, 0.95rem + 0.6vw, 1.5rem);
  --h6: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  /* Body */
  --text-xxs: clamp(0.75rem, 0.72rem + 0.1vw, 0.75rem);
  --text-xs: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --text-s: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-m-smaller: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-m: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  --text-l: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-xxl: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  /* Line-heights */
  --lh-heading-display: 1.1;
  --lh-heading-large: 1.2;
  --lh-heading-standard: 1.2;
  --lh-text-tight: 1.4;
  --lh-text-standard: 1.6;
  --lh-text-loose: 1.75;
  /* Letter-spacing */
  --ls-h-1: -0.018em;
  --ls-h-2: -0.014em;
  --ls-h-3: -0.01em;
  --ls-h-4: -0.006em;
  --ls-h-5: -0.003em;
  --ls-h-6: 0;
  --ls-text-xl: -0.003em;
  --ls-text-l: -0.002em;
  --ls-text-m: 0;
  --ls-text-s: 0.005em;
  --ls-text-xs: 0.01em;
  /* Measure */
  --text-max-width: 66ch;
  --text-max-width-narrow: 52ch;
  --text-max-width-wide: 100%;
}

@media (max-width: 640px) {
  :root {
    --lh-text-standard: 1.68;
    --lh-text-loose: 1.8;
    --lh-heading-large: 1.24;
    --lh-heading-standard: 1.3;
  }
}
@media (min-width: 1200px) {
  :root {
    --lh-text-standard: 1.56;
    --lh-text-loose: 1.66;
    --lh-heading-display: 1.08;
    --lh-heading-large: 1.18;
  }
}
/* 1.7 BUTTON TOKENS (OKLCH) */
:root {
  --btn-border-radius: 0.5rem;
  --btn-font-size: 0.9375rem;
  --btn-inner-glow: oklch(100% 0 0 / 0.15); /* #FFFFFF26 ≈ 0.15 alpha */
  --btn-min-height: 2.5rem;
  --btn-min-width: 7.5rem;
  --btn-padding: 0.625rem 1.75rem;
  --btn-padding-block: 0.625rem;
  --btn-padding-inline: 1.75rem;
  /* Shadows converted from hex to OKLCH with alpha on near-black */
  --btn-shadow: 0 2px 8px oklch(0% 0 0 / 0.07);
  --btn-shadow-active: 0 1px 3px oklch(0% 0 0 / 0.10);
  --btn-shadow-hover: 0 4px 16px oklch(0% 0 0 / 0.12);
  --btn-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --btn-glow-primary: 0 0 12px 3px var(--primary-trans-25);
  --btn-glow-secondary: 0 0 12px 3px var(--secondary-trans-25);
}

/* 1.8 AVATAR TOKENS */
:root {
  --avatar-size-xs: clamp(40px, 3.8vw, 52px);
  --avatar-size-sm: clamp(52px, 4.9vw, 68px);
  --avatar-size-md: clamp(64px, 6.3vw, 88px);
  --avatar-size-lg: clamp(80px, 7.9vw, 112px);
  --avatar-size-xl: clamp(96px, 9.8vw, 128px);
  --avatar-size: var(--avatar-size-sm);
}

@supports (width: 1cqw) {
  :root {
    --avatar-size-xs: clamp(40px, 3.8cqw, 52px);
    --avatar-size-sm: clamp(52px, 4.9cqw, 68px);
    --avatar-size-md: clamp(64px, 6.3cqw, 88px);
    --avatar-size-lg: clamp(80px, 7.9cqw, 112px);
    --avatar-size-xl: clamp(96px, 9.8cqw, 128px);
  }
}
/* 1.9 ANIMATION TOKENS */
:root {
  --anim-ui-response: 250ms;
  --anim-content-reveal: 400ms;
  --anim-overlay-enter: 500ms;
  --anim-page-transition: 700ms;
  --ease-standard: ease-in-out;
  --ease-soft-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-gentle-enter: cubic-bezier(0, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --anim-ui-response: 0ms;
    --anim-content-reveal: 0ms;
    --anim-overlay-enter: 0ms;
    --anim-page-transition: 0ms;
  }
}
/* 2) LAYOUT & GRID TOKENS */
:root {
  /* Gutters & container widths */
  --gutter: clamp(1.25rem, calc(5.0632911392vw + 0.1107594937rem), 3.75rem);
  --content-width-safe: min(var(--content-width), calc(100% - var(--gutter) * 2));
  --container-gap: var(--space-xl);
  --content-gap: var(--space-m);
  --pill-max-width: 22ch;
  /* Width presets */
  --width-full: 100%;
  --width-content: var(--content-width);
  --width-vp-max: var(--content-width);
  --width-xxl: calc(var(--content-width) * 0.9);
  --width-xl: calc(var(--content-width) * 0.8);
  --width-l: calc(var(--content-width) * 0.6);
  --width-m: calc(var(--content-width) * 0.4);
  --width-s: calc(var(--content-width) * 0.2);
  --width-xs: calc(var(--content-width) * 0.1);
  /* Gap presets */
  --grid-gap-m: var(--space-m);
  --grid-gap-s: var(--space-s);
  --grid-gap-xs: var(--space-xs);
  --grid-gap-min: 1rem;
  --grid-gap-max: 2rem;
  --grid-gap: clamp(var(--grid-gap-min), 1.5vw, var(--grid-gap-max));
  /* Column constraints */
  --grid-col-min: 15rem; /* min sensible card width */
  --grid-col-max: 1fr; /* cap each track growth */
}

/* 2.1 Fixed column utilities (simple repeats) */
:root {
  --grid-1: repeat(1, minmax(0, 1fr));
  --grid-2: repeat(2, minmax(0, 1fr));
  --grid-3: repeat(3, minmax(0, 1fr));
  --grid-4: repeat(4, minmax(0, 1fr));
  --grid-5: repeat(5, minmax(0, 1fr));
  --grid-6: repeat(6, minmax(0, 1fr));
  --grid-7: repeat(7, minmax(0, 1fr));
  --grid-8: repeat(8, minmax(0, 1fr));
  --grid-9: repeat(9, minmax(0, 1fr));
  --grid-10: repeat(10, minmax(0, 1fr));
  --grid-11: repeat(11, minmax(0, 1fr));
  --grid-12: repeat(12, minmax(0, 1fr));
  /* Simple 2-col combos */
  --grid-1-2: minmax(0, 1fr) minmax(0, 2fr);
  --grid-1-3: minmax(0, 1fr) minmax(0, 3fr);
  --grid-2-1: minmax(0, 2fr) minmax(0, 1fr);
  --grid-2-3: minmax(0, 2fr) minmax(0, 3fr);
  --grid-3-1: minmax(0, 3fr) minmax(0, 1fr);
  --grid-3-2: minmax(0, 3fr) minmax(0, 2fr);
}

/* 2.2 Recommended auto-grid (container-based, parametric) */
:root {
  --cols: 3; /* desired columns; override per block if needed */
  --grid-auto: repeat(
    auto-fit,
    minmax(
      max(var(--grid-col-min), calc((100% - (var(--cols) - 1) * var(--grid-gap)) / var(--cols))),
      var(--grid-col-max)
    )
  );
  /* Presets to use like: style="--cols: var(--cols-4)" */
  --cols-2: 2;
  --cols-3: 3;
  --cols-4: 4;
  --cols-5: 5;
  --cols-6: 6;
}

/* 2.3 Back-compat explicit auto grids (cleaner math) */
:root {
  --grid-auto-2: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (1 * var(--grid-gap))) / 2)), var(--grid-col-max)));
  --grid-auto-3: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (2 * var(--grid-gap))) / 3)), var(--grid-col-max)));
  --grid-auto-4: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (3 * var(--grid-gap))) / 4)), var(--grid-col-max)));
  --grid-auto-5: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (4 * var(--grid-gap))) / 5)), var(--grid-col-max)));
  --grid-auto-6: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (5 * var(--grid-gap))) / 6)), var(--grid-col-max)));
  --grid-auto-7: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (6 * var(--grid-gap))) / 7)), var(--grid-col-max)));
  --grid-auto-8: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (7 * var(--grid-gap))) / 8)), var(--grid-col-max)));
  --grid-auto-9: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (8 * var(--grid-gap))) / 9)), var(--grid-col-max)));
  --grid-auto-10: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (9 * var(--grid-gap))) / 10)), var(--grid-col-max)));
  --grid-auto-11: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (10 * var(--grid-gap))) / 11)), var(--grid-col-max)));
  --grid-auto-12: repeat(auto-fit, minmax(max(var(--grid-col-min), calc((100% - (11 * var(--grid-gap))) / 12)), var(--grid-col-max)));
}

/* ICON TOKENS (Erewhon) */
/* Sizes */
:root {
  --icon-size-xs: 0.875rem; /* 14px */
  --icon-size-sm: 1rem; /* 16px */
  --icon-size-md: 1.25rem; /* 20px (default) */
  --icon-size-lg: 1.5rem; /* 24px */
  --icon-size-xl: 2rem; /* 32px */
  --icon-size: var(--icon-size-md);
}

/* Padding scale (boxed) */
:root {
  --icon-pad-xs: 0.25rem; /* 4px */
  --icon-pad-sm: 0.375rem; /* 6px */
  --icon-pad-md: 0.5rem; /* 8px */
  --icon-pad-lg: 0.625rem; /* 10px */
  --icon-pad-xl: 0.75rem; /* 12px */
  --icon-pad: var(--icon-pad-md);
}

/* Visuals */
:root {
  --icon-radius: var(--radius-s);
  --icon-border-w: 1px;
  --icon-fg: var(--text-primary);
  --icon-bg: var(--bg-surface);
  --icon-border: var(--border-light);
}

/* Theme colors */
:root {
  --icon-fg-light: var(--text-primary);
  --icon-bg-light: var(--bg-surface);
  --icon-fg-dark: var(--text-on-primary);
  --icon-bg-dark: var(--primary-dark);
  --icon-fg-primary: var(--primary);
  --icon-bg-primary: var(--primary-bg);
  --icon-border-primary: var(--primary-light);
  --icon-fg-secondary: var(--secondary);
  --icon-bg-secondary: var(--secondary-bg);
  --icon-border-secondary: var(--secondary-light);
  --icon-fg-success: var(--success);
  --icon-bg-success: var(--success-bg);
  --icon-border-success: var(--success-light);
}

/* Default style */
:root {
  --icon-default-style: boxed; /* boxed | naked */
}

/*
Theme Name: Erewhon - Reset & Base
Description: Foundational resets and base styles (optimized, GP-neutral)
*/
/* ============================================
   RESET & BASE STYLES
   ============================================ */
/* 1) Universal box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2) HTML base setup */
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  color-scheme: light dark;
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll {
    scroll-behavior: auto;
  }
}
/* 3) HTML & Body foundation */
html,
body {
  min-height: 100vh;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
  font-kerning: normal;
  font-optical-sizing: auto;
  hanging-punctuation: first allow-end;
  text-rendering: auto;
}

body {
  background: var(--bg-body);
  background-image: linear-gradient(135deg, var(--primary-brightest) 0%, var(--bg-body) 25%, var(--bg-surface) 50%, oklch(98% 0.005 257.7deg) 75%, var(--secondary-ultra-light) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  z-index: 0;
  font-family: var(--body-font);
  font-size: var(--text-m);
  line-height: var(--lh-text-standard);
  color: var(--text-secondary);
}

/* ============================================
   TYPE & BLOCK DEFAULTS
   ============================================ */
h1, h2, h3, h4, h5, h6,
p, dl, figure, blockquote, pre {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--headline-font);
  color: var(--text-primary);
  line-height: var(--lh-heading-standard);
}

h1 {
  font-size: var(--h1);
  letter-spacing: var(--ls-h-1);
  margin-bottom: var(--space-s);
}

h2 {
  font-size: var(--h2);
  letter-spacing: var(--ls-h-2);
  margin-bottom: var(--space-s);
}

h3 {
  font-size: var(--h3);
  letter-spacing: var(--ls-h-3);
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: var(--h4);
  letter-spacing: var(--ls-h-4);
  margin-bottom: var(--space-xs);
}

h5 {
  font-size: var(--h5);
  letter-spacing: var(--ls-h-5);
  margin-bottom: var(--space-xxs);
}

h6 {
  font-size: var(--h6);
  letter-spacing: var(--ls-h-6);
  margin-bottom: var(--space-xxs);
}

/* ============================================
   LISTS – STRICT GP NEUTRALIZATION
   ============================================ */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
}

ul {
  display: block;
  padding-left: 0;
}

:where(ul, ol) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   FOCUS STYLES (A11Y)
   ============================================ */
:where(a, button, [role=button], input, textarea, select, summary, [tabindex], [contenteditable=true]) {
  outline: none;
}

:where(a, button, [role=button], input, textarea, select, summary, [tabindex], [contenteditable=true]):focus-visible {
  outline: var(--focus-width, 2px) solid var(--focus-ring-primary-outline);
  outline-offset: 2px;
  border-radius: var(--radius-s);
  box-shadow: 0 0 0 2px var(--focus-ring-primary);
}

/* ============================================
   SITE STRUCTURE
   ============================================ */
.site-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 1rem oklch(0% 0 0deg / 0.08); /* rgba(0,0,0,0.08) */
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

#main {
  min-height: 100vh;
}

.site-content, #content {
  padding: 0;
}

#main, .site-content {
  position: relative;
  z-index: 1;
}

/* Glass header */
.site-header__inner {
  background: linear-gradient(135deg, oklch(100% 0 0deg / 0.1), oklch(100% 0 0deg / 0));
  position: relative;
  z-index: 2;
  border-radius: var(--radius-l, 0.75rem);
  border-bottom: 1px solid oklch(100% 0 0deg / 0.18);
  box-shadow: 0 8px 32px 0 oklch(0% 0 0deg / 0.22);
  will-change: backdrop-filter;
  color: inherit;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header__inner {
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.site-header__inner .menu a,
.site-header__inner .site-title,
.site-header__inner .site-branding {
  color: oklch(99% 0 0deg); /* #fff */
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}
/* ============================================
   MEDIA DEFAULTS
   ============================================ */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

img, picture {
  content-visibility: auto;
}

/* ============================================
   LINKS (base)
   ============================================ */
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  text-decoration-thickness: from-font;
  text-decoration-color: currentColor;
  text-underline-offset: 0.12em;
}

.prose a:not([class*=button]):not(.gb-button):not(.wp-block-button__link) {
  color: var(--role-link);
}

@media (hover: hover) and (pointer: fine) {
  .prose a:not([class*=button]):hover {
    color: var(--role-link-hover);
  }
}
/* =========================================
   WS FORM — Erewhon Overrides
   ========================================= */
.wsf-form .wsf-field-input,
.wsf-form select,
.wsf-form textarea {
  min-height: 2.875rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-light);
  background: oklch(100% 0 0deg); /* #fff */
  color: var(--role-text-default);
  box-shadow: 0 1px 0 var(--shadow-xs) inset;
  font-family: var(--body-font);
  font-size: var(--text-m);
  line-height: var(--lh-text-standard);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wsf-form textarea {
  min-height: 7.5rem;
}

.wsf-form .wsf-field-input:focus,
.wsf-form select:focus,
.wsf-form textarea:focus {
  outline: 0;
  border-color: var(--role-border-focus) !important;
  box-shadow: 0 0 0 0.2rem var(--focus-shadow-primary) !important;
  background: oklch(100% 0 0deg);
}

.wsf-form .wsf-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.wsf-form .wsf-required {
  color: var(--error);
  margin-left: 0.25rem;
}

.wsf-form .wsf-choice {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.wsf-form input[type=checkbox],
.wsf-form input[type=radio] {
  accent-color: var(--primary);
}

.wsf-form .wsf-error .wsf-field-input {
  border-color: var(--error) !important;
}

.wsf-form .wsf-error .wsf-error-message {
  color: var(--error-dark);
}

.wsf-form button.wsf-button,
.wsf-form .wsf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-block) var(--btn-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--btn-border-radius);
  font-family: var(--body-font);
  font-size: var(--btn-font-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.025em;
  background: var(--primary);
  color: var(--text-on-primary);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--btn-transition), border-color var(--btn-transition), box-shadow var(--btn-transition), transform var(--btn-transition);
}

@media (hover: hover) and (pointer: fine) {
  .wsf-form button.wsf-button:hover,
  .wsf-form .wsf-button:hover {
    background: var(--role-action-primary-hover);
    box-shadow: var(--btn-glow-primary);
    transform: translateY(-1px);
  }
}
.wsf-form button.wsf-button:disabled,
.wsf-form .wsf-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wsf-form .wsf-button-primary {
  background: var(--role-action-primary) !important;
  color: var(--text-on-primary) !important;
  border-color: var(--role-action-primary) !important;
}

.wsf-form .wsf-button-primary:hover {
  background: var(--role-action-primary-hover) !important;
  border-color: var(--role-action-primary-hover) !important;
}

.wsf-form .wsf-button-secondary,
.wsf-form .wsf-button-next,
.wsf-form .wsf-button-previous {
  background: var(--role-action-secondary) !important;
  color: var(--text-on-secondary) !important;
  border-color: var(--role-action-secondary) !important;
}

.wsf-form .wsf-button-secondary:hover,
.wsf-form .wsf-button-next:hover,
.wsf-form .wsf-button-previous:hover {
  background: var(--role-action-secondary-hover) !important;
  border-color: var(--role-action-secondary-hover) !important;
}

.wsf-form .wsf-button-full {
  width: 100%;
}

@media (min-width: 640px) {
  .wsf-form .wsf-button-full {
    width: auto;
  }
}
/* Dark mode tweaks */
[data-theme=dark] .wsf-form .wsf-field-input,
[data-theme=dark] .wsf-form select,
[data-theme=dark] .wsf-form textarea {
  background: var(--neutral-800);
  color: var(--text-inverse);
  border-color: var(--border-medium);
}

/* Optional: map WS Form CSS variables to Erewhon tokens */
.wsf-form {
  --wsf-field-button-color-background: var(--role-action-primary);
  --wsf-field-button-color: var(--text-on-primary);
  --wsf-field-button-border-radius: var(--btn-border-radius);
  --wsf-field-button-padding: var(--btn-padding);
  --wsf-field-input-border-color: var(--border-light);
  --wsf-field-input-background-color: oklch(100% 0 0);
  --wsf-field-input-color: var(--role-text-default);
}

/* =========================================================
   Erewhon Guard Rails
   ========================================================= */
:root {
  --rails-multiplier: 2.5;
}

body {
  isolation: isolate;
}

body:not(.page-template-template-surecart-dashboard, .single-blog)::before {
  content: "";
  width: calc(var(--content-width) + var(--gutter));
  height: 100vh;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 50%;
  translate: -50% 0%;
  border-inline: 1px solid var(--border-light);
  z-index: -1;
  pointer-events: none;
}

body:not(.page-template-template-surecart-dashboard, .single-blog)::after {
  content: "";
  width: calc(var(--content-width) + var(--gutter) * var(--rails-multiplier));
  height: 100vh;
  position: fixed;
  inset-block: 0;
  inset-inline-start: 50%;
  translate: -50% 0%;
  border-inline: 1px solid var(--border-light);
  z-index: -1;
  pointer-events: none;
}

/* Theme Name: Erewhon - Typography (revised)
   Description: Typography system without default spacing, with safe fallbacks and utilities */
/* ============================================ */
/* HEADINGS */
/* ============================================ */
/* HEADINGS: balance, sane measure, no hyphens */
:where(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
  font-family: var(--headline-font);
  color: var(--text-primary);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: balance; /* unsupported browsers ignore */
  hyphens: none;
  overflow-wrap: break-word;
  margin: 0;
}

:where(p, .text-m, .text-l, .text-xl) {
  text-wrap: pretty;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Wider measure for display headings */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  max-width: 100%;
}

/* Standard measure for the rest */
h5, .h5, h6, .h6 {
  max-width: var(--text-max-width);
}

h1, .h1 {
  font-size: var(--h1);
  line-height: var(--lh-heading-display);
  letter-spacing: var(--ls-h-1);
  font-weight: 700;
}

h2, .h2 {
  font-size: var(--h2);
  line-height: var(--lh-heading-large);
  letter-spacing: var(--ls-h-2);
  font-weight: 700;
}

h3, .h3 {
  font-size: var(--h3);
  line-height: var(--lh-heading-standard);
  letter-spacing: var(--ls-h-3);
  font-weight: 700;
}

h4, .h4 {
  font-size: var(--h4);
  line-height: var(--lh-heading-standard);
  letter-spacing: var(--ls-h-4);
  font-weight: 600;
}

h5, .h5 {
  font-size: var(--h5);
  line-height: var(--lh-heading-standard);
  letter-spacing: var(--ls-h-5);
  font-weight: 600;
}

h6, .h6 {
  font-size: var(--h6);
  line-height: var(--lh-heading-standard);
  letter-spacing: var(--ls-h-6);
  font-weight: 600;
}

/* ============================================ */
/* BODY TEXT */
/* ============================================ */
:where(p, .text-xs, .text-s, .text-m-smaller, .text-m, .text-l, .text-xl, .body-text) {
  font-family: var(--body-font);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: var(--text-max-width);
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: auto;
  orphans: 3;
  widows: 3;
  margin: 0;
}

p {
  font-size: var(--text-m);
  line-height: var(--lh-text-standard);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--lh-text-tight);
  letter-spacing: var(--ls-text-xs);
  hyphens: none;
}

.text-s {
  font-size: var(--text-s);
  line-height: var(--lh-text-tight);
  letter-spacing: var(--ls-text-s);
  hyphens: none;
}

.text-m-smaller {
  font-size: var(--text-m-smaller);
  line-height: var(--lh-text-standard);
  letter-spacing: var(--ls-text-m);
}

.text-m {
  font-size: var(--text-m);
  line-height: var(--lh-text-standard);
  letter-spacing: var(--ls-text-m);
}

.text-l {
  font-size: var(--text-l);
  line-height: var(--lh-text-loose);
  letter-spacing: var(--ls-text-l);
}

.text-xl {
  font-size: var(--text-xl);
  line-height: var(--lh-text-loose);
  letter-spacing: var(--ls-text-xl);
  font-weight: 500;
}

/* Optional lead paragraph */
.lead {
  font-size: var(--text-xl);
  line-height: var(--lh-text-loose);
  color: var(--text-primary);
}

/* ============================================ */
/* TYPOGRAPHY UTILITIES */
/* ============================================ */
.leading-tight {
  line-height: var(--lh-text-tight) !important;
}

.leading-standard {
  line-height: var(--lh-text-standard) !important;
}

.leading-loose {
  line-height: var(--lh-text-loose) !important;
}

.tracking-tight {
  letter-spacing: var(--ls-text-s) !important;
}

.tracking-normal {
  letter-spacing: var(--ls-text-m) !important;
}

.tracking-wide {
  letter-spacing: 0.05em !important;
}

.text-width-narrow {
  max-width: var(--text-max-width-narrow);
}

.text-width-standard {
  max-width: var(--text-max-width);
}

.text-width-wide {
  max-width: var(--text-max-width-wide);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.text-no-wrap {
  white-space: nowrap;
}

.text-emphasis {
  font-weight: 500;
  color: var(--text-primary);
}

.text-muted {
  color: var(--text-tertiary);
  font-size: 0.9em;
}

.text-small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}
