/* pedroverdades.com — terminal page. Dark only, one accent (cobalt), one typeface (mono). */
:root {
  --bg: #060606;
  --fg: #cfcfcf;
  --dim: #6b6b6b;
  --faint: #1c1c1c;
  --bright: #f4f4f4;
  --accent: #1326fd;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--dim);
  text-underline-offset: 3px;
}
a:hover, a:focus-visible {
  color: var(--bright);
  text-decoration-color: var(--accent);
  outline: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 24px;
  overflow: hidden;
  background: var(--bg);
}

#bust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.top {
  position: relative;
  z-index: 1;
  grid-row: 1;
  align-self: start;
  width: 100%;
  min-height: 4em;
  text-shadow: 0 0 8px #000, 0 0 3px #000;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  font-size: 11px;
  line-height: 1.5;
}

.ticker {
  margin-top: -6px;
  color: #a3a3a3;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ticker p { margin: 0; }
.ticker b { font-weight: 400; color: var(--bright); }
.ticker span + span { margin-left: 1.2em; }

.lines {
  position: relative;
  z-index: 1;
  grid-row: 3;
  text-align: center;
  padding: 4px 0 6vh;
  min-height: 6.5em;
  text-shadow: 0 0 10px #000, 0 0 4px #000;
}
.line { margin: 0; min-height: 1.65em; }
#l1 { color: var(--bright); font-size: 17px; }
#l3 { color: var(--dim); margin-top: 1.2em; }

.cursor::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.18em;
  margin-left: 0.35em;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- body ---------- */
main {
  max-width: 72ch;
  margin: 0 auto;
  padding-block: 10vh 18vh;
  padding-inline: 24px;
  display: grid;
  gap: 88px;
}

.prompt {
  margin: 0 0 14px;
  color: var(--bright);
}
.out p { margin: 0 0 0.35em; }
.dim { color: var(--dim); }

.links { margin-top: 1.3em; color: var(--dim); }
.links .sep { margin: 0 0.5em; }

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.posts .date {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  margin-right: 1em;
}
.posts .desc {
  display: block;
  color: var(--dim);
  padding-left: calc(10ch + 1em);
}

/* career log */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.log li { display: grid; grid-template-columns: 17ch 1fr; gap: 4px 1.5em; align-items: baseline; }
.log .when { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .what b { font-weight: 500; color: var(--bright); margin-right: 0.6em; }
.log .note { grid-column: 2; color: var(--dim); }

/* diff */
.diff {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--faint);
  font: inherit;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.diff .rm { color: var(--dim); }
.diff .add { color: var(--bright); }

/* journey */
.era { margin: 36px 0 6px; color: var(--bright); }
.era .n { color: var(--accent); margin-right: 0.8em; }
.era-note { color: var(--dim); margin-bottom: 12px; }
.commits { display: grid; gap: 2px; }
.commit summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 8ch 1fr auto;
  gap: 0 1.2em;
  align-items: baseline;
  padding: 6px 0;
}
.commit summary::-webkit-details-marker { display: none; }
.commit summary::before { content: "+"; color: var(--dim); position: absolute; margin-left: -1.4em; }
.commit[open] summary::before { content: "-"; }
.commit { position: relative; padding-left: 1.4em; }
.commit summary:hover .t, .commit summary:focus-visible .t { color: var(--bright); }
.commit summary:focus-visible { outline: none; }
.commit .date { color: var(--dim); font-variant-numeric: tabular-nums; }
.commit .t { color: var(--fg); }
.commit .r { color: var(--dim); text-align: right; white-space: nowrap; }
.commit .body { padding: 6px 0 14px 9.2ch; color: var(--fg); }
.commit .body p { margin: 0 0 0.4em; }
.commit .body i { font-style: normal; color: var(--dim); margin-right: 0.6em; }
.commit .proof { color: var(--dim); margin-top: 0.5em; }

/* stats */
.kpis { margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpis div { min-width: 0; }
.kpis dt { color: var(--bright); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpis dd { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.chart {
  margin: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  overflow-x: auto;
  white-space: pre;
}
.chart .hi { color: var(--bright); }

/* contact */
.handles { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 6px; }
.handles .k { display: inline-block; width: 10ch; color: var(--dim); }

/* scroll reveal, JS only; everything is visible without JS */
.js .block {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .block.in { opacity: 1; transform: none; }

/* ---------- post page ---------- */
.post {
  max-width: 68ch;
  margin: 0 auto;
  padding-block: 6vh 16vh;
  padding-inline: 24px;
}
.post .prompt { margin-bottom: 40px; }
.post .eyebrow {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post h1 {
  margin: 0 0 18px;
  color: var(--bright);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.post .lede { margin: 0 0 14px; }
.post .byline { margin: 0 0 32px; color: var(--dim); }
.post .disclosure {
  margin: 0 0 36px;
  padding: 10px 14px;
  border: 1px solid var(--faint);
  color: var(--dim);
  font-size: 13px;
}
.post figure { margin: 0 0 44px; }
.post figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.08);
  border: 1px solid var(--faint);
}
.post figcaption { margin-top: 8px; color: var(--dim); font-size: 12px; }

.post h2 {
  margin: 56px 0 16px;
  color: var(--bright);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.post h2 .n {
  display: block;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.post p { margin: 0 0 1.1em; }
.post ul { margin: 0 0 1.3em; padding-left: 1.4em; }
.post li { margin-bottom: 0.45em; }
.post li::marker { color: var(--dim); }

.post .tldr { padding: 4px 0 0; }

.post blockquote {
  margin: 1.5em 0 1.8em;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 2px solid var(--accent);
  color: var(--bright);
}
.post blockquote p { margin: 0; }
.post blockquote .k { color: var(--dim); }

.post .timeline { margin: 0 0 1.4em; }
.post .timeline dt {
  color: var(--dim);
  font-size: 13px;
  margin-top: 1em;
}
.post .timeline dt b { color: var(--bright); font-weight: 500; margin-left: 0.6em; }
.post .timeline dd { margin: 0.2em 0 0; }

.post .proof { color: var(--dim); font-size: 13px; margin: -0.3em 0 1.6em; }
.post .diff { margin: 0 0 1.4em; }
.post .closing {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--faint);
  color: var(--dim);
  font-size: 13px;
}
.post .back { margin-top: 56px; }

/* ---------- motion and small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .block { opacity: 1; transform: none; transition: none; }
  .cursor::after { animation: none; }
}

@media (max-width: 600px) {
  .top { font-size: 10px; }
  .log li { grid-template-columns: 1fr; }
  .log .note { grid-column: 1; }
  .commit summary { grid-template-columns: 8ch 1fr; }
  .commit .r { grid-column: 2; text-align: left; white-space: normal; }
  .commit .body { padding-left: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .posts .desc { padding-left: 0; margin-top: 2px; }
  .links .sep { display: block; height: 0; overflow: hidden; }
  main { gap: 64px; }
}
