/* =============================================
   Ayotunde Ejiko Portfolio — CSS
   Cornell-themed, athletic, professional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Crimson+Pro:wght@400;600;700&display=swap');

:root {
  /* Cornell palette + modern accents */
  --cornell-red: #B31B1B;
  --accent: var(--cornell-red);
  --cornell-dark: #222222;
  --cornell-gray: #6B6B6B;
  --accent-gold: #F7B538;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --border: #E5E5E5;
  --text: #1A1A1A;
  --text-muted: #666666;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(179, 27, 27, 0.12);
  
  /* Typography */
  --font-display: 'Crimson Pro', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  /* Spacing */
  --gap: 16px;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
   
   /* =============================================
      RESET & BASE
      ============================================= */
   
   *, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
   }
   
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* offset anchor jumps for sticky nav (desktop) */
}

/* Also offset the actual target element so it never hides under the nav */
section[id] {
  scroll-margin-top: 110px;
}
   
   body {
     font-family: var(--font-body);
     font-size: 16px;
     line-height: 1.7;
     color: var(--text);
     background: var(--bg);
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }
   
   /* =============================================
      SKIP LINK (Accessibility)
      ============================================= */
   
   .skip {
     position: absolute;
     top: -40px;
     left: 0;
     background: var(--cornell-red);
     color: white;
     padding: 8px 16px;
     text-decoration: none;
     z-index: 100;
     border-radius: 0 0 4px 0;
   }
   
   .skip:focus {
     top: 0;
   }
   
   /* =============================================
      NAVIGATION
      ============================================= */
   
   .nav {
     position: sticky;
     top: 0;
     z-index: 50;
     background: rgba(250, 250, 250, 0.98);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid var(--border);
     padding: 16px 0;
     animation: slideDown 0.5s ease-out;
   }

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .nav {
    background: rgba(250, 250, 250, 0.95);
  }
}
   
   @keyframes slideDown {
     from {
       opacity: 0;
       transform: translateY(-20px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   .nav-inner {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 24px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
   }
   
   .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     font-weight: 700;
     font-size: 16px;
     color: var(--cornell-dark);
     letter-spacing: -0.02em;
   }

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

.logo a:hover {
  color: var(--cornell-red);
}
   
   .logo .dot {
     width: 10px;
     height: 10px;
     background: var(--cornell-red);
     border-radius: 50%;
     animation: pulse 2s ease-in-out infinite;
   }
   
   @keyframes pulse {
     0%, 100% { transform: scale(1); opacity: 1; }
     50% { transform: scale(1.2); opacity: 0.8; }
   }
   
   .links {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
   }
   
   .pill {
     padding: 8px 16px;
     border-radius: 20px;
     text-decoration: none;
     color: var(--text-muted);
     font-size: 13px;
     transition: all var(--transition);
     border: 1px solid transparent;
     font-family: var(--font-mono);
     display: inline-flex;
     align-items: center;
     min-height: 44px; /* better tap target on mobile */
   }
   
   .pill:hover {
     color: var(--cornell-red);
     background: rgba(179, 27, 27, 0.05);
     border-color: var(--cornell-red);
   }

  .pill:focus-visible {
    color: var(--cornell-red);
    background: rgba(179, 27, 27, 0.08);
    border-color: rgba(179, 27, 27, 0.35);
  }

.pill.active {
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.08);
  border-color: rgba(179, 27, 27, 0.35);
}

/* Unified focus ring */
:where(a, button, .btn, .pill, input, textarea, select):focus-visible {
  outline: 3px solid rgba(179, 27, 27, 0.35);
  outline-offset: 3px;
}
   
   /* =============================================
      LAYOUT
      ============================================= */
   
   .wrap {
     max-width: 1200px;
     margin: 0 auto;
     padding: 32px 24px 80px;
   }
   
   .grid {
     display: grid;
     gap: var(--gap);
     animation: fadeInUp 0.6s ease-out;
   }
   
   @keyframes fadeInUp {
     from {
       opacity: 0;
       transform: translateY(30px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   .grid-2 {
     grid-template-columns: 1fr;
   }
   
   @media (min-width: 768px) {
     .grid-2 {
       grid-template-columns: repeat(2, 1fr);
     }
     
     .grid-hero {
       grid-template-columns: 1.5fr 1fr;
     }
   }
   
   /* =============================================
      CARD
      ============================================= */
   
   .card {
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 32px;
     box-shadow: 0 2px 8px var(--shadow);
     transition: all var(--transition);
     position: relative;
     overflow: hidden;
   }
   
   .card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--cornell-red), var(--accent-gold));
     transform: scaleX(0);
     transform-origin: left;
     transition: transform var(--transition);
   }
   
   .card:hover::before {
     transform: scaleX(1);
   }
   
   .card:hover {
     box-shadow: 0 8px 24px var(--shadow-hover);
     transform: translateY(-2px);
   }
   
   /* =============================================
      HERO
      ============================================= */
   
   .hero-top {
     display: flex;
     align-items: center;
     gap: 16px;
     margin-bottom: 16px;
     flex-wrap: wrap;
   }
   
   .avatar {
     width: 56px;
     height: 56px;
     border-radius: 16px;
     background: rgba(179, 27, 27, 0.08);
     border: 1px solid rgba(179, 27, 27, 0.22);
     display: grid;
     place-items: center;
     overflow: hidden;
     box-shadow: 0 4px 12px rgba(179, 27, 27, 0.18);
     animation: rotateIn 0.6s ease-out;
   }
   
   .headshot {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
   }
   
   @keyframes rotateIn {
     from {
       opacity: 0;
       transform: rotate(-180deg) scale(0.5);
     }
     to {
       opacity: 1;
       transform: rotate(0) scale(1);
     }
   }
   
   .name {
     font-size: 20px;
     font-weight: 700;
     font-family: var(--font-display);
     color: var(--cornell-dark);
   }
   
   .role {
     font-size: 12px;
     color: var(--text-muted);
   }

   /* =============================================
      TYPOGRAPHY
      ============================================= */
   
   .kicker {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 0.1em;
     color: var(--cornell-red);
     font-weight: 700;
     margin-bottom: 8px;
     font-family: var(--font-mono);
   }
   
   h1, h2, h3 {
     font-family: var(--font-display);
     line-height: 1.2;
     font-weight: 700;
   }
   
   .headline {
     font-size: 36px;
     margin: 8px 0 16px;
     color: var(--cornell-dark);
     letter-spacing: -0.02em;
   }
   
   h2 {
     font-size: 28px;
     margin: 8px 0 16px;
     color: var(--cornell-dark);
   }
   
   h3 {
     font-size: 16px;
     margin: 0 0 4px;
     color: var(--text);
   }
   
   .sub {
     font-size: 14px;
     line-height: 1.7;
     color: var(--text-muted);
     margin-bottom: 20px;
     max-width: 62ch;
   }
   
   .muted {
     color: var(--text-muted);
   }
   
   .small {
     font-size: 12px;
   }
   
   b {
     color: var(--cornell-dark);
     font-weight: 700;
   }
   
   /* =============================================
      BADGES & TAGS
      ============================================= */
   
   .badges {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin: 20px 0;
   }
   
   .badge {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 8px 16px;
     background: rgba(179, 27, 27, 0.08);
     border: 1px solid rgba(179, 27, 27, 0.2);
     border-radius: 20px;
     font-size: 13px;
     color: var(--cornell-red);
     font-weight: 600;
     transition: all var(--transition);
   }
   
   .badge:hover {
     background: rgba(179, 27, 27, 0.12);
     transform: translateY(-2px);
   }
   
   .mini {
     width: 6px;
     height: 6px;
     background: var(--cornell-red);
     border-radius: 50%;
     animation: pulse 2s ease-in-out infinite;
   }
   
   .tagrow {
     display: flex;
     flex-wrap: wrap;
     gap: 10px;
     margin-top: 12px;
   }

   .tag {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 4px 12px;
     background: var(--bg);
     border: 1px solid var(--border);
     border-radius: 12px;
     font-size: 11px;
     color: var(--text-muted);
     transition: all var(--transition);
     font-family: var(--font-mono);
     white-space: nowrap;
   }
   
   .tag:hover {
     border-color: var(--cornell-red);
     color: var(--cornell-red);
     background: rgba(179, 27, 27, 0.05);
   }
/* Fallback: prevent mashed skill tags when markup uses generic class names */
.skills,
.skill-tags,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills li,
.skill-tags li,
.skill-list li {
  margin: 0;
}
/* =============================================
   PROJECT FILTERS
   ============================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--cornell-red);
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.05);
}

.filter-btn.active {
  border-color: var(--cornell-red);
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.05);
}

   /* =============================================
      BUTTONS & CTAs
      ============================================= */
   
   .cta-row {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     margin-top: 24px;
   }
   
   .btn {
     display: inline-block;
     padding: 12px 24px;
     border-radius: 8px;
     text-decoration: none;
     font-size: 13px;
     font-weight: 600;
     transition: all var(--transition);
     border: 2px solid var(--border);
     background: white;
     color: var(--text);
     cursor: pointer;
     font-family: var(--font-mono);
   }
   
   .btn:hover {
     border-color: var(--cornell-red);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px var(--shadow-hover);
   }


.btn:active {
  transform: translateY(0);
}

/* Disabled / Coming-soon buttons */
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.02);
}

