/* ==========================================================================
   odevfagundes — terminal-flavoured personal site
   Two themes, one accent, no decoration that isn't doing work.
   ========================================================================== */

:root {
  --bg:        #0b0c0e;
  --bg-raise:  #121418;
  --bg-sink:   #08090b;
  --fg:        #d8dbe0;
  --fg-strong: #f2f4f7;
  --fg-dim:    #7b828d;
  --fg-faint:  #565c66;
  --rule:      #1f2229;
  --rule-soft: #171a1f;
  --accent:    #e0a336;   /* amber — prompts, links, markers */
  --accent-dim:#8a6520;
  --live:      #6fce8f;   /* "present" / online marker */
  --sel:       #2a2f38;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --w: 62rem;
  --gap: clamp(1rem, 3vw, 2rem);
}

:root[data-theme="light"] {
  --bg:        #faf9f7;
  --bg-raise:  #ffffff;
  --bg-sink:   #f1efec;
  --fg:        #26282c;
  --fg-strong: #0d0e10;
  --fg-dim:    #6a7079;
  --fg-faint:  #9aa0a8;
  --rule:      #e0ddd8;
  --rule-soft: #ece9e4;
  --accent:    #9a6a05;
  --accent-dim:#c9a45e;
  --live:      #1f7a44;
  --sel:       #e8e4dd;
}

/* Follow the operating system when the visitor has not chosen explicitly.
   The base :root palette above is dark, so only the light case needs a
   media query. Keep these values identical to the [data-theme="light"]
   block above — they are the same palette, declared twice because CSS
   cannot share one rule across a media query boundary. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --bg:        #faf9f7;
  --bg-raise:  #ffffff;
  --bg-sink:   #f1efec;
  --fg:        #26282c;
  --fg-strong: #0d0e10;
  --fg-dim:    #6a7079;
  --fg-faint:  #9aa0a8;
  --rule:      #e0ddd8;
  --rule-soft: #ece9e4;
  --accent:    #9a6a05;
  --accent-dim:#c9a45e;
  --live:      #1f7a44;
  --sel:       #e8e4dd;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.7;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sel); color: var(--fg-strong); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: background-color .12s ease, color .12s ease;
}
a:hover { background: var(--sel); color: var(--fg-strong); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* --------------------------------------------------------------- shell --- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.25rem;
  flex-wrap: wrap;
}

.prompt {
  color: var(--fg-dim);
  white-space: nowrap;
  border: 0;
}
.prompt:hover { background: none; color: var(--fg-dim); }
.prompt b { color: var(--accent); font-weight: 500; }
.prompt .sig { color: var(--fg-strong); font-weight: 600; }

nav.links {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
nav.links a {
  border: 0;
  color: var(--fg-dim);
  padding: .15rem 0;
  border-bottom: 1px solid transparent;
}
nav.links a:hover { background: none; color: var(--fg-strong); border-bottom-color: var(--accent); }
nav.links a[aria-current="page"] { color: var(--fg-strong); border-bottom-color: var(--accent); }

.toggle {
  font: inherit;
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  cursor: pointer;
  padding: .1rem .5rem;
  line-height: 1.5;
  border-radius: 2px;
}
.toggle:hover { color: var(--fg-strong); border-color: var(--accent-dim); }

main { padding: clamp(2.5rem, 7vw, 5rem) 0 4rem; }

/* ---------------------------------------------------------------- hero --- */
.hero { margin-bottom: 4rem; }

