:root {
  --accent: #6666ca;
  --accent-deep: #385cda;

  --button: #385cda;
  --button-hover: #637dea;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 600px) {
  body {
    font-size: 18px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.hero-img-wrap {
  position: relative;
  max-width: 100%;
  margin-top: -2em;
  margin-bottom: 1em;
  overflow: hidden;
  z-index: -1;
}

.hero-img {
  position: relative;
  left: 50%;
  width: 100%;
  height: auto;
  min-width: 900px;
  transform: translateX(-50%);
}

a:link,
a:visited {
  color: var(--accent);
}

code {
  font-family: ui-monospace, 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Mono', 'Consolas', monospace;
  font-size: 0.9em;
}

p code {
  background: #f0f0f4;
  color: #60607a;
  padding: 2px 4px;
}

pre {
  background: #f0f0f4;
  color: #60607a;
  padding: 2px 4px;
  font-size: 0.9em;
  overflow-x: auto;
}

figure,
article .video {
  margin: 1em 0;
}

article img,
article iframe,
figure img,
figure iframe {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0 0.5em;
  line-height: 1.4;
  color: #303033;
}

h1,
h2,
h3 {
  font-weight: 500;
}

h1 {
  font-size: 1.7em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.4em;
}

h3 {
  font-size: 1.2em;
  margin-top: 1.2em;
}

.feather {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.flow-text {
  vertical-align: -0.3em;
  margin-right: 0.2em;
}

.redtape-header {
  max-width: 880px;
  margin: 8em auto 0;
  padding: 1em;
}

.redtape-header__logo {
  height: 1.2em;
  vertical-align: text-bottom;
  margin: 0 0 0 0.3em;
}

.redtape-header__harmony,
.redtape-header__harmony:link,
.redtape-header__harmony:visited {
  text-decoration: none;
  color: #6c6161;
}

.redtape-header__harmony b {
  color: var(--accent);
}

.redtape-header__title {
  margin-top: 0.25em;
  color: #c34d4d;
}

.redtape-header h2 {
  color: #db6f6f;
}

@media (min-width: 600px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.3em;
  }

  .redtape-header__title {
    font-size: 2.5em;
  }
}

.main-content {
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .article {
    margin-right: 362px;
  }

  .toc {
    position: sticky;
    float: right;
    top: 0;
    width: 330px;
    max-height: 100vh;
    scrollbar-width: none;
    overflow-y: auto;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0.5em 0 1em;
  padding-left: 1.5em;
}

li {
  margin: 0 0 0.5em;
}

blockquote {
  border-left: 3px solid;
  padding-left: 1em;
  margin: 0 0 1em;
  color: #555558;
}

figcaption {
  margin-top: 0.5em;
  color: #656568;
}

details {
  padding: 0.25em 1em;
  margin: 0 -1em 1em;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: 0.1s background ease;
}

details > summary {
  cursor: pointer;
}

details:hover {
  background: #fafafa;
}

details[open] {
  border-color: #eee;
  background: none;
}

.file-embed {
  display: block;
  display: flex;
  align-items: center;
  padding: 0.25em 1em;
  margin: 0 -1em 1em;
  border-radius: 4px;
  transition: 0.1s background ease;
}

figure .file-embed {
  margin-bottom: 0;
}

.file-embed:link {
  color: inherit;
  border: none;
}

.file-embed:hover {
  background: #fafafa;
}

.file-embed > * {
  margin-right: 0.5em;
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background-color: #000000;
}

.video__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video__button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: none;
  padding: 0;
  width: 68px;
  height: 48px;
  border: none;
  background-color: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video__button-shape {
  fill: #212121;
  fill-opacity: 0.8;
}

.video__button-icon {
  fill: #ffffff;
}

.video__button:focus {
  outline: none;
}

.video:hover .video__button-shape,
.video__button:focus .video__button-shape {
  fill: #ff0000;
  fill-opacity: 1;
  transition: 0.08s fill;
}

/* Enabled */

.video--enabled {
  cursor: pointer;
}

.video--enabled .video__button {
  display: block;
}

.toc {
  font-size: 15px;
  padding: 1.5em 0;
}

.toc ol {
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 0.125em 0 0.125em 1em;
  border-left: 3px solid transparent;
  color: var(--accent);
}

.toc a,
.toc a:hover,
.toc a:focus {
  text-decoration: none;
}

.toc > ol > li {
  font-weight: bold;
}

.toc > ol > li > ol {
  margin: 0.25em 0;
  font-weight: normal;
}

.toc > ol > li > ol > li > a {
  padding-left: 2em;
}

.toc .active,
.toc a:hover {
  border-left-color: currentColor;
}

@media (max-width: 599px) {
  .toc {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #323238;
    overflow-y: auto;
    --accent: #aaf;
    overscroll-behavior: contain;
  }

  .toc--active {
    display: block;
  }
}

.toc-toggle {
  position: fixed;
  right: 8px;
  bottom: 8px;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0;
}

.toc-toggle--inactive .toc-toggle__opened {
  display: none;
}

.toc-toggle--active .toc-toggle__closed {
  display: none;
}

@media (min-width: 600px) {
  .toc-toggle {
    display: none;
  }
}

.announcement {
  padding: 0.5em 1.5em;
  text-align: center;
  background: var(--accent-deep);
  color: #fff;
}

.announcement a {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

.header {
  width: 100%;
  margin-bottom: 2em;
  font-size: 15px;
  background-image: linear-gradient(to bottom, #0006, #0000);
  padding: 1em;
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__list {
  display: flex;
  margin: 0;
  padding: 0;
}

.nav__item {
  margin: 0;
  list-style: none;
  color: #fffa;
  font-weight: bold;
  text-transform: uppercase;
}

.nav__item a {
  color: #fff;
  text-decoration: none;
}

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

.nav__item + .nav__item {
  margin-left: 1.5em;
}

.hero-container {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #18161e;
}

.hero-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0006;
  z-index: 0;
}

.hero-container,
.hero-container h1,
.hero-container a {
  color: #fff;
}

.header,
.hero__content {
  position: relative;
}

.hero__content {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__content__in {
  max-width: 600px;
}

.hero__content * + * {
  margin-top: 1em;
  margin-bottom: 0;
}

.hero__headline {
  margin: 0;
}

.hero__headline,
.hero__description {
  text-shadow: 0 1px 2px black;
}

.hero__button {
  margin-top: 1.5em;
}

.button {
  display: inline-block;
  padding: 0.5em 1em;
  border: none;
  border-radius: 6px;
  background: var(--button);
  font-weight: 500;
  cursor: pointer;
  transition: 0.1s background, 0.15s transform;
}

.button,
.button:link,
.button:visited {
  color: #fff;
  text-decoration: none;
}

.button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

@media (min-width: 600px) {
  .hero__content {
    font-size: 1.1em;
  }

  .button {
    padding: 0.8em 1.5em;
  }
}

.discord-cta {
  position: relative;
  width: max-content;
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  line-height: 1.2;
  transition: 0.2s background, 0.15s transform;
  overflow: hidden;
  text-align: left;

  --button: #5865f2;
  --button-hover: #737ef3;
}

.discord-cta::after {
  position: absolute;
  left: 0;
  content: '';
  width: 50%;
  height: 100%;
  background: #fff2;
  transform-origin: bottom left;
  transform: skewX(-45deg) translateX(200%);
  transition: 0.2s transform linear;
}

.discord-cta:hover::after {
  transform: skewX(-45deg) translateX(-200%);
}

.discord-cta img {
  margin-right: 1rem;
  height: 40px;
}

.discord-cta__title {
  font-size: 1.2em;
  font-weight: bold;
}

.homepage-projects {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.homepage-projects h1 {
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.7;
}

.project-card + .project-card {
  margin-top: 5rem;
}

.project-card > * {
  margin-left: auto;
  margin-right: auto;
}

.project-title {
  margin: 0.3em 0;
  font-size: 2rem;
}

.project-summary {
  max-width: 60ch;
}

.project-links {
  display: flex;
  justify-content: center;
  margin: 0 0 2rem;
  padding: 0;
}

.project-links li {
  list-style: none;
}

.project-links a {
  display: inline-block;
  text-decoration: none;
  margin: -0.3em -0.75em;
  padding: 0.3em 1.5em;
}

.project-links a:hover span {
  text-decoration: underline;
}

.project-eta {
  opacity: 0.6;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;
}

.project-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 600px;
}

.homepage-link-section {
  text-align: center;
}

.homepage-link-section .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.homepage-link-section h1 {
  margin-bottom: 0.5rem;
}

.homepage-link-section p {
  margin: 0.5em 0 0;
  max-width: 60ch;
  font-size: 1.2rem;
  opacity: 0.8;
}

.homepage-redtape-response {
  position: relative;
  background: #f7dddd;
  text-shadow: #fff 0 1px 4px;
}

.homepage-redtape-response,
.homepage-redtape-response h1 {
  color: #000;
}

.homepage-redtape-response .button {
  text-shadow: none;
}

.homepage-redtape-response::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(farthest-side circle at center center, #fffe 20%, #fff0), url(/static/redtape/cover-image.svg) no-repeat center center / cover;
  opacity: 1;
}

.homepage-redtape-response .container {
  position: relative;
}

.homepage-subscribe {
  background: linear-gradient(80deg, #1a1a56, #4e4ec9);
}

.homepage-subscribe,
.homepage-subscribe h1 {
  color: #fff;
}

.footer {
  padding: 1em 1em;
  color: #888;
  background: #111;
  font-size: 0.9rem;
  text-align: center;
}
