:root {
  color-scheme: dark;
  --color-background: #10191e;
  --color-surface: #18262b;
  --color-border: #415057;
  --color-text: #cce8f6;
  --color-text-muted: #a9c8d8;
  --color-brand: #6cbcff;
  --color-brand-contrast: #102336;
  --color-error: #ffb4a4;
  --color-error-surface: #3b2421;
  --color-info: #a9d8e6;
  --color-info-surface: #1d3038;
  --font-body: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body {
  position: relative;
  isolation: isolate;
  background-color: #10191e;
  background-image: url("/assets/screenshot.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #10191e;
  content: "";
  opacity: .68;
  pointer-events: none;
}

.site-header {
  min-height: 5.25rem;
  padding: .8rem clamp(1.25rem, 5vw, 5rem);
  background: #111b20ed;
  border-bottom: 3px solid #6cbcff;
  box-shadow: 0 8px 26px #0005;
}

.site-header__brand,
.site-header__nav a,
.site-header__user,
.site-header__button,
.site-chrome-items--header > a:not(.site-header__brand) {
  color: #cce8f6;
}

.site-header__logo {
  color: #6cbcff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.site-header__tagline {
  margin-top: .25rem;
  color: #a9c8d8;
  font-size: .7rem;
}

.site-header__nav,
.site-chrome-items--header {
  gap: .35rem;
}

.site-header__nav a,
.site-header__button,
.site-chrome-items--header > a:not(.site-header__brand) {
  border-radius: 3px;
  padding: .55rem .8rem;
  transition: background-color .18s ease, color .18s ease;
}

.site-header__nav a:hover,
.site-header__nav a.router-link-exact-active,
.site-header__button:hover,
.site-chrome-items--header > a:not(.site-header__brand):hover {
  background: #17486f;
  color: #d8efff;
}

.app-main {
  max-width: none;
  padding: clamp(2.5rem, 7vh, 5.5rem) clamp(1.25rem, 6vw, 6rem);
  background: #10191e66;
}

.markdown-page {
  max-width: 68rem;
  margin: 0 auto;
}

.markdown-page h1,
.markdown-page h2,
.markdown-page h3 {
  color: #d7efff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

.markdown-page h1 {
  max-width: 15ch;
  margin-bottom: 1.4rem;
  font-size: 4rem;
  line-height: 1.02;
  text-shadow: 0 2px 18px #0009;
}

.markdown-page h1::after {
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 1.5rem;
  background: #e88762;
  content: "";
}

.markdown-page h2 {
  margin-top: 3rem;
  font-size: 2rem;
}

.markdown-page p,
.markdown-page li {
  max-width: 68ch;
  color: #cce2ef;
}

.markdown-page > p:first-of-type {
  color: #c2dcec;
  font-size: 1.2rem;
  line-height: 1.75;
}

.markdown-page a:not(.button) {
  color: #aee4ff;
  text-decoration-color: #e88762;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.markdown-page a.button,
.button {
  border: 0;
  border-radius: 3px;
  padding: .8rem 1.15rem;
  background: #17486f;
  box-shadow: 4px 4px 0 #e88762;
  color: #d8efff !important;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}

.markdown-page a.button:hover,
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #e88762;
}

.site-header__button {
  background: #17486f;
  color: #d8efff;
}

.site-header__button:hover {
  background: #28698f;
  color: #f0f8ff;
}

.markdown-page a.button:hover,
.button:hover {
  background: #28698f;
  color: #f0f8ff !important;
}

.markdown-page img {
  border: 1px solid #718078;
  box-shadow: 12px 12px 0 #0005;
}

.markdown-page blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid #e88762;
  color: #c2dcec;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.markdown-page code {
  background: #18262b;
  color: #aee4ff;
}

.field input {
  border-radius: 3px;
  background: #10191ee8;
  color: #cce8f6;
  padding: .7rem .8rem;
}

.field input:focus-visible {
  outline-offset: 3px;
}

.profile-view__content article {
  background: #142127e8;
  box-shadow: 0 8px 26px #0004;
}

.site-footer {
  padding: 1.5rem 1.25rem;
  border-top: 1px solid #415057;
  background: #111b20ed;
  color: #a9c8d8;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: .8rem 1rem;
  }

  .site-header__nav,
  .site-chrome-items--header {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .site-header__nav a,
  .site-header__button,
  .site-chrome-items--header > a:not(.site-header__brand) {
    padding: .4rem .55rem;
    font-size: .85rem;
  }

  .app-main {
    padding: 2.5rem 1.25rem;
  }

  .markdown-page h1 {
    font-size: 3rem;
  }

  .markdown-page h2 {
    margin-top: 2.25rem;
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}