.hero .cmd {
  color: var(--fg-faint);
  font-size: .82rem;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.hero .cmd::before { content: '$ '; color: var(--accent); }

.hero h1 {
  font-size: clamp(1.7rem, 5.2vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg-strong);
  margin: 0 0 1.25rem;
  max-width: 32ch;
}

.cursor {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.15em;
  margin-left: .12em;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

.hero .bio {
  max-width: 62ch;
  color: var(--fg);
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* Key/value facts block — the "whoami" output */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .3rem 1.5rem;
  margin: 0;
  font-size: .88rem;
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
}
.facts dt { color: var(--fg-faint); }
.facts dt::after { content: ':'; }
.facts dd { margin: 0; color: var(--fg); }
.facts dd a { border-bottom-color: transparent; }
.facts dd a:hover { border-bottom-color: var(--accent-dim); }

.live {
  color: var(--live);
}
.live::before {
  content: '●';
  font-size: .7em;
  vertical-align: .1em;
  margin-right: .4em;
}

/* -------------------------------------------------------------- section --- */
.section { margin: 4rem 0; }

.section > h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--fg-faint);
  font-weight: 500;
  margin: 0 0 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.section > h2 .count {
  color: var(--fg-faint);
  letter-spacing: .04em;
  text-transform: none;
  margin-left: auto;
  font-size: .95em;
}

/* ------------------------------------------------------------ post list --- */
.posts { list-style: none; margin: 0; padding: 0; }

.posts li { border-bottom: 1px solid var(--rule-soft); }
.posts li:first-child { border-top: 1px solid var(--rule-soft); }

.posts a.row {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0 1.25rem;
  align-items: baseline;
  padding: .95rem .5rem;
  border: 0;
  color: inherit;
  margin: 0 -.5rem;
}
.posts a.row:hover { background: var(--bg-raise); }
.posts a.row:hover .ptitle { color: var(--accent); }

.pdate {
  color: var(--fg-faint);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ptitle {
  color: var(--fg-strong);
  font-weight: 500;
  transition: color .12s ease;
}
.psum {
  grid-column: 2;
  color: var(--fg-dim);
  font-size: .85rem;
  margin-top: .2rem;
  max-width: 68ch;
}
.pmeta {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: .6rem;
  align-items: baseline;
  color: var(--fg-faint);
  font-size: .75rem;
  white-space: nowrap;
}

.badge {
  border: 1px solid var(--rule);
  padding: 0 .35rem;
  border-radius: 2px;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--fg-faint);
}
.badge.medium { border-color: var(--accent-dim); color: var(--accent); }

/* Posts that leave the site (Medium articles) get an arrow after the title,
   so a reader knows the click goes off-domain before they take it. */
.ptitle .ext {
  display: inline-block;
  margin-left: .35rem;
  color: var(--fg-faint);
  font-size: .8em;
  transition: color .12s ease, transform .12s ease;
}
.posts a.row:hover .ext { color: var(--accent); transform: translate(1px, -1px); }

@media (max-width: 34rem) {
  .posts a.row { grid-template-columns: 1fr auto; }
  .pdate { grid-column: 1; grid-row: 2; }
  .ptitle { grid-column: 1 / -1; }
  .psum { grid-column: 1 / -1; }
  .pmeta { grid-column: 2; grid-row: 2; }
}

/* ---------------------------------------------------------------- tags --- */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.tags a {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .05rem .5rem;
  font-size: .78rem;
  color: var(--fg-dim);
}
.tags a:hover, .tags a[aria-current="true"] {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: none;
}
.tags .n { color: var(--fg-faint); font-size: .9em; }

/* ------------------------------------------------------------------ cv --- */
.job {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.job:last-child { border-bottom: 0; }
.job .when {
  color: var(--fg-faint);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  padding-top: .18rem;
}
.job h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.job .org { color: var(--fg-dim); font-size: .88rem; margin: .1rem 0 .8rem; }
.job ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.job li { margin: .25rem 0; color: var(--fg); }
.job li::marker { color: var(--accent-dim); }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 .45rem;
  font-size: .75rem;
  color: var(--fg-dim);
  background: var(--bg-sink);
}

.skillgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem; }
.skillgrid h3 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--fg-faint);
  font-weight: 500;
  margin: 0 0 .6rem;
}
.skillgrid ul { list-style: none; margin: 0; padding: 0; }
.skillgrid li { color: var(--fg); font-size: .9rem; }
.skillgrid li::before { content: '> '; color: var(--accent-dim); }

@media (max-width: 40rem) {
  .job { grid-template-columns: 1fr; }
  .job .when { margin-bottom: .4rem; }
}

/* --------------------------------------------------------------- prose --- */
.prose { max-width: 68ch; font-size: 1rem; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2, .prose h3, .prose h4 {
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.75rem;
}
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.08rem; }
.prose h4 { font-size: 1rem; color: var(--fg); }
.prose p { margin: 0; }
.prose strong { color: var(--fg-strong); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--accent-dim); }
.prose img, .prose figure img { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 2px; display: block; }
.prose figure { margin: 2rem 0; }
.prose figcaption { color: var(--fg-faint); font-size: .82rem; margin-top: .6rem; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.75rem 0; }

.prose blockquote {
  margin: 2rem 0;
  padding: .2rem 0 .2rem 1.25rem;
  border-left: 2px solid var(--accent-dim);
  color: var(--fg-dim);
}
.prose blockquote p { margin: 0; }

.prose code {
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .08em .35em;
  font-size: .88em;
  color: var(--accent);
}
/* Our fenced blocks carry .code; Medium's arrive as a bare <pre> using <br>
   for line breaks. Both get the same treatment. */
.prose pre,
.prose pre.code {
  background: var(--bg-sink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: .84rem;
  line-height: 1.6;
  position: relative;
}
.prose pre code,
.prose pre.code code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg);
  font-size: inherit;
}
.prose pre.code[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  right: 0;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  background: var(--bg-raise);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .1rem .5rem;
  border-radius: 0 3px 0 3px;
}

