:root {
	--font-sans: 'Atkinson Hyperlegible Next', sans-serif;
	--font-mono: 'Atkinson Hyperlegible Mono', monospace;
	--color-light-theme: oklch(98.5% 0.002 247.839);
	--color-light-theme-hover: oklch(87.2% 0.01 258.338);
	--color-dark-theme: oklch(13% 0.028 261.692);
	--color-dark-theme-hover: oklch(27.8% 0.033 256.848);
	--color-error: oklch(63.7% 0.237 25.331);

	--color-bg: var(--color-light-theme);
	--color-bg-hover: var(--color-light-theme-hover);
	--color-bg-secondary: oklch(96.7% 0.003 264.542);

	--color-text: oklch(13% 0.028 261.692);
	--color-text-muted: oklch(27.8% 0.033 256.848);
	--color-text-secondary: oklch(44.6% 0.03 256.802);
	--color-text-link: oklch(71.5% 0.143 215.221);
	--color-border: oklch(70.7% 0.022 261.325);

	--color-button-primary: oklch(13% 0.028 261.692);
	--color-button-primary-hover: oklch(37.3% 0.034 259.733);
	--color-button-secondary: oklch(87.2% 0.01 258.338);
	--color-button-secondary-hover: oklch(70.7% 0.022 261.325);

	--spacing-safe-top: env(safe-area-inset-top, 2rem);
	--spacing-safe-bottom: env(safe-area-inset-bottom, 2rem);
	--spacing-safe-left: env(safe-area-inset-left, 2rem);
	--spacing-safe-right: env(safe-area-inset-right, 2rem);
}

:root .dark {
	--color-bg: var(--color-dark-theme);
	--color-bg-hover: var(--color-dark-theme-hover);
	--color-bg-secondary: oklch(21% 0.034 264.665);

	--color-text: oklch(98.5% 0.002 247.839);
	--color-text-muted: oklch(92.8% 0.006 264.531);
	--color-text-secondary: oklch(70.7% 0.022 261.325);
	--color-border: oklch(44.6% 0.03 256.802);

	--color-button-primary: oklch(98.5% 0.002 247.839);
	--color-button-primary-hover: oklch(87.2% 0.01 258.338);
	--color-button-secondary: oklch(37.3% 0.034 259.733);
	--color-button-secondary-hover: oklch(27.8% 0.033 256.848);
}

* {
  font-family: var(--font-sans);
}

body {
  background-color: var(--color-bg);
  margin: 0;
}

.wordmark {
  fill: var(--color-text);
  height: 3rem;
  width: auto;
  aspect-ratio: 330.8535 / 109;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 3rem;
  padding: 1.5rem 0;
  border-color: var(--color-border);
  border-style: solid;
  border-width: 1px;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  position: sticky;
  background-color: var(--color-bg);
  top: 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  width: 70%;
  max-height: 100%;
}

.nav-inner a {
  display: flex;
  align-items: center;
}

.demo {
  max-width: 100%;
}

.demo-mobile {
  display: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 5rem 0rem;
}

.content {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 2rem;
}

h1 {
  font-size: 4rem;
  font-weight: 500;
  margin: 0 0 -0.5rem 0;
  line-height: 4.5rem;
  color: var(--color-text);

}

h2 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  margin: 0;
}

button {
  background-color: var(--color-button-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

button.secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text);
}

button:hover {
  background-color: var(--color-button-primary-hover);
}

button.secondary:hover {
  background-color: var(--color-button-secondary-hover);
}

.download {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
}

.header {
  display: flex;
  flex-direction: column;
  width: 70%;
  gap: 1.5rem;
}

.logo {
  width: 15rem;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  height: 100%;
}

table a:hover, footer a:hover {
  text-decoration: underline;
}

table {
  font-size: 1.25rem;
  border-collapse: collapse;
  width: 60%;
  background-color: var(--color-bg-secondary);
  border-radius: 0.5rem;
}

th {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  width: 30%;
  padding: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

td {
  padding: 1rem 0;
  font-weight: 300;
}

tr {
  border: 1px solid var(--color-border);
  border-left: 0;
  border-right: 0;
  display: flex;
}

tr:first-child {
  border-top: 0;
}


tr:last-child {
  border-bottom: 0;
}

.buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

footer {
  color: var(--color-text);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.footer-inner {
  max-width: 70%;
  text-align: center;
}

@media (max-width: 600px) {
  .content {
    width: 80%;
  }

  .nav-inner {
    width: 90%;
  }

  .footer-inner {
    max-width: 90%;
  }

  .header {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  table {
    width: 100%;
    font-size: 1rem;
  }

  .demo-mobile {
    display: block;
  }

  .demo {
    display: none;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .content-wrapper {
    padding: 3rem 0rem;
  }
}