:root {
  color-scheme: dark;
  --background: #171019;
  --sidebar: #100b13;
  --surface: #211725;
  --border: #3a2b3c;
  --text: #f7eff8;
  --muted: #c6b5cb;
  --accent: #ee91ce;
  --accent-soft: rgba(238, 145, 206, 0.13);
  --heading: #fff4fb;
  --shadow: rgba(0, 0, 0, 0.45);
  --status-label: #f4d35e;
  --status-issues: #f3addd;
}

.theme-adventures {
  --background: #141217;
  --sidebar: #0d0c08;
  --surface: #1c1a12;
  --border: #3a3420;
  --text: #f5f1e4;
  --muted: #c9c1a7;
  --accent: #f4d35e;
  --accent-soft: rgba(244, 211, 94, 0.12);
  --heading: #fff8df;
  color-scheme: dark;
}
.theme-pride-nights {
  color-scheme: dark;
  --background: #101115;
  --sidebar: #0b0c0f;
  --surface: #191a20;
  --border: #2e3038;
  --text: #f2f1f5;
  --muted: #a5a4ae;
  --accent: #efb1b8;
  --accent-soft: rgba(239, 177, 184, 0.13);
  --heading: #f5f4f7;
  --status-issues: #bb9cff;
}

.theme-gitquest {
  color-scheme: dark;
  --background: #101115;
  --sidebar: #0b0c0f;
  --surface: #191a20;
  --border: #2e3038;
  --text: #f2f1f5;
  --muted: #a5a4ae;
  --accent: #b7f34d;
  --accent-soft: rgba(183, 243, 77, 0.13);
  --heading: #f5f4f7;
  --status-issues: #bb9cff;
}

.theme-hannahcodes {
  --background: #1a111b;
  --sidebar: #130d16;
  --surface: #251927;
  --border: #422e45;
  --muted: #ceb9d0;
  --accent: #e99acc;
  --accent-soft: rgba(233, 154, 204, 0.13);
  --status-label: #e99acc;
  --heading: #fff5fb;
}

