:root {
  color-scheme: dark;
  --bg: #171a19;
  --fg: #fafaf7;
  --green: #176b4d;
  --sage: #91c9a9;
  --muted: #a7b0aa;
  --line: #454b47;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Page layout */
.page {
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: auto;
  padding: clamp(16px, 3vh, 36px) clamp(24px, 6vw, 92px) clamp(16px, 3vh, 28px);
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(16px, 3vh, 42px) 0;
}

/* Hero */
.hero {
  text-align: center;
  width: 100%;
}

.logo-group {
  display: inline-block;
}

.logo {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: clamp(66px, min(14vw, 19vh), 190px);
  line-height: 1.03;
  letter-spacing: -.085em;
  padding-right: .085em;
}

.dot {
  color: var(--green);
}

.rule {
  width: 100%;
  height: 1px;
  background: #b7bcb8;
  margin: clamp(12px, 2.8vh, 36px) auto clamp(12px, 2.5vh, 23px);
}

.descriptor {
  margin: 0;
  font-size: clamp(11px, 1.35vw, 16px);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Pricing */
.commercial {
  margin-top: clamp(24px, 6vh, 75px);
}

.rate {
  margin: 0 0 clamp(16px, 2.5vh, 22px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(14px, 1.4vw, 14px);
  color: var(--muted);
}

.rate strong {
  font-weight: 600;
  color: var(--fg);
  margin-left: 8px;
}

.pricing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 21px;
  border: 1px solid var(--green);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.pricing:hover,
.pricing:focus-visible {
  background: var(--green);
  color: var(--fg);
}

.pricing:focus-visible,
.nav a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 5px;
}

/* Navigation */
.lower {
  width: 100%;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: clamp(12px, 2vh, 22px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
  padding: 6px 22px;
}

.nav a + a {
  border-left: 1px solid var(--line);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sage);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: clamp(12px, 2vh, 23px);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.footer > :last-child {
  justify-self: end;
}

.footer a {
  text-decoration: none;
  color: var(--fg);
  transition: color 160ms ease;
}

.footer a:hover {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 5px;
}

.footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.footer .social-link:hover {
  color: var(--sage);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 650px) {
  .page {
    padding-inline: 20px;
  }

  .logo {
    font-size: clamp(72px, min(19vw, 17vh), 124px);
  }

  .descriptor {
    font-size: 11px;
    letter-spacing: .075em;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 9px 0;
  }

  .nav a {
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
    white-space: normal;
  }

  .nav a + a {
    border-left: 0;
  }

  .nav a:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .nav a::after {
    left: 8px;
    right: 8px;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer .social-link {
    grid-row: 1;
  }

  .footer > :last-child {
    justify-self: center;
  }
}

/* Short viewports */
@media (max-height: 620px) {
  .page {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main {
    padding: 12px 0;
  }

  .logo {
    font-size: clamp(54px, 14vh, 94px);
  }

  .rule {
    margin: 10px auto;
  }

  .commercial {
    margin-top: 20px;
  }

  .rate {
    margin-bottom: 10px;
  }

  .pricing {
    padding: 9px 16px;
  }

  .nav {
    padding: 8px 0;
  }

  .footer {
    padding-top: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .pricing,
  .nav a,
  .nav a::after,
  .footer a {
    transition: none;
  }
}