/* src/index.css */
:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --code-bg: #f4f3ec;
  --accent: #aa3bff;
  --accent-bg: #aa3bff1a;
  --accent-border: #aa3bff80;
  --social-bg: #f4f3ec80;
  --shadow: #0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;
  --heading: system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  font: 18px / 145% var(--sans);
  letter-spacing: .18px;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --buncss-light: ;
    --buncss-dark: initial;
  }
}

@media (max-width: 1024px) {
  :root {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: #c084fc26;
    --accent-border: #c084fc80;
    --social-bg: #2f303a80;
    --shadow: #0006 0 10px 15px -3px, #00000040 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
}

#root {
  text-align: center;
  border-inline: 1px solid var(--border);
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  width: 1126px;
  max-width: 100%;
  min-height: 100svh;
  margin: 0 auto;
}

body {
  margin: 0;
}

h1, h2 {
  font-family: var(--heading);
  color: var(--text-h);
  font-weight: 500;
}

h1 {
  letter-spacing: -1.68px;
  margin: 32px 0;
  font-size: 56px;
}

@media (max-width: 1024px) {
  h1 {
    margin: 20px 0;
    font-size: 36px;
  }
}

h2 {
  letter-spacing: -.24px;
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 118%;
}

@media (max-width: 1024px) {
  h2 {
    font-size: 20px;
  }
}

p {
  margin: 0;
}

code, .counter {
  font-family: var(--mono);
  display: inline-flex;
  color: var(--text-h);
  border-radius: 4px;
}

code {
  background: var(--code-bg);
  padding: 4px 8px;
  font-size: 15px;
  line-height: 135%;
}

/* src/App.css */
.counter {
  color: var(--accent);
  background: var(--accent-bg);
  border: 2px solid #0000;
  border-radius: 5px;
  margin-bottom: 24px;
  padding: 5px 10px;
  transition: border-color .3s;
  font-size: 16px;
}

.counter:hover {
  border-color: var(--accent-border);
}

.counter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  position: relative;
}

.hero .base {
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero .framework {
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero .vite {
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero .base {
  position: relative;
  z-index: 0;
  width: 170px;
}

.hero .framework {
  position: absolute;
}

.hero .vite {
  position: absolute;
}

.hero .framework {
  z-index: 1;
  height: 28px;
  top: 34px;
  transform: perspective(2000px)rotateZ(300deg)rotateX(44deg)rotateY(39deg)scale(1.4);
}

.hero .vite {
  z-index: 0;
  width: auto;
  height: 26px;
  top: 107px;
  transform: perspective(2000px)rotateZ(300deg)rotateX(40deg)rotateY(39deg)scale(.8);
}

#center {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  place-content:  center;
  place-items:  center;
  gap: 25px;
}

@media (max-width: 1024px) {
  #center {
    gap: 18px;
    padding: 32px 20px 24px;
  }
}

#next-steps {
  display: flex;
  border-top: 1px solid var(--border);
  text-align: left;
}

#next-steps > div {
  flex: 1 1 0;
  padding: 32px;
}

@media (max-width: 1024px) {
  #next-steps > div {
    padding: 24px 20px;
  }
}

#next-steps .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  #next-steps {
    text-align: center;
    flex-direction: column;
  }
}

#docs {
  border-right: 1px solid var(--border);
}

@media (max-width: 1024px) {
  #docs {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

#next-steps ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
}

#next-steps ul .logo {
  height: 18px;
}

#next-steps ul a {
  color: var(--text-h);
  background: var(--social-bg);
  display: flex;
  text-decoration: none;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  padding: 6px 12px;
  transition: box-shadow .3s;
  font-size: 16px;
}

#next-steps ul a:hover {
  box-shadow: var(--shadow);
}

#next-steps ul a .button-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  #next-steps ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }

  #next-steps ul li {
    flex: calc(50% - 8px);
  }

  #next-steps ul a {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
  }
}

#spacer {
  border-top: 1px solid var(--border);
  height: 88px;
}

@media (max-width: 1024px) {
  #spacer {
    height: 48px;
  }
}

.ticks {
  position: relative;
  width: 100%;
}

.ticks:before {
  content: "";
  position: absolute;
  border: 5px solid #0000;
  top: -4.5px;
}

.ticks:after {
  content: "";
  position: absolute;
  border: 5px solid #0000;
  top: -4.5px;
}

.ticks:before {
  border-left-color: var(--border);
  left: 0;
}

.ticks:after {
  border-right-color: var(--border);
  right: 0;
}
