@import url("./theme-forgejo-dark.css");

/* keep Forgejo's dark syntax, diff and status colors */
:root {
  --steel-900: #0d0e10;
  --steel-850: #101114;
  --steel-800: #141517;
  --steel-750: #191b1e;
  --steel-700: #292c32;
  --steel-650: #32363d;
  --steel-600: #40454e;
  --steel-550: #515761;
  --steel-500: #626976;
  --steel-450: #737b88;
  --steel-400: #858d99;
  --steel-350: #979fa9;
  --steel-300: #aab1ba;
  --steel-250: #bdc3cb;
  --steel-200: #cfd4db;
  --steel-150: #e0e4e9;
  --steel-100: #eceef2;

  --color-primary: #9bbcf4;
  --color-primary-contrast: #11151d;
  --color-primary-dark-1: #b4cbf5;
  --color-primary-dark-2: #bed2f7;
  --color-primary-dark-3: #ceddf9;
  --color-primary-dark-4: #d8e4fa;
  --color-primary-dark-5: #e2ebfc;
  --color-primary-dark-6: #ecf2fd;
  --color-primary-dark-7: #f6f9ff;
  --color-primary-light-1: #7ba7ed;
  --color-primary-light-2: #5489d8;
  --color-primary-light-3: #3765a2;
  --color-primary-light-4: #2b5080;
  --color-primary-light-5: #243e61;
  --color-primary-light-6: #1c2e46;
  --color-primary-light-7: #182536;
  --color-primary-alpha-10: #9bbcf41a;
  --color-primary-alpha-20: #9bbcf433;
  --color-primary-alpha-30: #9bbcf44d;
  --color-primary-alpha-40: #9bbcf466;
  --color-primary-alpha-50: #9bbcf480;
  --color-primary-alpha-60: #9bbcf499;
  --color-primary-alpha-70: #9bbcf4b3;
  --color-primary-alpha-80: #9bbcf4cc;
  --color-primary-alpha-90: #9bbcf4e6;
  --color-primary-hover: var(--color-primary-dark-1);
  --color-primary-active: var(--color-primary-light-1);
  --color-secondary-alpha-10: #32363d1a;
  --color-secondary-alpha-20: #32363d33;
  --color-secondary-alpha-30: #32363d4d;
  --color-secondary-alpha-40: #32363d66;
  --color-secondary-alpha-50: #32363d80;
  --color-secondary-alpha-60: #32363d99;
  --color-secondary-alpha-70: #32363db3;
  --color-secondary-alpha-80: #32363dcc;
  --color-secondary-alpha-90: #32363de6;

  --color-text-dark: #f5f6f8;
  --color-text-light: #b6bcc6;
  --color-text-light-1: #aab1bd;
  --color-text-light-2: #9aa2b0;
  --color-text-light-3: #87909f;
  --color-box-header: #1d1f23;
  --color-box-body: #191b1e;
  --color-box-body-highlight: #22252a;
  --color-input-background: #101114;
  --color-input-border: #3a3e46;
  --color-input-border-hover: #626976;
  --color-header-wrapper: #17191c;
  --color-header-wrapper-transparent: #17191c00;
  --color-footer: #111214;
  --color-hover: #25282e;
  --color-active: #2b2f36;
  --color-menu: #1d1f23;
  --color-card: #1b1d21;
  --fancy-card-bg: #1b1d21;
  --fancy-card-border: #32363d;
  --color-button: #292c32;
  --color-code-bg: #15171a;
  --color-secondary-bg: #1d1f23;
  --color-nav-bg: #141517;
  --color-nav-hover-bg: #24272c;
  --color-label-bg: #2d3037;
  --color-label-hover-bg: #3a3e46;
  --color-label-active-bg: #454b55;
  --color-label-bg-alt: #373c45;
  --color-accent: var(--color-primary);
  --color-selection-bg: #9bbcf440;
  --color-selection-fg: #f5f6f8;
  --border-radius: 6px;
  --border-radius-medium: 9px;
  --fonts-proportional: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", "Helvetica Neue", Arial;
}

body {
  -webkit-font-smoothing: antialiased;
}

#navbar {
  padding-inline: 1.25rem;
}

#navbar .navbar-left,
#navbar .navbar-right {
  min-height: 60px;
}

#navbar-logo img {
  width: 32px;
  height: 32px;
}

.ui.header {
  letter-spacing: -0.015em;
}

.page-footer {
  padding: 1.1rem 1.75rem;
  color: var(--color-text-light-2);
}

/* the landing page uses its own small set of styles */
.banister-home {
  width: min(1080px, calc(100% - 4rem));
  margin-inline: auto;
}

.banister-home > .banister-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  margin-top: 0;
  padding-block: clamp(5rem, 12vh, 9rem) 6rem;
}

.banister-home .banister-eyebrow {
  margin-bottom: 2rem;
  color: var(--color-text-light-2);
  font: 500 0.75rem/1.5 var(--fonts-monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.banister-home h1 {
  margin: 0 0 1.75rem;
  color: var(--color-text-dark);
  font-size: clamp(3.5rem, 6vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.banister-home h1 span {
  color: var(--color-primary);
}

.banister-home .banister-intro {
  max-width: 29rem;
  margin-bottom: 2.25rem;
  color: var(--color-text-light);
  font-size: 1.12rem;
  line-height: 1.7;
}

.banister-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.banister-actions .ui.button {
  min-height: 43px;
  padding-inline: 1.6rem;
  font-weight: 500;
}

.banister-home .banister-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text-light);
}

.banister-home .banister-explore:hover {
  color: var(--color-primary);
}

.banister-branch-art {
  display: block;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

.banister-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-secondary);
  color: var(--color-text-light-2);
  font-size: 0.9rem;
}

.banister-details p {
  margin: 0;
}

.banister-details .banister-capabilities {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.banister-capabilities svg {
  color: var(--color-primary);
}

@media (max-width: 767.98px) {
  #navbar {
    padding-inline: 0.75rem;
  }

  .banister-home {
    width: calc(100% - 3rem);
  }

  .banister-home > .banister-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 4.5rem 3rem;
  }

  .banister-branch-art {
    width: 190px;
    justify-self: start;
  }
}