.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .5rem .7rem; text-align: left; }
.prose th { background: var(--bg-raise); color: var(--fg-strong); font-weight: 600; }

/* -------------------------------------------------------- article head --- */
.artmeta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  color: var(--fg-faint);
  font-size: .8rem;
  margin-bottom: 1.5rem;
}
.arthead h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  margin: 0 0 1rem;
  max-width: 34ch;
  font-weight: 600;
}
.arthead { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }

.notice {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent-dim);
  background: var(--bg-raise);
  padding: .7rem 1rem;
  font-size: .84rem;
  color: var(--fg-dim);
  border-radius: 0 2px 2px 0;
  margin-bottom: 2rem;
}
.notice a { color: var(--accent); }

/* -------------------------------------------------------------- footer --- */
footer.foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  color: var(--fg-faint);
  font-size: .8rem;
}
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; }
footer.foot a { color: var(--fg-dim); border: 0; }
footer.foot a:hover { color: var(--accent); background: none; }
footer.foot .right { margin-left: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gap);
  top: .5rem;
  z-index: 50;
  background: var(--bg-raise);
  border: 1px solid var(--accent);
  padding: .4rem .8rem;
}

/* --------------------------------------------------------------- print --- */
@media print {
  :root {
    --bg: #fff; --bg-raise: #fff; --bg-sink: #fff;
    --fg: #000; --fg-strong: #000; --fg-dim: #333; --fg-faint: #555;
    --rule: #bbb; --rule-soft: #ddd; --accent: #000; --accent-dim: #999; --live: #000;
  }
  body { font-size: 10.5pt; line-height: 1.45; }
  .masthead, footer.foot, .toggle, .skip, .noprint { display: none !important; }
  main { padding: 0; }
  a { color: #000; border: 0; }
  .job { page-break-inside: avoid; break-inside: avoid; }
  .section { margin: 1.25rem 0; }
  .hero { margin-bottom: 1.5rem; }
}

/* ==========================================================================
   /cv — rendered ⇄ markdown source view
   ========================================================================== */

.cvbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.segmented .seg {
  border: 0;
  padding: .1rem .7rem;
  color: var(--fg-dim);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color .14s ease, background-color .14s ease;
}
.segmented .seg + .seg { border-left: 1px solid var(--rule); }
.segmented .seg:hover { color: var(--fg-strong); background: var(--bg-raise); }
.segmented .seg[aria-selected="true"] {
  color: var(--bg);
  background: var(--accent);
}
:root[data-theme="light"] .segmented .seg[aria-selected="true"] { color: #fff; }

.kbd-hint { color: var(--fg-faint); font-size: .76rem; margin-left: .25rem; }
kbd {
  font: inherit;
  font-size: .95em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0 .3rem;
  color: var(--fg-dim);
  background: var(--bg-raise);
}

/* Panes swap without layout shift; the outgoing one is removed from the a11y
   tree via [hidden] rather than being merely transparent. */
.pane[hidden] { display: none; }
.pane { animation: paneIn .22s ease both; }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------- editor --- */
.editor {
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-sink);
  overflow: hidden;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .45rem .8rem;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--rule);
  font-size: .78rem;
  flex-wrap: wrap;
}
.editor-bar .fname { color: var(--fg-strong); }
.editor-bar .fname::before { content: '◆ '; color: var(--accent); font-size: .8em; }
.editor-bar .fmeta { color: var(--fg-faint); }
.editor-bar .ebtns { margin-left: auto; display: flex; gap: .4rem; }

.ebtn {
  font: inherit;
  font-size: .76rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--fg-dim);
  padding: 0 .45rem;
  cursor: pointer;
  text-decoration: none;
  transition: color .12s ease, border-color .12s ease;
}
.ebtn:hover { color: var(--accent); border-color: var(--accent-dim); background: transparent; }
.ebtn[data-copied] { color: var(--live); border-color: var(--live); }

.editor-body { position: relative; }

/* One-time light sweep down the source when the view opens. */
.sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.revealing .sweep { animation: sweep 1s ease-out both; }
@keyframes sweep {
  0%   { opacity: .9; transform: translateY(0); }
  85%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(min(1200px, 100%)); }
}

.mdsrc {
  margin: 0;
  padding: 1.1rem 1.1rem 1.4rem 0;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.75;
  white-space: pre;
  counter-reset: ln;
  tab-size: 2;
  color: var(--fg);
}
.mdsrc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Each source line. inline-block so transforms apply; min-height keeps blank
   lines occupying a row while their textContent stays empty. */
