:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1b1c20;
  color: #f3f4f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: #1b1c20;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #1b1c20;
}

a {
  color: inherit;
}

.site-frame {
  width: min(1040px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid #303238;
  background: #1b1c20;
}

.site-header {
  --section-edge: #303238;
  position: relative;
  height: 76px;
  border-bottom: 1px solid var(--section-edge);
  background: #1b1c20;
}

.header-inner {
  width: min(1060px, calc(100% - 48px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.brand img {
  width: 30px;
  height: 30px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: #b0b3b9;
  text-decoration: none;
  font-size: 14px;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: #f4f5f6;
  outline: 0;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f4f5f6;
}

.github-link span {
  color: #8e949f;
}

.reicon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.reicon {
  display: block;
}

button > .reicon-slot {
  pointer-events: none;
}

.site-header::before,
.site-header::after,
main > section::before,
main > section::after {
  content: "";
  position: absolute;
  z-index: 6;
  bottom: -6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  pointer-events: none;
}

.site-header::before,
main > section::before {
  left: -1px;
  border-left: 7px solid var(--section-edge);
}

.site-header::after,
main > section::after {
  right: -1px;
  border-right: 7px solid var(--section-edge);
}

.site-footer {
  position: relative;
  padding: 72px 48px 34px;
  color: #a8acb3;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.028), transparent 30%),
    linear-gradient(180deg, #17181c, #141519);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 72px;
  padding-bottom: 56px;
}

.footer-intro,
.footer-note {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #f0f1f2;
  text-decoration: none;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-intro > p {
  max-width: 390px;
  margin: 24px 0 0;
  color: #737882;
  font-size: 13px;
  line-height: 1.65;
}

.footer-note h2 {
  margin: 0 0 13px;
  color: #e8eaec;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.025em;
}

.footer-note p {
  margin: 0;
  color: #777c85;
  font-size: 11px;
  line-height: 1.65;
}

.footer-note p + p {
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid #303238;
}

.footer-legal > p {
  margin: 0 0 15px;
  color: #6f747d;
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: #858a93;
  text-decoration: none;
  font-size: 10px;
  transition: color 160ms ease;
}

.footer-links a:not(:last-child)::after {
  content: "";
  width: 2px;
  height: 2px;
  margin: 0 10px;
  border-radius: 50%;
  background: #555a62;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #f0f1f2;
  outline: 0;
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.footer-actions a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #393c42;
  border-radius: 5px;
  color: #8c9199;
  background: #1c1d21;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.footer-actions a:hover,
.footer-actions a:focus-visible {
  border-color: #5a5f67;
  color: #eceef0;
  outline: 0;
  background: #24262b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .site-frame {
    width: 100%;
    border-inline: 0;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    width: calc(100% - 36px);
  }

  .site-header nav a[href="/#product"],
  .site-header nav .github-link {
    display: none;
  }

  .site-footer {
    padding: 56px 24px 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 42px;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding-inline: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions {
    width: 100%;
  }

  .footer-actions a {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
