/* ---------------------------------------------
   tokens
--------------------------------------------- */
:root {
  --bg: #ffffff;
  --surface: #f4f4f1;
  --ink: #16181b;
  --ink-soft: #686d63;
  --accent: #1f6f54;
  --accent-soft: #e4ede9;
  --amber: #8a6d1f;
  --slate: #52616b;
  --rule: #e2e2dd;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dim { color: var(--ink-soft); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------
   header / nav
--------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}

.prompt-home {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.prompt-home:hover { text-decoration: none; }
.prompt-user { color: var(--accent); }
.prompt-tilde { color: var(--ink-soft); }

.site-nav {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
  position: relative;
}
.site-nav a::before {
  content: "";
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.site-nav a.active::before {
  content: "> ";
  color: var(--accent);
}

/* ---------------------------------------------
   main / hero
--------------------------------------------- */
main {
  flex: 1;
  padding: 48px 0 56px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.hero-intro {
  overflow: hidden;
}

.headshot {
  width: 183px;
  height: 252px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--surface);
  float: right;
  margin: 3px 0 16px 30px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.bio p {
  margin: 0 0 16px;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}
.bio strong { color: var(--ink); }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: lowercase;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.interests { margin: 36px 0; }

.section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.hero-links {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-ghost {
  border-color: var(--rule);
  color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* ---------------------------------------------
   page header (cv / timeline)
--------------------------------------------- */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-size: 1.8rem;
  margin: 0;
}
.print-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cv-embed {
  position: relative;
  width: 100%;
  padding-top: 129.4%; /* US letter aspect ratio */
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.cv-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media print {
  .site-header, .site-footer, .print-link { display: none; }
  body { background: #fff; }
}

/* ---------------------------------------------
   CV entries
--------------------------------------------- */
.cv-section { margin: 40px 0; }
.cv-section:last-child { margin-bottom: 0; }

.entry {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--rule);
}
.entry:last-child { border-bottom: none; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-title {
  font-weight: 600;
  font-size: 15.5px;
}

.entry-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.entry-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

.entry-details {
  margin: 10px 0 0;
  padding-left: 18px;
}
.entry-details li {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  font-size: 14px;
}
.skill-cat {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.simple-list {
  margin: 0;
  padding-left: 18px;
}
.simple-list li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ---------------------------------------------
   Timeline
--------------------------------------------- */
.timeline-list {
  margin: 0;
  padding-left: 20px;
}
.timeline-list li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.timeline-list li:last-child { margin-bottom: 0; }

.tl-date {
  margin-right: 8px;
  white-space: nowrap;
}

/* ---------------------------------------------
   footer
--------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-links .sep { color: var(--rule); margin: 0 6px; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cursor-blink { animation: none; }
  html { scroll-behavior: auto; }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ---------------------------------------------
   responsive
--------------------------------------------- */
@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .skill-row { grid-template-columns: 1fr; gap: 2px; }
}
