:root {
  --bg: #0b0d10;
  --panel: #14171c;
  --ink: #e6e6e0;
  --muted: #8b93a1;
  --accent: #7dd3c0;
  --line: #262b33;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-header .brand { color: var(--ink); font-weight: 600; }
.site-header a { color: var(--muted); }
.site-header a:hover { color: var(--accent); }

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.excerpt {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.stage {
  margin: 2rem 0;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--accent); }

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.entry-nav .spacer { flex: 1; }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.share-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.share-row a, .share-row button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.share-row a:hover, .share-row button:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
