:root {
  --bg: #000;
  --fg: #d9ddd8;
  --muted: #767d78;
  --dim: #343936;
  --accent: #b9d8bd;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 64px 0 36px;
}

.masthead {
  position: relative;
  margin-bottom: 60px;
  padding-right: 92px;
}

.x-mark {
  position: absolute;
  top: -6px;
  right: 0;
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: 0.82;
}

.brand {
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.rule {
  height: 1px;
  background: var(--dim);
  margin: 14px 0;
}

.tagline {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.section {
  margin: 0 0 58px;
}

.section-label {
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 18px;
}

.project {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #171a18;
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease, padding-left 120ms ease;
}

.project:last-child {
  border-bottom: 1px solid #171a18;
}

.project:hover,
.project:focus-visible {
  color: var(--accent);
  padding-left: 4px;
  outline: none;
}

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

.project-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-title {
  letter-spacing: 0.06em;
}

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

.project-action {
  color: var(--muted);
  white-space: nowrap;
}

.project:hover .project-action,
.project:focus-visible .project-action {
  color: var(--accent);
}

.log-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 8px 0;
}

.log-entry time {
  color: var(--muted);
}

.log-entry p {
  margin: 0;
}

footer {
  margin-top: 72px;
}

.footer-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status {
  margin-left: auto;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 36px;
  }

  .masthead {
    margin-bottom: 44px;
    padding-right: 62px;
  }

  .x-mark {
    top: -2px;
    width: 44px;
    height: 44px;
    opacity: 0.82;
  }

  .project {
    grid-template-columns: 38px 1fr;
  }

  .project-action {
    grid-column: 2;
    margin-top: -3px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px 0;
  }

  .status {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }

  .cursor {
    animation: none;
  }
}
