/* demcho.net — CV page on Cathode tokens (same system as bentrules.com). */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 40px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-mark {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  font-size: 14px;
  color: var(--text-strong);
  text-transform: uppercase;
}
.topbar-mark .tick { color: var(--brand); }
.topbar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.topbar-links a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border-mute); }
.topbar-links a:hover { color: var(--brand); border-color: currentColor; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 var(--space-3);
  background: transparent;
  border: var(--border-2) solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover { color: var(--text-strong); background: var(--bg-sunk); }
.btn-ghost:focus-visible { outline: none; box-shadow: var(--focus-shadow); }
[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }

/* ---- Identity --------------------------------------------------------- */
.identity { display: flex; flex-direction: column; gap: 10px; }
.identity .eyebrow-brand {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--text-xs);
  color: var(--brand);
  font-weight: var(--weight-semi);
}
.identity h1 {
  margin: 0;
  font-size: clamp(38px, 9vw, 61px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-strong);
}
.identity .role {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-muted);
  margin: 0;
}
.identity .contact {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.identity .contact a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border-mute); }
.identity .contact a:hover { color: var(--brand); border-color: currentColor; }

.summary { margin: 0; max-width: 62ch; color: var(--text-body); }

/* ---- Sections --------------------------------------------------------- */
.cv-section { display: flex; flex-direction: column; gap: 16px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: var(--border-2) solid var(--brand);
  padding-bottom: 10px;
}
.section-head .eyebrow { font-weight: var(--weight-semi); }

/* ---- Roles ------------------------------------------------------------ */
.role-entry {
  background: var(--bg-raised);
  border: var(--border-2) solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.role-head h3 { margin: 0; font-size: clamp(19px, 3vw, 24px); color: var(--text-strong); }
.role-head .dates {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  white-space: nowrap;
}
.role-entry .org { font-family: var(--font-mono); font-size: 13px; color: var(--brand); }
.role-entry .progression {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.role-entry ul { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.role-entry li { font-size: var(--text-sm); line-height: 1.55; color: var(--text-body); }

/* Placeholder blocks awaiting real content */
.todo {
  border: 1px dashed var(--brand);
  background: var(--brand-tint);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---- Skills / education ------------------------------------------------ */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.edu { display: flex; flex-direction: column; gap: 4px; }
.edu h3 { margin: 0; font-size: var(--text-lg); }
.edu .detail { font-size: var(--text-sm); color: var(--text-muted); }

/* ---- Footer ------------------------------------------------------------ */
.site-foot {
  margin-top: auto;
  border-top: var(--border-2) solid var(--border-strong);
  padding-top: clamp(16px, 3vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.site-foot a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border-mute); }
.site-foot a:hover { color: var(--brand); border-color: currentColor; }

/* ---- Print: clean paper resume ----------------------------------------- */
@media print {
  :root, [data-theme="dark"] { --bg-page: #fff; --bg-raised: #fff; }
  body { background-image: none !important; }
  .topbar, .site-foot, .todo { display: none !important; }
  .role-entry { border: none; box-shadow: none; padding: 0; }
  .section-head { border-color: #000; }
  .shell { max-width: none; padding: 0; gap: 20px; }
  a { border: none !important; color: inherit !important; }
}
