:root {
  --bg: #f5f3ee;
  --fg: #1a1a1a;
  --fg-muted: #6e6e6e;
  --accent: #6b8e4e;
  --border: #dcd9d2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --fg: #e8e6df;
    --fg-muted: #7a7a7a;
    --accent: #8fb368;
    --border: #222428;
  }
}

:root[data-theme="light"] {
  --bg: #f5f3ee;
  --fg: #1a1a1a;
  --fg-muted: #6e6e6e;
  --accent: #6b8e4e;
  --border: #dcd9d2;
}

:root[data-theme="dark"] {
  --bg: #0e0f12;
  --fg: #e8e6df;
  --fg-muted: #7a7a7a;
  --accent: #8fb368;
  --border: #222428;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  padding: 1.5rem 2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    padding: 1.5rem 1.25rem;
  }
}

main {
  max-width: 640px;
  margin: 0 auto;
}

.landing {
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.wordmark {
  margin: 0 0 4rem 0;
  font-weight: 400;
  line-height: 0;
}

.logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 240px;
  max-height: 4.5rem;
  margin: 0 auto;
}

.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

@media (max-width: 640px) {
  .wordmark {
    margin-bottom: 2.5rem;
  }
  .logo {
    max-width: 200px;
    max-height: 3.75rem;
  }
}

.tagline {
  margin: 0 0 4rem 0;
}

@media (max-width: 640px) {
  .tagline {
    margin-bottom: 2.5rem;
  }
}

.tagline p {
  margin: 0;
}

.prefix {
  color: var(--accent);
}

.cursor {
  background-color: var(--accent);
  display: inline-block;
  width: 1ch;
  height: 1.2em;
  vertical-align: text-bottom;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.meta {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 2ch;
  row-gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 4rem auto;
  text-align: left;
}

@media (max-width: 640px) {
  .meta {
    margin-bottom: 2.5rem;
  }
}

.meta dt {
  color: var(--fg-muted);
  margin: 0;
}

.meta dd {
  color: var(--fg);
  margin: 0;
}

a {
  color: var(--fg);
  text-decoration: none;
  text-decoration-color: var(--accent);
  transition: text-decoration-color 100ms;
}

a:hover,
a:focus {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

a:visited {
  color: var(--fg);
}

.footer {
  margin: 0;
}

.company {
  color: var(--fg-muted);
  margin: 1.6em 0 0 0;
}

.back {
  margin: 0 0 3rem 0;
}

.doc h1 {
  font-size: 1.25em;
  font-weight: 400;
  margin: 0 0 2rem 0;
}

.doc p {
  margin: 0 0 1.2em 0;
}

.doc .footer {
  margin-top: 3rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 1.6em auto 0 auto;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: color 100ms, border-color 100ms;
}

.doc .theme-toggle {
  margin-left: 0;
  margin-right: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
  border-color: var(--border);
  outline: none;
}

.theme-toggle svg {
  display: block;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-sun { display: block; }
  .theme-toggle .icon-moon { display: none; }
}

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}
