/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Color system ───────────────────────────────── */
body.light {
  --bg:           #FAFAF8;
  --bg-secondary: #EDEAE0;
  --text:         #1a1a18;
  --text-muted:   #5F5E5A;
  --text-faint:   #888780;
  --amber:        #B07D3A;
  --amber-light:  #FAEEDA;
  --border:       rgba(0, 0, 0, 0.1);
  --border-faint: rgba(0, 0, 0, 0.06);
}

body.dark {
  --bg:           #16150F;
  --bg-secondary: #2A2820;
  --text:         #EDE8DC;
  --text-muted:   #7A7568;
  --text-faint:   #5F5E5A;
  --amber:        #D4A056;
  --amber-light:  #2A2010;
  --border:       rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.04);
}

/* ─── Base ───────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ─── Layout ─────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 48px 0;
  border-bottom: 0.5px solid var(--border);
}

/* ─── Section label (eyebrow) ────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* ─── Logo mark ──────────────────────────────────── */
.logo-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.03em;
}
.logo-brace {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1em;
  color: var(--amber);
  font-weight: 400;
}
.logo-letters {
  font-family: 'DM Serif Display', serif;
  font-size: 1em;
  color: var(--text);
}
.logo-letters em {
  font-style: italic;
}

/* ─── Nav ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-logo {
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}

.theme-toggle {
  color: var(--text-muted);
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* light mode: show moon, hide sun */
body.light .icon-sun  { display: none; }
body.light .icon-moon { display: block; }

/* dark mode: show sun, hide moon */
body.dark .icon-moon { display: none; }
body.dark .icon-sun  { display: block; }

/* ─── Hero ───────────────────────────────────────── */
#hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.hero-left {
  padding-right: 48px;
}

.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-name em {
  font-style: italic;
  color: var(--amber);
  display: block;
}

.hero-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 360px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 0.5px solid var(--text);
  color: var(--text);
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
  cursor: pointer;
  background: none;
}
.btn:hover {
  background: var(--bg-secondary);
}

/* ─── Hero stats ─────────────────────────────────── */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 0.5px solid var(--border);
  padding-left: 48px;
}

.stat {
  text-align: right;
  padding: 20px 0;
  border-top: 0.5px solid var(--border);
}
.stat:last-child {
  border-bottom: 0.5px solid var(--border);
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ─── About ──────────────────────────────────────── */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}
.about-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── Experience ─────────────────────────────────── */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-entry {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--border);
}
.exp-entry:first-child {
  border-top: 0.5px solid var(--border);
}

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-role {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.exp-company {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--amber);
}

.exp-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 3px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.exp-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* ─── Tags / tech pills ──────────────────────────── */
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 0.5px solid var(--border);
  border-radius: 3px;
  color: var(--text-faint);
}

/* ─── Education ──────────────────────────────────── */
.edu-list {
  display: flex;
  flex-direction: column;
}

.edu-entry {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
}
.edu-entry:first-child {
  border-top: 0.5px solid var(--border);
}

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.edu-degree {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.edu-school {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--amber);
}

.edu-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 3px;
}

/* ─── Footer / Contact ───────────────────────────── */
footer {
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-status {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 24px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  nav { padding: 16px 20px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-left { padding-right: 0; }
  .hero-right {
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }
  .stat { text-align: left; }

  .nav-links { display: none; }
}
