/* ==========================================================================
   THE AI FELLOWSHIP - Design System
   Session 1: Design System
   ========================================================================== */


/* ==========================================================================
   1. CSS RESET & NORMALIZE
   ========================================================================== */

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

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

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-gutter: stable;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ==========================================================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* --- Background Colors --- */
  --color-white: #FFFFFF;
  --color-silver: #EAE6DE;
  --color-black: #000000;
  --color-earth: #EAE6DE;

  /* --- Primary Colors --- */
  --color-off-red: #E44E73;
  --color-muted-orange: #EF945E;
  --color-dust-purple: #F1E7F7;
  --color-warm-purple: #9E40A5;
  --color-blue-spark: #5ECCEC;

  /* --- Elevator Colors --- */
  --color-primary-orange: #DA5A3A;
  --color-secondary-orange: #E27845;
  --color-lighter-orange: #F29230;
  --color-warm-yellow: #F2AB2D;
  --color-rare-red: #EAE6DE;

  /* --- Semantic Color Aliases --- */
  --color-bg-primary: var(--color-white);
  --color-bg-secondary: var(--color-silver);
  --color-text-primary: var(--color-black);
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #6B6B6B;
  --color-accent: var(--color-off-red);
  --color-focus: #2563EB;

  /* --- Status Colors --- */
  --color-status-active: #16A34A;
  --color-status-active-bg: #DCFCE7;
  --color-status-inactive: #DC2626;
  --color-status-inactive-bg: #FEE2E2;
  --color-status-planning: #CA8A04;
  --color-status-planning-bg: #FEF9C3;
  --color-status-interested: #6B7280;
  --color-status-interested-bg: #F3F4F6;

  /* --- Typography --- */
  --font-primary: "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "Roboto", Arial, sans-serif;

  /* Mobile-first font sizes (base) */
  --font-size-h1: 36px;
  --font-size-h2: 28px;
  --font-size-h3: 20px;
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-tiny: 12px;

  /* Line heights */
  --line-height-heading: 1.2;
  --line-height-body: 1.6;
  --line-height-small: 1.4;

  /* Font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --- Spacing Scale --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

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

  /* --- Gradients --- */
  --gradient-brand: linear-gradient(135deg, var(--color-off-red) 0%, var(--color-muted-orange) 50%, var(--color-dust-purple) 100%);
  --gradient-elevator: linear-gradient(135deg, var(--color-primary-orange) 0%, var(--color-secondary-orange) 33%, var(--color-lighter-orange) 66%, var(--color-warm-yellow) 100%);
  --gradient-warm: linear-gradient(135deg, var(--color-warm-purple) 0%, var(--color-off-red) 100%);
  --gradient-cool: linear-gradient(135deg, var(--color-blue-spark) 0%, var(--color-warm-purple) 100%);
}

/* Desktop overrides for font sizes */
@media (min-width: 768px) {
  :root {
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 24px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-size-tiny: 12px;
  }
}


/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

/* Headings use the secondary (Roboto) font for large display */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  line-height: var(--line-height-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-off-red);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-warm-purple);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

small,
.text-small {
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}

.text-tiny {
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-small);
}

strong {
  font-weight: var(--font-weight-semibold);
}

em {
  font-style: italic;
}

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

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary button — uses brand Off Red */
.btn-primary {
  background-color: var(--color-off-red);
  color: var(--color-white);
  border-color: var(--color-off-red);
}

.btn-primary:hover {
  background-color: #CC3D62;
  border-color: #CC3D62;
  box-shadow: var(--shadow-md);
}

/* Secondary button — outlined with Off Red */
.btn-secondary {
  background-color: transparent;
  color: var(--color-off-red);
  border-color: var(--color-off-red);
}

.btn-secondary:hover {
  background-color: var(--color-off-red);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Ghost button — subtle, text-only feel */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-silver);
  color: var(--color-text-primary);
}

/* Gradient button — brand gradient */
.btn-gradient {
  background: var(--gradient-brand);
  color: var(--color-white);
  border-color: transparent;
}

.btn-gradient:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-lg);
}

/* Warm Purple button */
.btn-purple {
  background-color: var(--color-warm-purple);
  color: var(--color-white);
  border-color: var(--color-warm-purple);
}

.btn-purple:hover {
  background-color: #852D8C;
  border-color: #852D8C;
  box-shadow: var(--shadow-md);
}

/* Disabled state — applies to all button variants */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Button size variants */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-small);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 18px;
  border-radius: var(--radius-lg);
}

/* Full width button */
.btn-block {
  width: 100%;
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */

/* Standard card */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* Clickable card variant */
.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.card-interactive:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Card sections */
.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-silver);
}

.card-title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

.card-body {
  color: var(--color-text-secondary);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-silver);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Silver/earth toned card */
.card-muted {
  background-color: var(--color-silver);
  box-shadow: none;
}

.card-muted:hover {
  box-shadow: var(--shadow-sm);
}

