@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
  --bg-base: #121212;
  --bg-surface: #1e1e1e;
  --bg-surface-elevated: #282828;
  --bg-surface-hover: #333333;

  --border-color: #383838;
  --border-light: #505050;
  --border-active: #6E88F7;

  --text-primary: #f0f0f0;
  --text-periwinkle: #6E88F7;
  --text-green: #2fb36d;

  --text-heading: #6E88F7;
  --text-secondary: #cccccc;
  --text-muted: #8e8e8e;
  --text-link: #6E88F7;
  --text-link-hover: #9bb0ff;

  --text-goals: #6E88F7;

  --badge-bg: #262626;
  --badge-text: #e0e0e0;
  --badge-border: #444444;

  /* tab colors */
  --tab-mint: #86efac;
  --tab-mint-text: #052e16;

  --tab-blue-purple: #8787FF;
  --tab-blue-purple-text: #0f172a;

  --tab-coral: #FF8080;
  --tab-coral-text: #1a0505;

  --tab-vst: #6E88F7;
  --tab-vst-text: #051230;

  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Calibri", "Segoe UI", Candara, Optima, Arial, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --container-max: 1040px;
  --container-narrow: 800px;
}

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

p, li, span, label, input, button {
  font-family: var(--font-sans);
}

a {
  color: var(--text-link);
  text-decoration: underline;
}

a:hover {
  color: var(--text-link-hover);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.site-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-base);
  padding: var(--space-md) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* brand header glitch effect */
.site-brand__title {
  --primary: #474747;
  --shadow-primary: #2FB36D;
  --color: #6E88F7;
  --border: 3px;
  --shimmy-distance: 4;
  --clip: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --clip-one: polygon(0 2%, 100% 2%, 100% 45%, 0 45%);
  --clip-two: polygon(0 50%, 100% 50%, 100% 90%, 0 90%);
  --clip-three: polygon(0 20%, 100% 20%, 100% 60%, 0 60%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 0 0);
  --clip-five: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
  --clip-six: polygon(0 30%, 100% 30%, 100% 75%, 0 75%);
  --clip-seven: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);

  display: inline-block;
  position: relative;
  isolation: isolate;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color);
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  height: 44px;
  line-height: 44px;
  padding: 0 var(--space-lg);
  align-self: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  white-space: nowrap;
}

.site-brand__title::after,
.site-brand__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.site-brand__title::before {
  background: var(--shadow-primary);
  transform: translate(var(--border), var(--border));
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-brand__title::after {
  background: var(--primary);
  transition: background 0.2s ease;
}

.site-brand:hover .site-brand__title,
.site-brand__title:hover {
  --primary: #474747;
  --shadow-primary: #6E88F7;
  --color: #2fb36d;
}

.site-brand:hover .site-brand__title::before,
.site-brand__title:hover::before {
  transform: translate(calc(var(--border) * -1), var(--border));
}

.site-brand__title-glitch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #474747;
  color: #2fb36d;
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--primary);
  clip-path: var(--clip);
  animation: glitch-title 1.5s infinite;
  display: none;
  line-height: 44px;
  height: 44px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 var(--space-lg);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.site-brand:hover .site-brand__title-glitch,
.site-brand__title:hover .site-brand__title-glitch {
  display: block;
}

.site-brand__title-glitch::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  clip-path: var(--clip);
  background: #474747;
  z-index: -1;
}

@keyframes glitch-title {
  0% {
    clip-path: var(--clip-one);
  }

  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }

  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }

  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }

  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }

  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

.site-brand__subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid transparent;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
  background-color: var(--bg-surface);
}

.nav-link--active {
  color: var(--text-heading);
  border-color: var(--border-light);
  background-color: var(--bg-surface);
  font-weight: bold;
}

.btn {
  display: inline-block;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn--primary {
  background-color: #238636;
  border-color: #2ea043;
  color: #ffffff;
  font-weight: bold;
}

.btn--primary:hover {
  background-color: #2ea043;
  color: #ffffff;
}

.btn--secondary {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-light);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
}

