/* Operator dossier: dark, one accent, content first */

:root {
  --bg: #0a0b0d;
  --surface: #111318;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceef1;
  --muted: #8b919a;
  --faint: #5c636c;
  --accent: #5eb8c9;
  --max: 40rem;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(94, 184, 201, 0.28);
  color: #fff;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #8fd0dc;
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.logo {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

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

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 2.5rem 0 0.5rem;
}

.kicker {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
}

.inline-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.inline-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* CLI interlude */
.cli {
  margin: 1.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f13;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cli-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #12151a;
}

.cli-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3a404a;
}

.cli-dot:nth-child(1) {
  background: #c45c5c;
}
.cli-dot:nth-child(2) {
  background: #c4a35c;
}
.cli-dot:nth-child(3) {
  background: #5c9e6e;
}

.cli-title {
  margin-left: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.cli-body {
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  min-height: 7.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #b8c0c8;
  white-space: pre-wrap;
  word-break: break-word;
}

.cli-body .prompt {
  color: var(--accent);
}

.cli-body .ok {
  color: #7dcea0;
}

.cli-body .dim {
  color: var(--faint);
}

.cli-cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

/* Sections */
.section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1.15rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* Impact metrics */
.metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.metrics li {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
}

.metrics li:first-child {
  border-top: none;
}

.metric-value {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

/* About prose */
.prose {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 36rem;
}

.prose p {
  margin: 0 0 0.95rem;
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Work */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.work-item:first-child {
  border-top: none;
  padding-top: 0;
}

.work-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.4rem;
}

.work-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.badge.status-shipped {
  color: var(--accent);
}

.badge.status-wip {
  color: #c49a6c;
}

.work-item .summary {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 34rem;
}

.work-tags {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.7rem;
}

.work-tags li {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}

.work-tags li:not(:last-child)::after {
  content: "/";
  margin-left: 0.7rem;
  opacity: 0.5;
}

.work-links {
  display: flex;
  gap: 0.9rem;
}

.work-links a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.work-links a:hover {
  text-decoration: underline;
}

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

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
}

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

@media (max-width: 560px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .metrics li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
