:root {
  --ink: #2e251b;
  --muted: #6c5d4c;
  --paper: #f7efe1;
  --paper-strong: #fff8ec;
  --sand: #e6d5b8;
  --clay: #b8744d;
  --moss: #637052;
  --night: #243043;
  --line: rgba(77, 58, 36, 0.18);
  --shadow: 0 24px 60px rgba(66, 42, 16, 0.14);
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Aptos",
    "Segoe UI",
    "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(184, 116, 77, 0.22), transparent 32rem),
    linear-gradient(135deg, #fbf4e7 0%, #ecdcc1 55%, #d8c6a9 100%);
}

body.project-mindbuzz {
  --ink: #261808;
  --muted: #6c5438;
  --paper: #fff3dc;
  --paper-strong: #fff9ed;
  --sand: #ffd899;
  --clay: #ff9900;
  --moss: #14100a;
  --night: #1a140b;
  --line: rgba(80, 48, 8, 0.18);
  --shadow: 0 24px 60px rgba(255, 153, 0, 0.18);
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 153, 0, 0.35), transparent 20rem),
    radial-gradient(circle at 88% 18%, rgba(26, 20, 11, 0.16), transparent 18rem),
    linear-gradient(135deg, #fff7e8 0%, #ffe0a6 56%, #ffb032 100%);
}

body.project-vatsim {
  --ink: #12253a;
  --muted: #587088;
  --paper: #e8eff6;
  --paper-strong: #ffffff;
  --sand: #d7e5f3;
  --clay: #d79f1b;
  --moss: #0f6f7a;
  --night: #0c2746;
  --line: rgba(12, 39, 70, 0.14);
  --shadow: 0 24px 60px rgba(12, 39, 70, 0.14);
  background:
    radial-gradient(circle at top left, rgba(84, 194, 255, 0.22), transparent 28rem),
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.2), transparent 24rem),
    linear-gradient(180deg, #f3f8fd 0%, #eaf1f7 46%, #e2eaf3 100%);
}

