/* Code Read Play — "Terminal" direction
   Plain CSS, no build step. Dark ground, monospace headings, prompt-style
   section markers. Colours are tokens on :root. */

:root {
  --bg: #0b0e14;
  --surface: #11151d;
  --text: #d7dde8;
  --bright: #f2f5f9;
  --body: #b7c0cf;
  --muted: #8b95a7;
  --dim: #5c6678;
  --line: #1f2630;
  --line-strong: #3a4454;
  --accent: #7ee787;
  --accent-soft: #b6f2c8;
  --max: 1040px;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code { font-family: var(--mono); font-size: 0.9em; }

.mono { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; }

/* Header */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-path { color: var(--muted); }
.brand-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .brand-cursor { animation: none; } }

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 14px;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* Layout */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 64px;
}

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}
.prompt {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--muted);
}
.prompt .sigil, .sigil { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bright);
}
.lede { margin: 0; font-size: 19px; color: var(--muted); }
.comment {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--dim);
}

.section {
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-head { display: flex; flex-direction: column; gap: 6px; }
.section-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--bright);
}
.section-head p { margin: 0; color: var(--muted); }

/* Project rows */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 3fr 6fr 2fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  color: inherit;
  text-decoration: none;
}
a.row:hover .row-name { color: var(--accent); }
.row-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--bright);
}
.row-desc { margin: 0; color: var(--body); font-size: 16px; }
.row-stack {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.status {
  justify-self: end;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 3px;
  white-space: nowrap;
}
.status-live { border-color: var(--accent); color: var(--accent); }

/* Simple lists (Read / Play) */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.list li { display: flex; gap: 14px; }
.list .sigil { font-family: var(--mono); }
.list strong { color: var(--bright); font-weight: 500; }
.list span.val { color: var(--body); }

.about { max-width: 720px; }
.about p { margin: 0; color: var(--body); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}

/* Phone */

@media (max-width: 720px) {
  .site-header, main { padding-left: 16px; padding-right: 16px; }
  .site-footer p { padding-left: 16px; padding-right: 16px; }
  .site-nav { gap: 18px; }
  .hero { padding-top: 48px; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name status"
      "desc desc"
      "stack stack";
    gap: 8px 16px;
  }
  .row-name { grid-area: name; }
  .status { grid-area: status; }
  .row-desc { grid-area: desc; }
  .row-stack { grid-area: stack; }
}
