:root {
  --bg: #0f1318;
  --ink: #e8edf2;
  --muted: #a7b1bb;
  --line: #232c35;
  --accent: #5da6d6;
  --focus: #8fc6ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.62;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bg);
  min-height: 100vh;
  padding: 72px 24px 56px;
}

header,
main,
footer {
  max-width: 800px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.28;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 3.2rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: #f2f6fa;
}

h2 {
  font-size: 1.18rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

p,
li {
  font-size: 1.03rem;
}

p {
  margin: 0.35rem 0 0.9rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 150ms linear;
}

a:hover {
  background-size: 100% 1px;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
  background-size: 100% 1px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0 36px;
}

section {
  margin-bottom: 1.7rem;
}

.role-stack {
  margin: 0 0 0.85rem;
}

.role-stack div {
  color: var(--accent);
  font-size: clamp(1.04rem, 2.2vw, 1.18rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.intro {
  font-size: 1.08rem;
  max-width: 780px;
}

.microcode {
  margin-top: 0.2rem;
  color: #8a949e;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.pipeline-line {
  margin: 0.25rem 0 0.85rem;
  color: #d8e0e7;
}

.how-lines p {
  margin: 0.2rem 0 0.55rem;
  color: #c8d0d8;
}

.focus-lines p {
  margin: 0.25rem 0 0.55rem;
}

.split {
  display: block;
}

nav {
  margin-top: 1rem;
}

nav a {
  margin-right: 1rem;
}

footer {
  color: var(--muted);
  font-size: 0.96rem;
  padding-top: 0.6rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal-in 140ms ease-out forwards;
}

.d1 { animation-delay: 40ms; }
.d2 { animation-delay: 80ms; }
.d3 { animation-delay: 120ms; }

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 52px 20px 44px;
  }
}
