:root {
  --bg: #12110f;
  --card: #1a1815;
  --text: #eae6df;
  --muted: #9a938a;
  --accent: #e08a63;
  --border: #2b2823;
  --rule: #22201c;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --card: #ffffff;
    --text: #1b1917;
    --muted: #6b645c;
    --accent: #b0522f;
    --border: #e6e1d8;
    --rule: #ece8e0;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 4rem 1.25rem 4rem;
}

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

.wrap {
  width: 100%;
  max-width: 580px;
  text-align: left;
}

/* ---- header ---- */

header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}

.id {
  min-width: 0;
}

h1 {
  margin: 0 0 0.2rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---- bio ---- */

.bio {
  margin-bottom: 1.75rem;
}

.bio p {
  margin: 0 0 1rem;
  line-height: 1.68;
  color: var(--muted);
  font-size: 0.98rem;
}

.bio p:first-child {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.bio .callout {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ---- links ---- */

.links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-card:hover,
.link-card:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.link-card svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---- sections ---- */

.block {
  margin-bottom: 2.75rem;
}

.block:last-of-type {
  margin-bottom: 2rem;
}

.block h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.group {
  margin-bottom: 1.75rem;
}

.group:last-child {
  margin-bottom: 0;
}

.company {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

/* dates and spans in mono — the one deliberate flourish */
.span {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 0.5rem;
  letter-spacing: -0.01em;
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.25rem 0 0.85rem;
}

/* ---- timeline ---- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.timeline:has(li:only-child) {
  border-left-color: transparent;
}

.timeline li {
  position: relative;
  padding: 0 0 1rem 1.15rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.role {
  font-weight: 600;
  font-size: 0.95rem;
}

.meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.79rem;
  margin-top: 0.15rem;
  letter-spacing: -0.01em;
}

/* ---- highlights ---- */

.highlights {
  margin: 0.9rem 0 0 1.15rem;
  padding: 0 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.highlights li {
  margin-bottom: 0.45rem;
}

.highlights li::marker {
  color: var(--border);
}

.highlights li:last-child {
  margin-bottom: 0;
}

/* ---- tools ---- */

.tools {
  margin: 0;
}

.tools dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.tools dd {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tools dd:last-child {
  margin-bottom: 0;
}

.tools dd + dt {
  margin-top: 0;
}

.tools .past {
  color: var(--muted);
}

/* ---- footer ---- */

footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  body { padding: 2.5rem 1.1rem 3rem; }
  header { gap: 0.9rem; }
  .avatar { width: 68px; height: 68px; }
  h1 { font-size: 1.45rem; }
  .tagline { font-size: 0.86rem; }
  .bio p:first-child { font-size: 1.05rem; }
  .links { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
