@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-inset: 24px;
  --content-width: 1280px;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color: #bcbec4;
  background: #0d0e10;
  font-synthesis: none;
  font-variant-ligatures: none;
  font-feature-settings:
    "liga" 0,
    "calt" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  display: grid;
  grid-template-rows: 80px 1fr 88px;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
}

p {
  margin: 0;
}

.masthead,
.colophon {
  display: flex;
  align-items: center;
}

.masthead__inner,
.colophon__inner,
.identity__content {
  width: min(var(--content-width), calc(100% - 2 * var(--page-inset)));
  margin-inline: auto;
}

.masthead__inner,
.colophon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 400;
  color: #6aab73;
}

.domain {
  color: #969ba3;
  font-size: 13px;
  line-height: 1.5;
}

.identity {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 320px;
  overflow: clip;
}

.identity__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 64px 72px;
}

.identity__mark {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.5;
  white-space: nowrap;
}

.mark__syntax,
.mark__closing {
  color: #7a7e85;
}

.mark__name {
  color: #6aab73;
}

.mark__closing {
  display: inline-flex;
  gap: 0.08em;
  margin-inline-start: 0.36em;
}

h1 {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
}

.domain-ending {
  color: #bcbec4;
  font-size: 0.6em;
}

.letter-keyword {
  color: #cf8e6d;
}

.letter-string {
  color: #6aab73;
}

.letter-function {
  color: #57aaf7;
}

.letter-property {
  color: #c77dbb;
}

.letter-number {
  color: #2aacb8;
}

.greeting {
  margin-top: 28px;
  color: #969ba3;
  font-size: 14px;
  line-height: 1.6;
}

.code-art {
  position: absolute;
  inset: 16px -112px auto auto;
  width: 380px;
  height: 360px;
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
}

.code-art span {
  position: absolute;
  display: block;
  width: 1ch;
  font-size: 280px;
  line-height: 1.2;
}

.code-art__angle {
  color: #343940;
}

.code-art__angle--open {
  left: 0;
  top: 0;
}

.code-art__slash {
  left: 100px;
  top: -20px;
  color: #354d3d;
}

.code-art__angle--close {
  left: 200px;
  top: 52px;
}

@supports (-webkit-text-stroke: 1px #343940) {
  .code-art__angle {
    color: transparent;
    -webkit-text-stroke: 1px #343940;
  }
}

.colophon {
  border-top: 1px solid #24262a;
  color: #969ba3;
  font-size: 12px;
  line-height: 1.5;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swiss-cross {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: #b62c2c;
}

.swiss-cross::before,
.swiss-cross::after {
  position: absolute;
  inset: 3px 6px;
  content: "";
  background: #fff;
}

.swiss-cross::after {
  inset: 6px 3px;
}

@media (min-width: 600px) {
  :root {
    --page-inset: 48px;
  }

  .identity__mark {
    height: 48px;
    font-size: 32px;
  }

  h1 {
    font-size: 80px;
  }

  .greeting {
    font-size: 16px;
  }

  .code-art {
    top: 32px;
    right: -80px;
    width: 440px;
    height: 440px;
    opacity: 0.7;
  }

  .code-art span {
    font-size: 340px;
  }

  .code-art__slash {
    left: 128px;
  }

  .code-art__angle--close {
    left: 256px;
    top: 64px;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-inset: 64px;
  }

  body {
    grid-template-rows: 96px 1fr 112px;
  }

  .identity__content {
    padding-block: 120px 136px;
  }

  h1 {
    font-size: 128px;
  }

  .greeting {
    margin-top: 32px;
  }

  .code-art {
    top: calc(50% - 260px);
    right: calc(max(var(--page-inset), (100% - var(--content-width)) / 2) - 96px);
    width: 560px;
    height: 520px;
    opacity: 1;
  }

  .code-art span {
    font-size: 440px;
  }

  .code-art__slash {
    left: 164px;
  }

  .code-art__angle--close {
    left: 328px;
    top: 84px;
  }
}

@media (min-width: 1600px) {
  h1 {
    font-size: 144px;
  }
}

@media (max-height: 540px) and (min-width: 600px) {
  body {
    grid-template-rows: 64px 1fr 64px;
  }

  .identity {
    min-height: 200px;
  }

  .identity__content {
    padding-block: 24px;
  }

  .identity__mark {
    height: 36px;
    margin-bottom: 8px;
    font-size: 24px;
  }

  h1 {
    font-size: 64px;
  }

  .greeting {
    margin-top: 8px;
    font-size: 14px;
  }

  .code-art {
    top: -100px;
  }
}
