/* T3RM Studios: dark terminal look. No web fonts, no JavaScript. */

:root {
  --bg: #0a0d0b;
  --surface: #0f1411;
  --edge: #1f2a23;
  --leader: #3a4a3f;
  --text: #c9d6cd;
  --fg: #e8f0ea;
  --dim: #8b998f;
  --green: #4ade80;
  --amber: #fbbf24;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(74, 222, 128, 0.08), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Faint CRT scanlines over everything. Decorative only. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

.page {
  flex: 1;
  width: min(100% - 2.5rem, 38rem);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Logo */
.logo {
  margin: 0;
  line-height: 0;
}

.logo a {
  display: inline-block;
}

.logo svg {
  display: block;
  width: min(100%, 20rem);
  height: auto;
}

.logo-small svg {
  width: min(100%, 11rem);
}

.logo-letters {
  fill: var(--fg);
}

.logo-cursor {
  fill: var(--green);
  animation: blink 1.1s steps(1, end) infinite;
}

.logo-studios {
  fill: var(--dim);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Terminal window */
.terminal {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 4rem -1.5rem rgba(0, 0, 0, 0.7);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--edge);
}

.terminal-title {
  margin-left: 0.5rem;
}

/* Text shrinks with the screen so the longest line fits even a 320px phone,
   with no sideways scrolling. */
.terminal-body {
  padding: 1rem 1.1rem 1.15rem;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 3.3vw, 0.95rem);
  line-height: 1.8;
}

/* Lines appear one after another, like output being printed.
   Visible by default: if a browser skips animations, the text still shows. */
.line {
  margin: 0;
  white-space: pre;
  animation: show 0s linear both;
}

.line:nth-child(1) { animation-delay: 0.2s; }
.line:nth-child(2) { animation-delay: 0.7s; }
.line:nth-child(3) { animation-delay: 0.95s; }
.line:nth-child(4) { animation-delay: 1.2s; }
.line:nth-child(5) { animation-delay: 1.6s; }

/* Uses visibility rather than opacity: same instant "print" effect,
   without putting each line on its own graphics layer. */
@keyframes show {
  from {
    visibility: hidden;
  }

  to {
    visibility: visible;
  }
}

.prompt,
.ok {
  color: var(--green);
}

.leader {
  color: var(--leader);
}

.soon,
.error {
  color: var(--amber);
}

.block-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: -0.2em;
  background: var(--green);
  animation: blink 1.1s steps(1, end) infinite;
}

/* Text */
.tagline {
  margin: 0;
  font-size: clamp(1.25rem, 3vw + 0.6rem, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.accent {
  color: var(--green);
}

.contact {
  margin: 0;
  color: var(--dim);
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer {
  width: min(100% - 2.5rem, 38rem);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}

.footer p {
  margin: 0;
}

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

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

  .line {
    animation: none;
  }
}
