/* ============================================================
   THEME: minimalist, monochrome. Edit these to restyle.
   ============================================================ */
:root {
  --bg: #333333;         /* gray background */
  --ink: #ffffff;        /* main text */
  --ink-soft: #b8b8b8;   /* secondary text */
  --rule: #4d4d4d;       /* hairlines */
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #8a8a8a;
  text-underline-offset: 3px;
}

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

/* ---------- Banner ---------- */
.banner { margin-bottom: 2.5rem; }

.banner img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Nav ---------- */
.nav nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.nav a.active { color: var(--ink); font-weight: 500; }

/* ---------- Intro ---------- */
.intro h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.intro p + p { margin-top: 1rem; }

.intro strong { font-weight: 500; }

.intro-links { display: flex; gap: 1.25rem; }

/* ---------- Sections ---------- */
section { margin-bottom: 4rem; }

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.875rem;
  margin: -1rem 0 1.25rem;
}

/* ---------- Entries (experience, projects, education) ---------- */
.item { margin-bottom: 1.9rem; }

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

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.item-title { font-weight: 500; }

.item-date {
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.item-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--ink-soft);
}

/* ---------- Project tags ---------- */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.tags span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05rem 0.5rem;
}

/* ---------- Honors ---------- */
.honors {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

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

/* ---------- Books ---------- */
.books {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

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

.books em { color: var(--ink); font-style: italic; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-copy { margin-top: 0.35rem; }

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .page { padding-top: 2rem; }
  .nav nav { margin-bottom: 3rem; }
  .item-head { flex-direction: column; gap: 0; }
  .item-sub { flex-direction: column; gap: 0; }
}