.mdl {
  display: inline-block;
  min-height: 1.75em;
  vertical-align: top;
}
.mdl::before {
  content: counter(ln);
  counter-increment: ln;
  display: inline-block;
  width: 3.2rem;
  padding-right: 1.1rem;
  text-align: right;
  color: var(--fg-faint);
  opacity: .55;
  user-select: none;
  -webkit-user-select: none;
  border-right: 1px solid var(--rule-soft);
  margin-right: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* Line-by-line cascade. Capped so a long CV doesn't crawl in. */
.revealing .mdl {
  animation: mdl .3s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: calc(min(var(--i), 46) * 16ms);
}
@keyframes mdl {
  from { opacity: 0; transform: translateY(-3px); filter: blur(1.5px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------- tokens --- */
.t-fence    { color: var(--fg-faint); }
.t-key      { color: var(--accent); }
.t-punct    { color: var(--fg-faint); }
.t-val      { color: var(--fg); }
.t-hash     { color: var(--accent); opacity: .8; }
.t-head     { color: var(--fg-strong); font-weight: 600; }
.t-bullet   { color: var(--accent); }
.t-strong   { color: var(--fg-strong); font-weight: 600; }
.t-em       { color: var(--fg-dim); font-style: italic; }
.t-quote    { color: var(--fg-dim); }
.t-code     { color: var(--live); }
.t-linktext { color: var(--fg); }
.t-url      { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-dim); }

.mdnote {
  color: var(--fg-faint);
  font-size: .8rem;
  margin-top: 1rem;
}
.mdnote code {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 .3rem;
  color: var(--fg-dim);
}

@media (max-width: 34rem) {
  .mdsrc { font-size: .74rem; }
  .mdl::before { width: 2rem; padding-right: .6rem; margin-right: .6rem; }
  .kbd-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pane, .revealing .mdl, .revealing .sweep { animation: none; }
}

/* Printing always uses the rendered CV, never the source view. */
@media print {
  .pane-md { display: none !important; }
  .pane-rendered { display: block !important; }
  .cvbar, .editor-bar { display: none !important; }
}

/* ---------------------------------------------------- certifications --- */
.certgroup {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--fg-faint);
  font-weight: 500;
  margin: 1.75rem 0 .6rem;
}
.certgroup:first-of-type { margin-top: 0; }
.certgroup .n { letter-spacing: .04em; opacity: .7; }

.certs { list-style: none; margin: 0; padding: 0; }
.certs li {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0 1.25rem;
  align-items: baseline;
  padding: .45rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.certs li:first-child { border-top: 1px solid var(--rule-soft); }

.cdate {
  color: var(--fg-faint);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cname { color: var(--fg); }
.ctrack {
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 .4rem;
  font-size: .72rem;
  color: var(--fg-dim);
  background: var(--bg-sink);
  white-space: nowrap;
}
/* ODC is the current platform — mark it so the newer credentials read first. */
.ctrack:not(:empty) { letter-spacing: .04em; }

@media (max-width: 34rem) {
  .certs li { grid-template-columns: 1fr auto; }
  .cdate { grid-column: 1; grid-row: 2; }
  .cname { grid-column: 1 / -1; }
  .ctrack { grid-column: 2; grid-row: 2; }
}

/* --------------------------------------------------- champion banner --- */
.champion {
  margin: 0 0 2rem;
  max-width: 34rem;
}
.champion a { border: 0; display: block; }
.champion a:hover { background: none; }
.champion img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  /* The badge is a brand asset, so it is shown unaltered — only the frame
     and the caption tie it back into the page. */
}
.champion a:hover img { border-color: var(--accent-dim); }
.champion figcaption {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--fg-dim);
  letter-spacing: .02em;
}
.champion figcaption::before { content: '◆ '; color: var(--accent); font-size: .85em; }

@media print {
  /* Keep it, but small — a CV printout should not spend a third of a page
     on a banner. */
  .champion { max-width: 16rem; }
}

/* Pipe separators inside a headline — present but recessive. */
.facts .sep,
.bio .sep {
  color: var(--fg-faint);
  opacity: .6;
  margin: 0 .5rem;
}

/* Client / location line under a job's employer. */
.job .ctx {
  margin: -.6rem 0 .8rem;
  color: var(--fg-faint);
  font-size: .8rem;
  max-width: 60ch;
}

/* About me reads as prose, but a touch tighter than an article. */
.prose.about { max-width: 66ch; font-size: .95rem; }
.prose.about > * + * { margin-top: 1rem; }

/* Languages reuse the certification rows; they have no date column. */
.certs li .cdate:empty { min-height: 1px; }