.page-hero__title {
  font-size: 2rem;
  color: var(--text-green);
  margin-bottom: var(--space-xs);
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.section-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-xs);
}

.link-hub {
  margin-bottom: var(--space-2xl);
}

.link-hub .section-label {
  color: var(--text-green);
}

.link-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 650px) {
  .link-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hub-card--centered {
    grid-column: 1 / -1;
    max-width: 500px;
    width: 100%;
    justify-self: center;
  }
}

.hub-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hub-card:hover {
  border-color: var(--border-light);
}

.hub-card h2, .hub-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: var(--text-heading);
}

.hub-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.hub-card a,
.hub-card button {
  align-self: flex-start;
}

/* cyber button styling */
.glitch-btn {
  --primary: #2FB36D;
  --shadow-primary: #6E88F7;
  --color: #ffffff;
  --font-size: 14px;
  --border: 3px;
  --shimmy-distance: 4;
  --clip: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --clip-one: polygon(0 2%, 100% 2%, 100% 45%, 0 45%);
  --clip-two: polygon(0 50%, 100% 50%, 100% 90%, 0 90%);
  --clip-three: polygon(0 20%, 100% 20%, 100% 60%, 0 60%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 0 0);
  --clip-five: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
  --clip-six: polygon(0 30%, 100% 30%, 100% 75%, 0 75%);
  --clip-seven: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);

  display: inline-block;
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  font-size: var(--font-size);
  font-weight: 600;
  color: var(--color);
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  height: 38px;
  line-height: 38px;
  padding: 0 var(--space-lg);
  min-width: auto;
  align-self: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  margin-top: auto;
}

.glitch-btn:after, .glitch-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.glitch-btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), var(--border));
  transition: transform 0.2s ease, background 0.2s ease;
}

.glitch-btn:after {
  background: var(--primary);
  transition: background 0.2s ease;
}

.glitch-btn:hover {
  --primary: #6E88F7;
  --shadow-primary: #2FB36D;
  color: #ffffff;
}

.glitch-btn:hover:before {
  transform: translate(calc(var(--border) * -1), var(--border));
}

.glitch-btn__glitch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shadow-primary);
  color: #ffffff;
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--primary);
  clip-path: var(--clip);
  animation: glitch 1.5s infinite;
  display: none;
  line-height: 38px;
  font-size: var(--font-size);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.glitch-btn:hover .glitch-btn__glitch {
  display: block;
}

.glitch-btn__glitch:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch {
  0% {
    clip-path: var(--clip-one);
  }

  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }

  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }

  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }

  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }

  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

.glitch-header-btn {
  --primary: #6E88F7;
  --shadow-primary: #2FB36D;
  --color: #ffffff;
  --font-size: 14px;
  --border: 3px;
  --shimmy-distance: 4;
  --clip: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --clip-one: polygon(0 2%, 100% 2%, 100% 45%, 0 45%);
  --clip-two: polygon(0 50%, 100% 50%, 100% 90%, 0 90%);
  --clip-three: polygon(0 20%, 100% 20%, 100% 60%, 0 60%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 0 0);
  --clip-five: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
  --clip-six: polygon(0 30%, 100% 30%, 100% 75%, 0 75%);
  --clip-seven: polygon(0 60%, 100% 60%, 100% 85%, 0 85%);

  display: inline-block;
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  font-size: var(--font-size);
  font-weight: 600;
  color: var(--color);
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  height: 38px;
  line-height: 38px;
  padding: 0 var(--space-lg);
  min-width: auto;
  align-self: center;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  margin-top: auto;
}

.glitch-header-btn:after, .glitch-header-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: var(--clip);
  z-index: -1;
}

.glitch-header-btn:before {
  background: var(--shadow-primary);
  transform: translate(var(--border), var(--border));
  transition: transform 0.2s ease, background 0.2s ease;
}

.glitch-header-btn:after {
  background: var(--primary);
  transition: background 0.2s ease;
}