body.hub-page {
  --ink: #182137;
  --muted: #667085;
  --paper: #eef2f7;
  --paper-strong: #ffffff;
  --sand: #dce5ef;
  --clay: #3366ff;
  --moss: #0f766e;
  --night: #151a2d;
  --line: rgba(36, 48, 67, 0.14);
  --shadow: 0 24px 70px rgba(21, 26, 45, 0.16);
  background:
    radial-gradient(circle at top left, rgba(51, 102, 255, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 26rem),
    linear-gradient(135deg, #f8fbff 0%, #e8edf6 55%, #d6e1ed 100%);
}

a {
  color: inherit;
}

code {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 248, 236, 0.8);
  padding: 0.12rem 0.35rem;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: rgba(99, 112, 82, 0.16);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hub-page .nav {
  padding-block: 0.85rem;
}

.hub-page .hero {
  padding: 1.6rem 0 2rem;
}

.hub-page .hero h1 {
  max-width: 680px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.92;
}

.hub-page .hero p {
  max-width: 660px;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.5;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--night);
  color: #fff8ec;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.project-card {
  min-height: 20rem;
  display: grid;
  align-content: space-between;
  border: 0;
  border-radius: 1.6rem;
  background: var(--project-card-bg);
  padding: clamp(1.2rem, 3vw, 2rem);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px var(--project-card-outline, var(--line)),
    var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card__logo {
  width: 4.7rem;
  max-height: 4.7rem;
  object-fit: contain;
  justify-self: start;
  filter: drop-shadow(0 16px 26px rgba(21, 26, 45, 0.18));
}

.project-card__logo--wide {
  width: min(13rem, 86%);
  max-height: 4.2rem;
}

.project-card__logo--docs {
  width: min(16.25rem, 94%);
  max-height: 5.5rem;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px var(--project-card-outline, var(--line)),
    0 34px 80px rgba(21, 26, 45, 0.2);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--project-card-overlay);
  pointer-events: none;
  z-index: 0;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card h2 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.project-card p {
  max-width: 28rem;
  color: rgba(24, 33, 55, 0.72);
  line-height: 1.6;
}

.project-card--taskbandit {
  --project-card-bg: linear-gradient(135deg, #fff8ec 0%, #e7d3ad 100%);
  --project-card-outline: rgba(77, 58, 36, 0.16);
  --project-card-overlay: radial-gradient(circle at 92% 92%, rgba(99, 112, 82, 0.24) 0 24%, transparent 58%);
}

.project-card--mindbuzz {
  --project-card-bg: linear-gradient(135deg, #fff4df 0%, #ffbe49 100%);
  --project-card-outline: rgba(80, 48, 8, 0.14);
  --project-card-overlay:
    radial-gradient(circle at 92% 86%, rgba(255, 153, 0, 0.34) 0 22%, transparent 54%),
    linear-gradient(150deg, rgba(26, 20, 11, 0.68) 0%, rgba(26, 20, 11, 0.18) 36%, transparent 68%);
  color: #fff9ed;
}

.project-card--mindbuzz p {
  color: rgba(255, 249, 237, 0.82);
}

.project-card--vatsim {
  --project-card-bg: linear-gradient(135deg, #f4f9fe 0%, #d9e8f6 48%, #b9d3ec 100%);
  --project-card-outline: rgba(12, 39, 70, 0.14);
  --project-card-overlay:
    radial-gradient(circle at 70% 20%, rgba(84, 194, 255, 0.3) 0 18%, transparent 52%),
    radial-gradient(circle at 94% 88%, transparent 0 34%, rgba(84, 194, 255, 0.12) 35% 41%, transparent 42% 100%);
}

.card,
.callout,
.doc-panel {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 248, 236, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card {
  min-height: 10.5rem;
  padding: 1.1rem;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 248, 236, 0.9);
}

.card span {
  color: var(--clay);
  font-weight: 900;
}

.card h2,
.callout h2,
.doc-panel h2 {
  margin: 0.65rem 0 0.35rem;
  letter-spacing: -0.04em;
}

.card p,
.callout p,
.doc-panel p,
.doc-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.4rem;
  color: var(--muted);
}

.page-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1.15rem;
  align-items: center;
  padding: 1.35rem 0 1.1rem;
}

.project-logo {
  grid-row: 1 / span 3;
  width: 3.7rem;
  max-height: 3.7rem;
  object-fit: contain;
  margin-bottom: 0;
  filter: drop-shadow(0 16px 26px rgba(21, 26, 45, 0.16));
}

.project-logo--wide {
  width: min(12rem, 30vw);
  max-height: 3.7rem;
}

.project-logo--docs {
  width: min(17rem, 40vw);
  max-height: 5.7rem;
}

.page-hero .eyebrow {
  margin: 0;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 0.35rem 0 0;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 248, 236, 0.58);
  padding: 0.75rem;
}

.sidebar a {
  border-radius: 0.8rem;
  padding: 0.45rem 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a[aria-current="page"] {
  background: var(--paper-strong);
  color: var(--ink);
}

.doc-panel {
  overflow-x: auto;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.doc-panel + .doc-panel {
  margin-top: 0.8rem;
}

.doc-panel h2:first-child {
  margin-top: 0;
}

.doc-panel pre {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.92);
  color: var(--ink);
  padding: 1rem;
}

.doc-panel pre code {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.doc-panel table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
}

.doc-panel th,
.doc-panel td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.doc-panel th {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav,
  .callout,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .project-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hub-page .hero {
    padding: 1rem 0 1.35rem;
  }

  .hub-page .hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hub-page .hero p {
    font-size: 1rem;
    line-height: 1.45;
  }

  .project-grid {
    gap: 0.8rem;
    padding-bottom: 1.5rem;
  }

  .project-card {
    min-height: 14rem;
    border-radius: 1.25rem;
    padding: 1rem;
  }

  .project-card__logo {
    width: 3.7rem;
    max-height: 3.7rem;
  }

  .project-card__logo--wide {
    width: min(10.5rem, 78%);
    max-height: 3.4rem;
  }

  .project-card__logo--docs {
    width: min(15rem, 88%);
    max-height: 5rem;
  }

  .project-card h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .project-card p {
    line-height: 1.45;
    margin: 0.35rem 0 0;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.65rem;
  }

  .sidebar a {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    white-space: normal;
  }

  .sidebar a:first-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .project-logo {
    grid-row: auto;
  }

  .project-logo--wide {
    width: min(13rem, 80%);
  }

  .project-logo--docs {
    width: min(15.5rem, 86%);
    max-height: 5.2rem;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1.25rem, 1120px);
  }

  .hub-page .nav {
    padding-block: 0.7rem;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.5rem 0.7rem;
    font-size: 0.92rem;
  }
}
