@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #121212;
  --fg: #ececec;
  --muted: #a8a8a8;
  --faint: #8c8c8c;
  --line: #262626;
  --hover: #1c1c1c;
  --accent: #9cc9a0;
  --ascii-bg: #1f1f1f;
  --ascii-disc: #3a3a3a;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--fg); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 48px clamp(24px, 9vw, 140px);
}

.intro {
  flex: 1 1 420px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: #9a9a9a;
}
/* Density loader: one character breathing through ASCII density (main.js) */
.loader { color: var(--accent); display: inline-block; width: 1ch; text-align: center; }

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bio {
  margin: -16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.links {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}
.build {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.95em;
  white-space: nowrap;
}
.build::after { content: "_"; color: var(--accent); }

.row:last-child { border-bottom: 0; }
.row:hover { background: var(--hover); }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

kbd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  border: 1px solid #333;
  border-radius: 5px;
  padding: 2px 7px;
}

.row.copied kbd { color: var(--accent); border-color: var(--accent); }

footer {
  font-family: var(--mono);
  font-size: 12px;
  color: #6f6f6f;
}

/* Flashlight background: full-page ASCII field drawn in main.js */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .page { align-items: flex-end; padding-bottom: 40px; }
  h1 { font-size: 34px; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