.glitch-header-btn:hover {
  --primary: #2FB36D;
  --shadow-primary: #6E88F7;
  color: #ffffff;
}

.glitch-header-btn:hover:before {
  transform: translate(calc(var(--border) * -1), var(--border));
}

.glitch-header-btn__glitch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shadow-primary);
  color: #ffffff;
  text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--primary);
  clip-path: var(--clip);
  animation: glitch-header-btn 1.5s infinite;
  display: none;
  line-height: 38px;
  font-size: var(--font-size);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.glitch-header-btn:hover .glitch-header-btn__glitch {
  display: block;
}

.glitch-header-btn__glitch:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  clip-path: var(--clip);
  background: var(--primary);
  z-index: -1;
}

@keyframes glitch-header-btn {
  0% {
    clip-path: var(--clip-one);
  }

  2%, 8% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  6% {
    clip-path: var(--clip-two);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  9% {
    clip-path: var(--clip-two);
    transform: translate(0, 0);
  }

  10% {
    clip-path: var(--clip-three);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  13% {
    clip-path: var(--clip-three);
    transform: translate(0, 0);
  }

  14%, 21% {
    clip-path: var(--clip-four);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  25% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  30% {
    clip-path: var(--clip-five);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  35%, 45% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * -1px), 0);
  }

  40% {
    clip-path: var(--clip-six);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  50% {
    clip-path: var(--clip-six);
    transform: translate(0, 0);
  }

  55% {
    clip-path: var(--clip-seven);
    transform: translate(calc(var(--shimmy-distance) * 1px), 0);
  }

  60% {
    clip-path: var(--clip-seven);
    transform: translate(0, 0);
  }

  31%, 61%, 100% {
    clip-path: var(--clip-four);
  }
}

.philosophy-section {
  margin-bottom: var(--space-2xl);
}

.philosophy-section .section-label {
  color: var(--text-periwinkle);
  border-bottom-color: var(--border-color);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.philosophy-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
}

.philosophy-card:hover {
  border-color: var(--border-light);
}

.philosophy-card h3 {
  font-size: 1.2rem;
  color: var(--text-green);
  margin-bottom: 0;
}

.rubric-accordion {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  margin-bottom: var(--space-xl);
}

.rubric-accordion__trigger {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background-color: transparent;
  border: none;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  text-align: left;
}

.rubric-accordion__trigger:hover {
  background-color: var(--bg-surface-elevated);
}

.rubric-accordion__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-heading);
}

.rubric-accordion__icon {
  font-size: 1rem;
  color: var(--text-heading);
}

.rubric-accordion.is-open .rubric-accordion__icon {
  transform: rotate(180deg);
}

.rubric-accordion__content {
  display: none;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-base);
}

.rubric-accordion.is-open .rubric-accordion__content {
  display: block;
}

.rubric-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.rubric-item {
  border-left: 3px solid var(--border-light);
  padding-left: var(--space-md);
}

