:root {
  color-scheme: dark;
  --background: #15120b;
  --amber: #ffb33e;
  --muted: #aa7f35;
  --border: #4b3918;
  font-family: "Courier New", Courier, monospace;
  font-size: 19px;
  color: var(--amber);
  background: var(--background);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 64px 28px;
  background: radial-gradient(ellipse at center, #21190c55, transparent 75%);
  text-shadow: 0 0 7px #ffae3225;
}

/* A fixed, non-interactive layer gives the screen its subtle CRT texture. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 1px,
    #00000030 1px,
    #00000030 3px
  );
}

.terminal { width: min(100%, 820px); }
p { margin: 0; line-height: 1.65; }
.prompt, .comment { color: var(--muted); }
.command { margin-bottom: 5px; }
h1 {
  margin: 0;
  font-size: clamp(28px, 5.6vw, 74px);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -1.5px;
  white-space: nowrap;
  text-shadow: 0 0 10px #ffb33e30;
}
.intro { margin-top: 1px; }
.apps { margin-top: 28px; }
.links { margin-top: 27px; }
.link-list {
  margin: 0;
  padding: 7px 0;
  list-style: none;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px #ffb33e05;
}
.link-list a {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.link-name { font-weight: bold; }
.comment { justify-self: end; }
.link-list a:hover { background: #ffb33e0c; }
.link-list a:hover .link-name { text-decoration: underline; text-underline-offset: 4px; }
.link-list a:focus-visible { outline: 2px solid var(--amber); outline-offset: -3px; background: #ffb33e12; }
.idle { display: flex; align-items: center; gap: 11px; margin-top: 27px; }
.cursor { width: 10px; height: 19px; background: var(--amber); animation: blink 1.2s step-end infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 600px) {
  :root { font-size: 14px; }
  body { padding: 48px 20px; }
  h1 { font-size: clamp(23px, 5.6vw, 34px); letter-spacing: -0.8px; margin: 8px 0; }
  .command { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .apps, .links { margin-top: 30px; }
  .link-list a { grid-template-columns: 14px 1fr; gap: 5px 12px; padding: 13px 14px; }
  .comment { grid-column: 2; justify-self: start; }
  .cursor { height: 15px; width: 8px; }
}

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