/* plr-base.css — Prism Layer brand tokens + reset */

/* ===== CUSTOM PROPERTIES ===== */
:root {
  /* Brand palette */
  --plr-navy:        #0B1D35;
  --plr-navy-alt:    #152C4A;
  --plr-teal:        #00C4AB;
  --plr-teal-aa:     #007A6E;
  --plr-teal-on-dark:#00C4AB;

  /* Foreground tokens */
  --plr-fg-primary:   #0B1D35;
  --plr-fg-secondary: #3D5166;
  --plr-fg-muted:     #64748B;
  --plr-fg-dark-1:    #E8EFF7;
  --plr-fg-dark-2:    #94A8BE;

  /* Background tokens */
  --plr-bg-light:     #F5F8FC;
  --plr-bg-light-alt: #EAF0F7;
  --plr-bg-white:     #FFFFFF;
  --plr-bg-dark:      #0B1D35;
  --plr-bg-dark-alt:  #152C4A;
  --plr-bg-card:      #FFFFFF;

  /* Border */
  --plr-border-light: #D1DCE8;
  --plr-border-dark:  #253D59;

  /* Risk */
  --plr-risk-amber:   #B45309;
  --plr-risk-green:   #047857;

  /* Fonts */
  --plr-font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --plr-font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --plr-space-xs:  0.25rem;
  --plr-space-sm:  0.5rem;
  --plr-space-md:  1rem;
  --plr-space-lg:  1.5rem;
  --plr-space-xl:  2rem;
  --plr-space-2xl: 3rem;
  --plr-space-3xl: 4rem;
  --plr-space-4xl: 6rem;

  /* Border radius */
  --plr-radius-sm: 4px;
  --plr-radius-md: 8px;
  --plr-radius-lg: 12px;

  /* Shadows */
  --plr-shadow-sm:  0 1px 3px rgba(11,29,53,0.1);
  --plr-shadow-md:  0 4px 12px rgba(11,29,53,0.12);
  --plr-shadow-lg:  0 8px 24px rgba(11,29,53,0.16);
}

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

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

body {
  font-family: var(--plr-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--plr-fg-primary);
  background: var(--plr-bg-white);
}

body:not(.plr-page--light-top) {
  background: var(--plr-navy);
  color: var(--plr-fg-dark-1);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  line-height: 1.7;
}

code, .plr-mono {
  font-family: var(--plr-font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== LAYOUT CONTAINERS ===== */
.plr-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.plr-container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== SECTION BG VARIANTS ===== */
.plr-section--light {
  background: var(--plr-bg-light);
}

.plr-section--light-alt {
  background: var(--plr-bg-light-alt);
}

.plr-section--white {
  background: var(--plr-bg-white);
}

.plr-section--dark {
  background: var(--plr-bg-dark);
}

.plr-section--dark-alt {
  background: var(--plr-bg-dark-alt);
}

/* ===== UTILITY ===== */
.plr-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.plr-section--light   .plr-eyebrow,
.plr-section--light-alt .plr-eyebrow,
.plr-section--white   .plr-eyebrow {
  color: var(--plr-teal-aa);
}

.plr-section--dark    .plr-eyebrow,
.plr-section--dark-alt .plr-eyebrow {
  color: var(--plr-teal-on-dark);
}

.plr-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;
}

/* ===== BUTTONS ===== */
.plr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--plr-font-sans);
  border: 2px solid transparent;
  border-radius: var(--plr-radius-md);
  padding: 0.65rem 1.5rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary */
.plr-btn--primary {
  background: var(--plr-teal);
  color: var(--plr-navy);
  border-color: var(--plr-teal);
}
.plr-btn--primary:hover {
  background: #00B09A;
  border-color: #00B09A;
}

/* Primary small */
.plr-btn--primary-sm {
  background: var(--plr-teal);
  color: var(--plr-navy);
  border-color: var(--plr-teal);
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}
.plr-btn--primary-sm:hover {
  background: #00B09A;
  border-color: #00B09A;
}

/* Outline on light */
.plr-btn--outline-on-light {
  background: transparent;
  color: var(--plr-navy);
  border-color: var(--plr-navy);
}
.plr-btn--outline-on-light:hover {
  background: var(--plr-navy);
  color: var(--plr-fg-dark-1);
}

/* Outline on dark */
.plr-btn--outline-on-dark {
  background: transparent;
  color: var(--plr-fg-dark-1);
  border-color: var(--plr-border-dark);
}
.plr-btn--outline-on-dark:hover {
  background: var(--plr-border-dark);
  border-color: var(--plr-fg-dark-2);
}

/* Ghost on dark */
.plr-btn--ghost-on-dark {
  background: transparent;
  color: var(--plr-fg-dark-1);
  border-color: rgba(255,255,255,0.2);
}
.plr-btn--ghost-on-dark:hover {
  background: rgba(255,255,255,0.08);
}

/* Ghost on light */
.plr-btn--ghost-on-light {
  background: transparent;
  color: var(--plr-navy);
  border-color: var(--plr-border-light);
}
.plr-btn--ghost-on-light:hover {
  background: var(--plr-bg-light-alt);
}

.plr-btn--ghost-on-dark-sm {
  background: transparent;
  color: var(--plr-fg-dark-2);
  border: none;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plr-btn--ghost-on-dark-sm:hover {
  color: var(--plr-fg-dark-1);
}

/* ===== LOGO SVG ===== */
.plr-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  display: block;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--plr-teal);
  outline-offset: 2px;
}

/* ===== SKIP LINK ===== */
.plr-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--plr-teal);
  color: var(--plr-navy);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 0 0 var(--plr-radius-sm) var(--plr-radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.plr-skip-link:focus {
  top: 0;
}