.rubric-item h3 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.rubric-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.filter-controls {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.search-input {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--border-active);
  outline: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group__label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-pill {
  padding: 4px 10px;
  font-size: 0.85rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-pill.is-active {
  background-color: var(--border-color);
  border-color: var(--text-green);
  color: var(--text-green);
  font-weight: bold;
}

.tabs-container {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  margin-bottom: 0;
}

.tab-btn {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border-color);
  border-bottom: none;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn--mint.is-active {
  background-color: var(--tab-mint);
  color: var(--tab-mint-text);
  border-color: var(--tab-mint);
}

.tab-btn--blue-purple.is-active {
  background-color: var(--tab-blue-purple);
  color: var(--tab-blue-purple-text);
  border-color: var(--tab-blue-purple);
}

.tab-btn--coral.is-active,
.tab-btn--deep-purple.is-active {
  background-color: var(--tab-coral);
  color: var(--tab-coral-text);
  border-color: var(--tab-coral);
}

.tab-btn--vst.is-active,
.tab-btn--gold.is-active {
  background-color: var(--tab-vst);
  color: var(--tab-vst-text);
  border-color: var(--tab-vst);
}

.tab-display-banner {
  padding: var(--space-xs) var(--space-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.tab-display-banner.tab-theme--mint {
  background-color: var(--tab-mint);
  color: var(--tab-mint-text);
}

.tab-display-banner.tab-theme--blue-purple {
  background-color: var(--tab-blue-purple);
  color: var(--tab-blue-purple-text);
}

.tab-display-banner.tab-theme--coral,
.tab-display-banner.tab-theme--deep-purple {
  background-color: var(--tab-coral);
  color: var(--tab-coral-text);
}

.tab-display-banner.tab-theme--vst,
.tab-display-banner.tab-theme--gold {
  background-color: var(--tab-vst);
  color: var(--tab-vst-text);
}

.tab-display-banner__count {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: bold;
}

/* card entries list styling */
.directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-top: none;
  padding: var(--space-md);
}

.resource-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card:hover {
  border-color: var(--border-light);
}

.resource-card__meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-xs);
}

.badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-mono);
}

.resource-card__title {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

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

.resource-card__title a:hover {
  text-decoration: underline;
}

.directory-grid.tab-theme--mint .resource-card__title,
.directory-grid.tab-theme--mint .resource-card__title a {
  color: var(--tab-mint);
}

.directory-grid.tab-theme--blue-purple .resource-card__title,
.directory-grid.tab-theme--blue-purple .resource-card__title a {
  color: var(--tab-blue-purple);
}

.directory-grid.tab-theme--coral .resource-card__title,
.directory-grid.tab-theme--coral .resource-card__title a,
.directory-grid.tab-theme--deep-purple .resource-card__title,
.directory-grid.tab-theme--deep-purple .resource-card__title a {
  color: var(--tab-coral);
}

.directory-grid.tab-theme--vst .resource-card__title,
.directory-grid.tab-theme--vst .resource-card__title a,
.directory-grid.tab-theme--gold .resource-card__title,
.directory-grid.tab-theme--gold .resource-card__title a {
  color: var(--tab-vst);
}

.resource-card__summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.resource-card__mechanisms {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mechanisms-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: bold;
}

.mechanisms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-pill {
  font-size: 0.75rem;
  padding: 1px 6px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
}

.tag-pill:hover,
.tag-pill.is-active {
  border-color: var(--text-green);
  color: var(--text-green);
}

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  border: 1px dashed var(--border-color);
  background-color: var(--bg-surface);
}

.empty-state h3 {
  margin-bottom: var(--space-xs);
  color: var(--text-heading);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.submission-section {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .submission-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 1000;
}

.modal-backdrop.is-visible {
  display: flex;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  max-width: 600px;
  width: 100%;
  padding: var(--space-lg);
}

.modal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.code-block {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  padding: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
  margin: var(--space-sm) 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-active);
  outline: none;
}

.form-status {
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-sm);
  display: none;
  margin-top: var(--space-xs);
}

.form-status.is-success {
  display: block;
  color: var(--text-green);
  border: 1px solid var(--text-green);
  background-color: rgba(47, 179, 109, 0.1);
}

.form-status.is-error {
  display: block;
  color: #ff8080;
  border: 1px solid #ff8080;
  background-color: rgba(255, 128, 128, 0.1);
}

.essay-container {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.about-hero {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: var(--space-lg) !important;
}

.about-hero__text {
  flex: 1 1 auto;
}

.about-hero__pfp {
  flex: 0 0 auto;
}

.about-pfp {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  display: block;
}

.essay-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.essay-body h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.essay-body h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.essay-body p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.essay-body blockquote {
  border-left: 3px solid var(--border-light);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-primary);
  font-style: italic;
}

.essay-body ul, .essay-body ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.essay-body li {
  margin-bottom: var(--space-xs);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-base);
  padding: var(--space-lg) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer__nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text-heading);
  text-decoration: underline;
}
