/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

nav .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  cursor: none;
}

nav a:hover { color: var(--accent); }
nav .logo { color: var(--accent) !important; font-weight: 600; }

/* ARTICLE */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.page-header {
  margin-bottom: 48px;
  animation: fadeIn 0.5s ease both;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.page-eyebrow a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
  transition: color 0.2s, border-color 0.2s;
  cursor: none;
}

.page-eyebrow a:hover { color: var(--accent); border-color: var(--accent); }

h1 {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Body copy */
.page-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #c2d4e0;
  margin-bottom: 24px;
}

.page-body p:last-child { margin-bottom: 0; }

.page-body h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 48px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-body h2::before {
  content: '##';
  color: var(--dim);
}

.page-body strong { color: var(--text); font-weight: 600; }
.page-body em { color: var(--muted); }

.page-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,255,157,0.3);
  transition: border-color 0.2s;
  cursor: none;
}

.page-body a:hover { border-color: var(--accent); }

/* Stack list */
.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 24px;
}

.stack-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.stack-key {
  color: var(--accent3);
  flex-shrink: 0;
  min-width: 100px;
}

/* Writing pipeline */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 24px;
}

.pipeline-item {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-item::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--dim);
  flex-shrink: 0;
}

/* Updated note */
.updated-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.updated-note span { color: var(--muted); }

/* Footer */
.page-footer {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover { color: var(--accent); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-body p, .page-body h2 {
  animation: fadeIn 0.4s ease both;
}

