/* ============================================================
   ctverak.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --text: #c8c8c8;
  --text-strong: #e8e8e8;
  --muted: #777;
  --accent: #d97757;
  --accent-dim: #b86445;
  --border: #1f1f1f;
  --code-bg: #161616;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  margin-bottom: 72px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.headshot {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  filter: grayscale(15%);
}

.hero-meta {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

.hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.hero .tagline {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
}

.hero .bio {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.75;
}

.hero .links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12px;
}

.hero .links a {
  color: var(--accent);
  text-decoration: none;
}

.hero .links a:hover {
  color: var(--text-strong);
}

.hero .links a.muted {
  color: var(--muted);
}

.hero .links a.muted:hover {
  color: var(--text);
}

/* ============================================================
   Section labels
   ============================================================ */

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 64px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Projects (accordion via <details>)
   ============================================================ */

.project {
  border-bottom: 1px solid var(--border);
}

.project summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
}

.project summary::-webkit-details-marker {
  display: none;
}

.project summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.15s ease;
  width: 12px;
  text-align: right;
}

.project[open] summary::after {
  content: "\2212"; /* minus */
  color: var(--accent);
}

.project summary:hover {
  color: var(--text-strong);
}

.project summary:hover::after {
  color: var(--accent);
}

.project .title {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.project .dates {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

.project[open] summary .title {
  color: var(--text-strong);
}

.project-body {
  padding: 4px 0 32px;
}

.project-body .meta {
  font-style: italic;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 18px;
}

.project-body p {
  margin-bottom: 14px;
}

.project-body .label {
  color: var(--accent);
  font-weight: 500;
}

.project-body .result {
  color: var(--text-strong);
}

.project-body .refs {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.project-body .refs a {
  color: var(--accent);
}

code {
  font-family: inherit;
  font-size: 0.95em;
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-strong);
}

/* ============================================================
   Assets
   ============================================================ */

.assets {
  margin-top: 28px;
}

.assets img,
.assets video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-top: 20px;
  background: #000;
}

.assets .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.assets .row img,
.assets .row video {
  margin-top: 0;
}

.assets .caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0 2px;
  font-style: italic;
}

/* SVGs may render dark on dark; lift their background. */
.assets img[src$=".svg"] {
  background: #f4f4f4;
}

/* ============================================================
   Education
   ============================================================ */

.education-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.education-entry:last-child {
  border-bottom: none;
}

.education-entry .row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.education-entry .school {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 12px;
}

.education-entry .degree {
  color: var(--text);
  font-size: 12px;
}

.education-entry .meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.education-entry .meta .years {
  color: var(--text);
  margin-right: 10px;
}

/* ============================================================
   Skills
   ============================================================ */

.skills-list {
  padding: 20px 0 0;
  list-style: none;
}

.skills-list li {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.65;
}

.skills-list .cat {
  color: var(--accent);
  font-weight: 500;
  margin-right: 6px;
}

/* ============================================================
   Links
   ============================================================ */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 87, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--text-strong);
  text-decoration-color: var(--text-strong);
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* ============================================================
   Selection
   ============================================================ */

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

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 600px) {
  main {
    padding: 48px 22px 56px;
  }

  body {
    font-size: 11px;
  }

  .hero {
    margin-bottom: 56px;
  }

  .hero-top {
    gap: 18px;
    margin-bottom: 22px;
  }

  .headshot {
    width: 128px;
    height: 128px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .hero .links {
    gap: 16px;
    font-size: 11px;
  }

  .section-label {
    margin-top: 48px;
  }

  .project summary {
    gap: 12px;
    padding: 18px 0;
  }

  .project .dates {
    font-size: 12px;
  }

  .assets .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* deploy bump 1777406648 */
