@font-face {
  font-family: "Helvetica Custom";
  src: url("../fonts/HELVETICA-BOLD.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Custom";
  src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Helvetica Custom", "Helvetica", "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: "IBM Plex Mono Custom", "IBM Plex Mono", "SFMono-Regular", Menlo,
    Monaco, Consolas, "Liberation Mono", monospace;
  --bg: #1e1e1e;
  --panel: #eedfc4;
  --text: #eedfc4;
  --text-muted: #c8bfae;
  --border: #2a2a2a;
  --nav-bg: #1e1e1e;
  --nav-text: #eedfc4;
  --nav-active-bg: #eedfc4;
  --nav-active-text: #1e1e1e;
  --accent: #eedfc4;
  --logo-filter: brightness(0) saturate(100%) invert(92%) sepia(21%)
    saturate(294%) hue-rotate(2deg) brightness(95%) contrast(92%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-weight: 700;
}

body.theme-vt {
  --font-sans: "IBM Plex Mono Custom", "IBM Plex Mono", "SFMono-Regular", Menlo,
    Monaco, Consolas, "Liberation Mono", monospace, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bg: #0b0e16;
  --panel: #0b0e16;
  --text: #e8e8e8;
  --text-muted: #9aa0a6;
  --border: #1b2230;
  --nav-bg: #0b0e16;
  --nav-text: #d7dbe2;
  --nav-active-bg: #1a2230;
  --nav-active-text: #ffffff;
  --accent: #49e06f;
}

.theme-lt {
  --split-angle: 12deg;
  --mark-offset-x: -1px;
  --mark-offset-y: 0px;
}

.theme-lt.is-light {
  --bg: #eedfc4;
  --panel: #1e1e1e;
  --text: #1e1e1e;
  --text-muted: #5f5f5f;
  --border: #cfc4ad;
  --nav-bg: #eedfc4;
  --nav-text: #1b1b1b;
  --nav-active-bg: #1e1e1e;
  --nav-active-text: #eedfc4;
  --accent: #1e1e1e;
  --logo-filter: none;
}

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.is-home .shell {
  height: 100vh;
  height: 100dvh;
}

.is-home .hero-inner {
  padding: 0;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
}

.hero-inner.vt-stack {
  justify-content: center;
  align-items: center;
  gap: 4vw;
  padding: 8vh 8vw 10vh;
}

.lt-hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: 0;
}

.content-block {
  max-width: 720px;
}

.content-block p {
  margin: 0 0 12px 0;
  color: var(--text-muted);
  font-weight: 700;
}

.content-block a {
  color: var(--text);
  text-decoration: none;
}

.content-block a:hover,
.content-block a:focus {
  text-decoration: underline;
}

body[data-active="support"] #page-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}


.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.project-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mirror-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .mirror-columns {
    grid-template-columns: 1fr;
  }
}

.mirror-links h2,
.mirror-info h2 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}

.mirror-links a {
  display: block;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.mirror-links a:hover,
.mirror-links a:focus {
  text-decoration: underline;
}

.mirror-group {
  margin-bottom: 16px;
}

.mirror-group-title {
  display: block;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mirror-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: -2px 0 8px 0;
  font-family: var(--font-mono);
}

.mirror-info p {
  margin: 0 0 12px 0;
  color: var(--text-muted);
}

.section-block {
  margin-top: 18px;
}

.section-block:first-child {
  margin-top: 0;
}

.bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.bottom-nav a {
  flex: 1 1 0;
  min-width: 0;
  height: 78px;
  text-align: center;
  text-decoration: none;
  color: var(--nav-text);
  padding: 12px 6px;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.bottom-nav a:hover,
.bottom-nav a:focus {
  border-color: var(--border);
}

.bottom-nav a.is-active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}

.theme-vt .bottom-nav {
  border-top-color: #0f141f;
}

.theme-vt .bottom-nav a {
  color: #f2f2f2;
}

.theme-vt .bottom-nav a:nth-child(1) {
  background: #6f42c1;
}

.theme-vt .bottom-nav a:nth-child(2) {
  background: #2e7d32;
}

.theme-vt .bottom-nav a:nth-child(3) {
  background: #1a2230;
  color: #49e06f;
}

.theme-vt .bottom-nav a:nth-child(4) {
  background: #c2185b;
}

.theme-vt .bottom-nav a:nth-child(5) {
  background: #3f51b5;
}

.theme-vt .bottom-nav a:nth-child(6) {
  background: #ef6c00;
}


.vt-title {
  color: var(--accent);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.vt-icon {
  width: min(260px, 36vw);
  height: auto;
}

.vt-info {
  max-width: 520px;
  color: var(--text-muted);
}

.vt-info p {
  margin: 0 0 8px 0;
}

.vt-builds {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  justify-items: start;
}

.vt-build-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 700;
  display: inline-block;
  justify-self: start;
}

.vt-build-link:hover,
.vt-build-link:focus {
  border-color: var(--accent);
}

.vt-build-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.vt-build-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.vt-build-error {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vt-version {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}

@media (max-width: 820px) {
  .hero-inner {
    padding: 4vh 6vw;
  }

  .theme-lt {
    --mark-offset-x: 0px;
    --mark-offset-y: 0px;
  }

  .bottom-nav a {
    flex: 1 1 33.333%;
    height: 60px;
    font-size: 1.05rem;
  }

  .vt-icon {
    width: min(220px, 40vw);
  }

  .vt-info {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .lt-hero-svg {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-inner {
    padding: 3vh 5vw;
  }

  .theme-lt {
    --mark-offset-x: -2px;
    --mark-offset-y: 0px;
  }

  .page-title {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 12px;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bottom-nav a {
    height: 48px;
    font-size: 0.9rem;
    padding: 8px 4px;
  }

  .hero-inner.vt-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 3vw;
    padding: 3vh 5vw 6vh;
  }

  .vt-icon {
    width: min(140px, 34vw);
  }

  .vt-title {
    font-size: clamp(20px, 5vw, 30px);
  }

  .vt-build-link {
    font-size: 0.9rem;
  }

  .vt-build-meta,
  .vt-build-updated,
  .vt-build-error {
    font-size: 0.8rem;
  }

  .content-block {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .content-block p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .mirror-links a {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .project-list li {
    padding: 10px 0;
  }

  .project-list span {
    font-size: 0.88rem;
  }
}