body.landing-page {
  --background: #03070b;
  --sidebar: #06101a;
  --surface: #111f2e;
  --border: #243747;
  --text: #ffffff;
  --muted: #e6e1e1;
  --accent: #d9fbff;
  --accent-soft: rgba(0, 225, 255, 0.12);
  --heading: #e6f8fa;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 248px;
  padding: 1.5rem 1rem 2rem;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.mobile-menu-toggle {
  display: none;
}

.sidebar-brand {
  display: block;
  padding: 0.25rem 0.6rem 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sidebar-brand span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.sidebar-label {
  margin: 0.7rem 0 0.55rem;
  padding: 0 0.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sidebar-project-links {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.sidebar-project-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.6rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.sidebar-project-links a:hover,
.sidebar-project-links a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.sidebar-project-links span {
  color: var(--accent);
  font-size: 0.65rem;
}

.sidebar-group {
  margin: 0.25rem 0 1rem;
}

.sidebar-group > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
}

.sidebar-group > summary::-webkit-details-marker {
  display: none;
}

.sidebar-group > summary::before {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.sidebar-group[open] > summary::before {
  transform: rotate(45deg);
}

.sidebar-group > summary:hover,
.sidebar-version-list a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.sidebar-version-list {
  margin: 0.25rem 0 0.25rem 0.55rem;
  padding: 0 0 0 0.65rem;
  list-style: none;
  border-left: 1px solid var(--border);
}

.sidebar-version-list li {
  margin: 0.05rem 0;
}

.sidebar-version-list a {
  display: block;
  padding: 0.24rem 0.45rem;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.sidebar-empty {
  margin: 0 0.6rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-style: italic;
}

.main-content {
  min-height: 100vh;
  margin-left: 248px;
}

.page-shell {
  width: min(900px, calc(100% - 5rem));
  margin: 0 auto;
  padding: 1.5rem 0 5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  margin-bottom: 2.5rem;
}

.brand {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand span {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.home-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.arrow_svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transform: rotate(180deg);
}

.hero {
  padding: 3.2rem 0 1.5rem;
  text-align: center;
}

.landing-shell {
  width: min(1000px, calc(100% - 5rem));
}

.landing-hero {
  padding: 5rem 0 3rem;
}

.project-directory {
  width: min(100%, 850px);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.3rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card.project-card--hannahcodes {
  --project-accent: #e99acc;
  --project-accent-soft: rgba(244, 211, 94, 0.12);
}

.project-card.project-card--gitquest {
  --project-accent: #b7f34d;
  --project-accent-soft: rgba(183, 243, 77, 0.12);
}

.project-card.project-card--adventures {
  --project-accent: #f4d35e;
  --project-accent-soft: rgba(233, 154, 204, 0.13);
}

.project-card.project-card--pride-nights {
  --project-accent: #efb1b8;
  --project-accent-soft: rgba(238, 145, 206, 0.13);
}

.project-card {
  --project-accent: var(--accent);
  --project-accent-soft: var(--accent-soft);
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-top: 2px solid var(--project-accent);
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--project-accent);
  background:
    linear-gradient(var(--project-accent-soft), var(--project-accent-soft)),
    var(--surface);
  box-shadow: 0 0 0 1px var(--project-accent-soft);
  transform: translateY(-2px);
}

.project-card-label {
  margin: 0;
  color: var(--project-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0.55rem 0 0.35rem;
  color: var(--text);
  font-size: 1.12rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

body.landing-page .project-card h3 {
  color: #f5f1e4;
}

body.landing-page .project-card p {
  color: #c9c1a7;
}

.project-card-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--project-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.project-page-shell {
  width: min(760px, calc(100% - 5rem));
}

.project-hero {
  padding-top: 5rem;
}

.project-empty-state {
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.project-empty-state h2 {
  margin: 0.5rem 0;
  color: var(--text);
  font-size: 1.35rem;
}

.project-empty-state > p:not(.project-card-label) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #f5f6f7;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.07em;
}

body.landing-page .hero h1 {
  color: var(--text);
}

.subtitle {
  max-width: 560px;
  margin: 1rem auto 0;
  color: #b7bec6;
  font-size: 1rem;
}

body.landing-page .subtitle {
  color: var(--muted);
}

.last-updated {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.changelog {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.changelog > hr[id] {
  height: 0;
  margin: 1.25rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 1.25rem;
}

.version {
  overflow-wrap: anywhere;
  margin: 0;
  padding: 1.15rem 0 1.6rem;
  border-bottom: 1px solid var(--border);
}

.version h2 {
  margin: 0 0 0.45rem;
  color: var(--heading);
  font-size: 1.65rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.version h3 {
  margin: 0.35rem 0;
}

.h3_header {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.version_date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.version ul {
  padding-left: 1.2rem;
}

.version ul li {
  padding: 0.14rem 0;
}

.version ul ul {
  margin: 0.1rem 0 0.55rem;
}

.a_link,
.a_link_dev {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--accent);
  font-size: 0.83rem;
}

.a_link:hover,
.a_link_dev:hover {
  color: var(--accent);
  text-decoration: underline;
}

.theme-hannahcodes .sidebar-version-list a,
.theme-hannahcodes .sidebar-version-list a:hover,
.theme-hannahcodes .version_date,
.theme-hannahcodes .a_link,
.theme-hannahcodes .a_link_dev,
.theme-hannahcodes .a_link:hover,
.theme-hannahcodes .a_link_dev:hover {
  color: var(--status-label);
}

img {
  max-height: 20px;
  margin-bottom: -3px;
}

.git_svg,
.pull_git_svg,
.monitor_svg,
.code_git_svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.added,
.fixed,
.removed,
.amended,
.please_note,
.renamed {
  color: var(--status-label);
}

.issues {
  color: var(--status-issues);
}

.hr_divider {
  height: 0;
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 1rem;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-brand {
    padding: 0;
  }

  .sidebar-brand span {
    display: none;
  }

  .sidebar-menu {
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    font-size: 0.78rem;
    list-style: none;
  }

  .mobile-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-toggle::after {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }

  .sidebar-menu[open] .mobile-menu-toggle::after {
    transform: rotate(225deg);
  }

  .sidebar-menu[open] .sidebar-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.75rem;
    width: min(340px, calc(100vw - 2rem));
    max-height: min(65vh, 480px);
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--sidebar);
    box-shadow: 0 14px 36px var(--shadow);
  }

  .sidebar-label {
    grid-column: 1 / -1;
  }

  .sidebar-group {
    margin-bottom: 0.5rem;
  }

  .sidebar-version-list {
    max-height: 120px;
    overflow-y: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .page-shell,
  .landing-shell,
  .project-page-shell {
    width: min(100% - 2rem, 760px);
    padding-top: 1rem;
  }

  .topbar {
    margin-bottom: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .landing-hero,
  .project-hero {
    padding-top: 3rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .sidebar-menu[open] .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-version-list {
    max-height: 96px;
  }

  .brand {
    font-size: 0.72rem;
  }

  .brand span {
    display: none;
  }

  .home-button {
    font-size: 0.7rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }
}
