@font-face {
  font-family: "Victor Mono";
  src: url("/fonts/victor-mono-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  src: url("/fonts/victor-mono-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Victor Mono";
  src: url("/fonts/victor-mono-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --ink: #292d32;
  --muted: #71757a;
  --accent: #596bdc;
  --directory: #405ee9;
  --shadow: rgba(22, 29, 37, 0.12);
  font-family: "Victor Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #eff0f1;
}

body {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  padding: clamp(0px, 2vw, 28px);
  color: var(--ink);
  background: radial-gradient(circle at 16% 12%, #fff, transparent 31rem), #eff0f1;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { color: inherit; }

.paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 980px);
  height: calc(100vh - clamp(0px, 4vw, 56px));
  height: calc(100dvh - clamp(0px, 4vw, 56px));
  min-height: 0;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(89, 107, 220, .38) transparent;
  scrollbar-width: thin;
  border: 1px solid #c5cbd0;
  border-radius: 17px;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(52, 60, 67, .035) 0, rgba(52, 60, 67, .035) 1px, transparent 1px, transparent 4px),
    linear-gradient(90deg, rgba(255,255,255,.48), transparent 35%, rgba(255,255,255,.18));
  box-shadow: 0 15px 50px var(--shadow), inset 0 1px rgba(255,255,255,.82);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.paper::-webkit-scrollbar { width: 8px; }
.paper::-webkit-scrollbar-track { background: transparent; }
.paper::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(89, 107, 220, .38);
  background-clip: padding-box;
}

.masthead, .hero, .terminal, footer, noscript {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.masthead {
  margin: 0 clamp(22px, 3.2vw, 34px);
  padding: 23px 0 0;
}

.site-id {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}

.site-id span { margin-right: .55ch; }

.hero {
  width: min(850px, calc(100% - clamp(44px, 6.4vw, 68px)));
  padding: clamp(20px, 2.5vw, 30px) 0 19px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

h1 {
  position: relative;
  width: fit-content;
  margin: 0;
  font-family: "Victor Mono", "SFMono-Regular", Menlo, monospace;
  font-size: clamp(36px, 3.7vw, 50px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.065em;
}

h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 2px auto auto 3px;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(89, 103, 217, .3);
}

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35em .72em;
  margin: 25px 0 22px;
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 700;
}

.identity i { color: var(--muted); font-style: normal; }

.identity a, .quick-links a, .quick-links button, .hint button, footer button {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

.identity a:hover, .identity a:focus-visible,
.quick-links a:hover, .quick-links a:focus-visible,
.quick-links button:hover, .quick-links button:focus-visible,
.hint button:hover, .hint button:focus-visible,
footer button:hover, footer button:focus-visible {
  color: var(--accent);
  outline: none;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 28px 8px;
  padding-left: 25px;
  border-left: 3px solid rgba(36, 40, 45, .5);
  font-size: clamp(13px, .9vw, 14px);
}

.quick-links a, .quick-links button, .hint button, footer button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

blockquote {
  margin: 0 0 24px;
  font-size: clamp(13.5px, 1vw, 15px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.025em;
}

.hint {
  display: flex;
  gap: 16px;
  margin: 0 0 26px 30px;
  font-size: clamp(12px, .85vw, 13px);
  line-height: 1.5;
}

.hint > span { line-height: 1.55; }
.hint p { margin: 0; }

.updated {
  margin: 0;
  font-size: clamp(12px, .8vw, 13px);
}

.terminal {
  width: min(850px, calc(100% - clamp(44px, 6.4vw, 68px)));
  min-height: 110px;
  padding: 8px 0 40px;
  font-size: clamp(12.5px, .95vw, 14px);
  line-height: 1.38;
}

.terminal-output:empty { display: none; }

.terminal-line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-line.command { margin-top: 10px; }
.terminal-line.error { color: #a34545; }
.terminal-line.suggestions { color: var(--muted); }
.terminal-line a { color: var(--accent); text-underline-offset: .16em; }
.terminal-line .accent { color: var(--accent); font-weight: 700; }
.terminal-line .directory {
  color: var(--directory);
  font-weight: 700;
  letter-spacing: -.035em;
}

#terminal-form {
  position: relative;
  display: flex;
  align-items: baseline;
  min-height: 1.5em;
}

.prompt { flex: 0 0 auto; font-weight: 800; }
.prompt span { color: var(--accent); }
.prompt b { color: var(--muted); }

#terminal-input {
  flex: 1 1 auto;
  min-width: 1px;
  border: 0;
  outline: 0;
  padding: 0 0 0 .6ch;
  color: var(--ink);
  caret-color: transparent;
  background: transparent;
  font-weight: 700;
}

.cursor {
  position: absolute;
  top: .16em;
  left: calc((var(--prompt-ch, 5) * 1ch) + .6ch);
  display: inline-block;
  width: .7em;
  height: 1.05em;
  background: var(--ink);
  animation: blink 1.05s steps(1) infinite;
}

#terminal-input:not(:placeholder-shown) { caret-color: var(--ink); }
#terminal-input:not(:placeholder-shown) + .cursor { display: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: auto clamp(22px, 3.2vw, 34px) 0;
  padding: 14px 0 10px;
  border-top: 1px dashed rgba(36, 40, 45, .35);
  color: var(--muted);
  font-size: 9.5px;
}

noscript { display: block; padding: 15px 30px; text-align: center; }

@keyframes blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@media (min-width: 760px) {
  .paper { width: clamp(720px, 70vw, 980px); }
  .hero, .terminal { margin-left: clamp(22px, 3.2vw, 34px); }
}

@media (max-width: 759px) {
  body { padding: 0; }
  .paper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border-width: 0;
    border-radius: 0;
  }
  .masthead { margin-inline: 22px; padding-top: 23px; }
  .hero, .terminal { width: auto; margin-inline: 22px; }
  .hero { padding-top: 29px; }
  h1 { font-size: clamp(34px, 10vw, 50px); }
  .identity { margin-top: 25px; }
  .quick-links { gap: 11px 22px; }
  .hint { margin-left: 7px; }
  footer { margin-inline: 22px; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