.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.12);
}
   
   .btn.primary {
     background: var(--cornell-red);
     color: white;
     border-color: var(--cornell-red);
   }
   
   .btn.primary:hover, .btn.primary:focus {
     background: #9A1616;
     border-color: #9A1616;
   }
   
   /* =============================================
      STATS & SPLITS
      ============================================= */
   
   .split {
     display: grid;
     gap: 20px;
     margin: 20px 0;
   }
   
   @media (min-width: 640px) {
     .split {
       grid-template-columns: repeat(2, 1fr);
     }
   }
   
   .stat b {
     display: block;
     margin-top: 4px;
     font-size: 16px;
   }
   
   .hr {
     height: 1px;
     background: var(--border);
     margin: 24px 0;
   }
   
   /* =============================================
      LISTS & ITEMS
      ============================================= */
   
   .list {
     display: flex;
     flex-direction: column;
     gap: 20px;
   }
   
   .item {
     padding: 16px 0;
     border-bottom: 1px solid var(--border);
     transition: transform var(--transition);
     will-change: transform;
   }
   
   .item:last-child {
     border-bottom: none;
   }
   
   .item:hover {
     transform: translateX(6px);
   }
   
   .row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 16px;
     margin-bottom: 8px;
   }
   
   @media (max-width: 640px) {
     .row {
       flex-direction: column;
       gap: 4px;
     }
   }

   /* =============================================
      EXPERIENCE + SELECTED WORK (Upgrades)
      ============================================= */

   .experience-card {
     border-left: 4px solid var(--accent);
     padding-left: 16px;
   }

   /* Don’t shift these cards horizontally on hover (keeps the left accent aligned) */
   .experience-card:hover,
   .work-card:hover {
     transform: none;
   }

   .impact {
     margin-top: 10px;
     font-size: 14px;
     line-height: 1.7;
     color: var(--text);
     max-width: 78ch;
   }

   .meta-line {
     margin-top: 12px;
   }

   .label {
     font-size: 11px;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     opacity: 0.75;
     margin-bottom: 8px;
     font-family: var(--font-mono);
   }

   .bullets {
     margin: 0;
     padding-left: 18px;
   }

   .bullets li {
     margin: 6px 0;
   }

   @media (max-width: 720px) {
     .experience-card {
       padding-left: 14px;
     }
   }
   
   /* =============================================
      FOOTER
      ============================================= */
   
   footer {
     text-align: center;
     padding-top: 40px;
     margin-top: 40px;
     border-top: 1px solid var(--border);
     color: var(--text-muted);
   }

   footer a {
     color: var(--cornell-red);
     text-decoration: none;
     border-bottom: 1px solid rgba(179, 27, 27, 0.35);
     padding-bottom: 1px;
   }

   footer a:hover {
     border-bottom-color: var(--cornell-red);
   }

