/* quickvm.com. The colors are the three in the QuickVM mark (/assets/logo.svg). */
:root {
  --navy: #0e2849;
  --green: #2e7551;
  --green-dark: #245d40;
  --green-light: #6d9e85;
  --page: #f5f7f9;
  --card: #fff;
  --text: #253246;
  --muted: #4b5767;
  --line: #d8dee6;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70rem 30rem at 50% -6rem, rgb(46 117 81 / 0.14), transparent 70%)
      no-repeat,
    var(--page);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--green) 50%, var(--navy));
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
p,
ul {
  margin: 0;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4px);
  max-width: 64rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.wrap.narrow {
  max-width: 48rem;
}

main {
  margin-bottom: 4rem;
}

/* Home page */

.hero {
  padding-top: 4.5rem;
  text-align: center;
}

.hero .lockup {
  width: auto;
  height: 2.75rem;
  margin-inline: auto;
}

.hero h1 {
  margin-top: 3rem;
  color: var(--navy);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--green);
  box-shadow: 0 1px 2px rgb(14 40 73 / 0.12);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms;
}

.button:hover {
  background: var(--green-dark);
  color: #fff;
}

.button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.features {
  display: grid;
  gap: 2.25rem;
  margin-top: 4.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 32px -16px rgb(14 40 73 / 0.18);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--green);
  color: #fff;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature h2 {
  margin-top: 1rem;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.feature p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Legal pages */

.site-header {
  padding-top: 2rem;
}

.site-header a {
  display: inline-block;
}

.site-header .lockup {
  width: auto;
  height: 2rem;
}

.legal {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
}

.legal h1 {
  color: var(--navy);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal h2 {
  margin-top: 2.25rem;
  color: var(--navy);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal p,
.legal ul {
  margin-top: 1rem;
}

.legal h2 + * {
  margin-top: 0.5rem;
}

.legal .updated {
  margin: 0.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.legal p,
.legal li {
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal a {
  font-weight: 600;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  color: var(--navy);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .wrap {
    padding-inline: 2rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero .lockup {
    height: 3.5rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 6rem;
    padding: 2.5rem;
  }

  .legal {
    padding: 3rem;
  }

  .site-footer {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
