@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/tektur-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(fonts/tektur-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url(fonts/martian-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url(fonts/martian-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c141c;
  --panel: #0f1a24;
  --line: #1c2b38;
  --line-2: #2a3f50;
  --text: #d9e4ec;
  --muted: #7c8f9e;
  --accent: #56d8e4;
  --accent-ink: #052128;
  --display: 'Tektur', 'Arial Narrow', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'DejaVu Sans Mono', monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: 14px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-stretch: 87.5%;
  font-weight: 380;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main,
.top,
.foot {
  position: relative;
  z-index: 1;
}

.dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(150, 190, 210, 0.38) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), #000 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.12) 100%);
  mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 20%), #000 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.12) 100%);
}

.frame {
  background: var(--line-2);
  padding: 1px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.frame-in {
  height: 100%;
  background: var(--panel);
  clip-path: polygon(calc(var(--cut) - 0.5px) 0, 100% 0, 100% calc(100% - var(--cut) + 0.5px), calc(100% - var(--cut) + 0.5px) 100%, 0 100%, 0 calc(var(--cut) - 0.5px));
}

.top {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.mark span {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.lang {
  display: flex;
  border: 1px solid var(--line-2);
}

.lang button {
  background: none;
  border: 0;
  padding: 5px 10px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
  grid-template-areas:
    'head side'
    'term side';
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 36px;
  align-items: start;
  padding-top: clamp(24px, 6vh, 64px);
  padding-bottom: 112px;
}

.hero-head {
  grid-area: head;
  min-width: 0;
}

.hero-side {
  grid-area: side;
  display: grid;
  gap: 24px;
}

.hero-term {
  grid-area: term;
  min-width: 0;
}

.nick {
  margin: 0 0 26px -0.05em;
  font-family: var(--display);
  font-size: clamp(96px, 21vw, 300px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.015em;
  white-space: nowrap;
  font-variation-settings: 'wght' 800, 'wdth' 100;
}

.nick span {
  display: inline-block;
  font-variation-settings: inherit;
}

.tagline {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
}

.photo {
  --cut: 22px;
  aspect-ratio: 4 / 5;
}

.photo .frame-in {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(124, 143, 158, 0.09) 9px 10px),
    var(--panel);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-empty {
  font-size: 12px;
  color: var(--muted);
}

.status p {
  margin: 0;
}

.avail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  margin-inline: 1px;
  flex: none;
  background: var(--accent);
  transform: rotate(45deg);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.status .sub {
  color: var(--muted);
  font-size: 13px;
  padding-left: 18px;
}

.status .time {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.status .time + .sub {
  padding-left: 0;
}

.btn {
  --cut: 10px;
  display: block;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter 0.15s;
}

.btn:hover {
  filter: brightness(1.12);
}

.term {
  --cut: 18px;
}

.term-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px 9px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.term-body {
  height: clamp(240px, 36vh, 360px);
  overflow-y: auto;
  padding: 14px 18px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  cursor: text;
}

.term-out > * {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term-out a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.t-prompt,
.t-acc {
  color: var(--accent);
}

.t-muted {
  color: var(--muted);
}

.t-gap {
  height: 0.6em;
}

.t-row {
  display: grid;
  grid-template-columns: var(--col, 12ch) minmax(0, 1fr);
  column-gap: 2ch;
}

.t-neo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4ch;
  align-items: flex-start;
  margin-block: 4px;
}

.t-logo {
  display: grid;
  grid-template-columns: repeat(16, 6px);
  grid-auto-rows: 6px;
  margin-top: 6px;
}

.t-logo i {
  background: var(--accent);
}

.t-logo i.o {
  background: none;
}

.t-swatch {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.t-swatch i {
  width: 18px;
  height: 10px;
}

.term-line {
  position: relative;
  display: flex;
  gap: 1ch;
  white-space: pre;
}

.term-view {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}

.term-input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  font-size: 16px;
  color: transparent;
  background: transparent;
  caret-color: transparent;
}

.cursor {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.term.focus .cursor {
  outline: 0;
  background: var(--accent);
  color: var(--accent-ink);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { background: transparent; color: inherit; }
}

.term.focus {
  background: color-mix(in srgb, var(--accent) 55%, var(--line-2));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chips button {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--line-2);
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.chips button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.sec {
  display: grid;
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: 20px 48px;
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.sec-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.sec-cmd {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-height: 1.7em;
}

.sec-body {
  min-width: 0;
}

.prose p {
  max-width: 62ch;
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.stack {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px 48px;
  margin: 0;
}

.stack dt {
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.stack dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
}

.now {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.now li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  max-width: 64ch;
}

.now li::before {
  content: '>';
  color: var(--accent);
}

.exp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

.exp li {
  display: grid;
  grid-template-columns: 10ch minmax(0, 1fr);
  gap: 8px 32px;
}

.exp .period {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.6;
}

.exp h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.exp .place {
  margin: 2px 0 8px;
  color: var(--muted);
}

.exp .text {
  margin: 0;
  max-width: 62ch;
}

.lead {
  max-width: 22ch;
  margin: 0 0 40px;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li {
  display: grid;
  grid-template-columns: 12ch minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.links li:last-child {
  border-bottom: 1px solid var(--line);
}

.links .k {
  color: var(--muted);
}

.links a {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}

.links a:hover {
  color: var(--accent);
}

.copy {
  padding: 5px 12px;
  background: none;
  border: 1px solid var(--line-2);
  font-family: var(--display);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
  border-color: var(--accent);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'head'
      'side'
      'term';
    padding-bottom: 72px;
  }

  .hero-side {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 16px 20px;
  }

  .hero-side .btn {
    grid-column: 1 / -1;
  }

  .photo {
    --cut: 14px;
  }

  .sec {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 56px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .nick {
    font-size: clamp(88px, 30vw, 140px);
  }

  .hero-side {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .term-bar .term-tip {
    display: none;
  }

  .term-body {
    font-size: 12.5px;
    padding-inline: 14px;
  }

  .stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .stack dd {
    margin-bottom: 14px;
  }

  .exp li {
    grid-template-columns: minmax(0, 1fr);
  }

  .links li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .links .k {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dot,
  .term.focus .cursor {
    animation: none;
  }
}