/* =============================================
   ASK MY PORTFOLIO (Floating Drawer)
   ============================================= */

/* Visually hidden (screen-reader only) */
.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;
}

.ask-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Full-page overlay (click outside to close) */
.ask-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

/* If the browser doesn't support backdrop-filter, keep the overlay usable */
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .ask-overlay {
    backdrop-filter: none;
  }
}

.ask-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 27, 27, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.ask-fab:focus-visible {
  outline: 3px solid rgba(179, 27, 27, 0.35);
  outline-offset: 3px;
}

.ask-drawer {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 1000;
  width: min(420px, calc(100vw - 36px));
  height: min(520px, calc(100vh - 120px));
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.ask-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ask-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(179, 27, 27, 0.06), rgba(247, 181, 56, 0.10));
}

.ask-title {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  color: var(--cornell-dark);
}

.ask-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ask-close {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 10px;
  padding: 6px 8px;
  transition: opacity var(--transition), border-color var(--transition), background var(--transition);
}

.ask-close:hover {
  opacity: 1;
  border-color: rgba(179, 27, 27, 0.22);
  background: rgba(179, 27, 27, 0.06);
}

.ask-close:focus-visible {
  outline: 3px solid rgba(179, 27, 27, 0.35);
  outline-offset: 3px;
}

.ask-body {
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(179, 27, 27, 0.05), transparent 60%);
}

.ask-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: pre-wrap; /* keep \n line breaks from the backend */
  word-break: break-word; /* prevent long URLs from overflowing */
}

.ask-msg p {
  margin: 0;
}

.ask-msg--bot {
  align-self: flex-start;
  border-left: 3px solid var(--accent-gold);
}

.ask-msg--user {
  align-self: flex-end;
  background: rgba(179, 27, 27, 0.08);
  border-color: rgba(179, 27, 27, 0.22);
  border-left: 3px solid var(--cornell-red);
}

.ask-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

.ask-input {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
}

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