/* Gradient card — Off Red → Muted Orange → Dust Purple */
.card-gradient {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.card-gradient .card-title,
.card-gradient .card-subtitle,
.card-gradient .card-body,
.card-gradient p {
  color: var(--color-white);
}

.card-gradient .card-header,
.card-gradient .card-footer {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Elevator gradient card */
.card-elevator {
  background: var(--gradient-elevator);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.card-elevator .card-title,
.card-elevator .card-subtitle,
.card-elevator .card-body,
.card-elevator p {
  color: var(--color-white);
}

.card-elevator .card-header,
.card-elevator .card-footer {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Bordered card */
.card-bordered {
  box-shadow: none;
  border: 1px solid var(--color-silver);
}

.card-bordered:hover {
  border-color: var(--color-off-red);
  box-shadow: var(--shadow-sm);
}


/* ==========================================================================
   6. FORM INPUTS
   ========================================================================== */

/* Form group wrapper */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group:last-child {
  margin-bottom: 0;
}

/* Labels */
.form-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.form-label-required::after {
  content: " *";
  color: var(--color-off-red);
}

/* Base input styles — text, email, password, number, etc. */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: #9CA3AF;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-off-red);
  box-shadow: 0 0 0 3px rgba(228, 78, 115, 0.15);
}

/* Textarea specific */
.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Select specific — custom arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Error state */
.form-input-error,
.form-textarea-error,
.form-select-error {
  border-color: var(--color-status-inactive);
}

.form-input-error:focus,
.form-textarea-error:focus,
.form-select-error:focus {
  border-color: var(--color-status-inactive);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Error message text */
.form-error-message {
  font-size: var(--font-size-small);
  color: var(--color-status-inactive);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Helper text */
.form-helper-text {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* Disabled inputs */
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background-color: var(--color-silver);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Input with icon */
.form-input-wrapper {
  position: relative;
}

.form-input-icon-left {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.form-input-wrapper .form-input-has-icon-left {
  padding-left: var(--space-10);
}

/* Checkbox and Radio */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-off-red);
  cursor: pointer;
}


/* ==========================================================================
   7. STATUS BADGES
   ========================================================================== */

/* Base badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

/* Dot indicator inside badge */
.badge::before {
  display: none;
}

/* Active — green */
.badge-active {
  background-color: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.badge-active:hover {
  background-color: #D1FAE5;
  border-color: #6EE7B7;
}

/* Inactive — red */
.badge-inactive {
  background-color: #FEE2E2;
  color: #991B1B;
  border-color: #FECACA;
}

.badge-inactive:hover {
  background-color: #FCA5A5;
  border-color: #F87171;
}

/* Planning — yellow */
.badge-planning {
  background-color: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

.badge-planning:hover {
  background-color: #FCD34D;
  border-color: #FCC24B;
}

/* Interested — gray/purple */
.badge-interested {
  background-color: #F3E8FF;
  color: #6D28D9;
  border-color: #E9D5FF;
}

.badge-interested:hover {
  background-color: #EDD5FE;
  border-color: #DDD6FE;
}

/* Brand badge variants */
.badge-brand {
  background: linear-gradient(135deg, #DA291C 0%, #E74C3C 100%);
  color: var(--color-white);
  border-color: #DA291C;
}

.badge-brand::before {
  display: none;
}

.badge-brand:hover {
  background: linear-gradient(135deg, #C91E0F 0%, #D43D2E 100%);
  border-color: #C91E0F;
}

.badge-purple {
  background-color: #F3E8FF;
  color: #6D28D9;
  border-color: #E9D5FF;
}

.badge-purple:hover {
  background-color: #EDD5FE;
  border-color: #DDD6FE;
}

.badge-blue {
  background-color: #EFF6FF;
  color: #0369A1;
  border-color: #BFDBFE;
}

.badge-blue:hover {
  background-color: #DBEAFE;
  border-color: #93C5FD;
}


/* ==========================================================================
   8. LAYOUT UTILITIES
   ========================================================================== */

/* Container — centers content with max-width */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Container variants */
.container-sm {
  max-width: 768px;
}

.container-lg {
  max-width: 1440px;
}

/* Grid system — mobile-first */
.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .grid {
    gap: var(--space-6);
  }
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Section spacing */
.section {
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-20);
  }
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--color-silver);
  border: none;
  margin-block: var(--space-6);
}


/* ==========================================================================
   9. GRADIENTS (Utility Classes)
   ========================================================================== */

/* Text gradients */
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-elevator {
  background: var(--gradient-elevator);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background gradients */
.bg-gradient-brand {
  background: var(--gradient-brand);
}

.bg-gradient-elevator {
  background: var(--gradient-elevator);
}

.bg-gradient-warm {
  background: var(--gradient-warm);
}

.bg-gradient-cool {
  background: var(--gradient-cool);
}

/* Hero section with brand gradient */
.hero-gradient {
  background: var(--gradient-brand);
  color: var(--color-white);
  padding-block: var(--space-16);
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.hero-gradient p {
  color: var(--color-white);
}

/* Gradient border trick using pseudo-element */
.gradient-border {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--gradient-brand);
  z-index: -1;
}


/* ==========================================================================
   10. ACCESSIBILITY HELPERS
   ========================================================================== */

/* Screen reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--color-off-red);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Ensure focus is always visible — global fallback */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