.ask-input:focus {
  border-color: rgba(179, 27, 27, 0.35);
  box-shadow: 0 0 0 4px rgba(179, 27, 27, 0.10);
}

.ask-send {
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid var(--cornell-red);
  background: var(--cornell-red);
  color: white;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.ask-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ask-send:disabled:hover {
  background: var(--cornell-red);
  border-color: var(--cornell-red);
  transform: none;
  box-shadow: none;
}

.ask-send:hover {
  background: #9A1616;
  border-color: #9A1616;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(179, 27, 27, 0.20);
}

.ask-send:focus-visible {
  outline: 3px solid rgba(179, 27, 27, 0.35);
  outline-offset: 3px;
}

/* Mobile: keep it comfy */
@media (max-width: 480px) {
  .ask-drawer {
    right: 12px;
    bottom: 68px;
    width: calc(100vw - 24px);
  }

  .ask-fab {
    right: 12px;
    bottom: 12px;
  }
}

/* Dark mode harmony: reuse your existing variables but ensure input background is not pure white */
@media (prefers-color-scheme: dark) {
  .ask-fab {
    background: rgba(21, 21, 23, 0.92);
    border-color: var(--border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  }

  .ask-drawer {
    background: rgba(21, 21, 23, 0.96);
    border-color: var(--border);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  }

  .ask-overlay {
    background: rgba(0, 0, 0, 0.55);
  }

  .ask-title {
    color: var(--text);
  }

  .ask-msg {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
  }

  .ask-input {
    background: rgba(0, 0, 0, 0.20);
    border-color: var(--border);
    color: var(--text);
  }
}
   /* =============================================
      RESPONSIVE
      ============================================= */
   
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 130px; /* large phones / small tablets */
  }

  section[id] {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 150px; /* mobile nav is taller (logo + scrollable pills) */
  }

  section[id] {
    scroll-margin-top: 150px;
  }
     .headline {
       font-size: 28px;
     }
     
     h2 {
       font-size: 24px;
     }
     
     .card {
       padding: 24px;
     }
     
     .wrap {
       padding: 24px 16px 60px;
     }
     
     .nav-inner {
       flex-direction: column;
       align-items: flex-start;
     }

     .links {
       display: flex;
       width: 100%;
       gap: 8px;
       flex-wrap: nowrap;
       overflow-x: auto;
       -webkit-overflow-scrolling: touch;
       padding-bottom: 8px;
       scroll-snap-type: x mandatory;
     }

     .pill {
       white-space: nowrap;
       scroll-snap-align: start;
     }
     .item:hover {
       transform: none;
     }

     /* Disable card lift on touch devices */
     .card:hover {
       transform: none;
       box-shadow: 0 2px 8px var(--shadow);
     }
   }
   
   /* =============================================
      PRINT STYLES
      ============================================= */
   
   @media print {
     .nav, .cta-row, footer {
       display: none;
     }
     
     .card {
       page-break-inside: avoid;
       box-shadow: none;
       border: 1px solid #ddd;
     }
   }
   
/* =============================================
   REDUCED MOTION (Accessibility)
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   DARK MODE (prefers-color-scheme)
   ============================================= */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --card-bg: #151517;
    --border: #262626;
    --text: #f2f2f2;
    --text-muted: #a0a0a0;
    --cornell-dark: #f2f2f2;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(179, 27, 27, 0.35);
  }

  body {
    background: var(--bg);
    color: var(--text);
  }

  .nav {
    background: rgba(15, 15, 16, 0.9);
    border-bottom-color: var(--border);
  }

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

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

  .pill:hover,
  .pill.active,
  .pill:focus-visible {
    color: var(--cornell-red);
    background: rgba(179, 27, 27, 0.18);
    border-color: rgba(179, 27, 27, 0.45);
  }

  .btn {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
  }

  /* Disabled / coming-soon buttons should still be readable in dark mode */
  .btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
  }

  .btn[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
  }

  .btn.primary {
    background: var(--cornell-red);
    border-color: var(--cornell-red);
    color: white;
  }

  .btn.primary:hover,
  .btn.primary:focus-visible {
    background: #9a1616;
    border-color: #9a1616;
  }

  .tag {
    background: #101010;
    border-color: var(--border);
    color: var(--text-muted);
  }

  .tag:hover {
    background: rgba(179, 27, 27, 0.2);
    border-color: var(--cornell-red);
    color: var(--cornell-red);
  }

  footer {
    border-top-color: var(--border);
    color: var(--text-muted);
  }

  footer a {
    color: var(--accent-gold);
    border-bottom-color: rgba(247, 181, 56, 0.4);
  }
}

/* End dark mode */

/* =============================================
   SPACING UTILITIES (Used in HTML)
   ============================================= */

.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.m-0 { margin: 0; }