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

/* ─── Variables ──────────────────────────────────── */
:root {
  --charcoal:   #37392e;
  --blue-slate: #19647e;
  --teal:       #28afb0;
  --dust-grey:  #ddcecd;
  --parchment:  #eee5e5;

  --bg:         #2a2c23;
  --bg-raised:  #37392e;
  --bg-card:    #404539;
  --text:       #eee5e5;
  --text-muted: #ddcecd;
  --accent:     #28afb0;
  --accent-dim: #19647e;
  --border:     rgba(40, 175, 176, 0.18);
  --border-dim: rgba(221, 206, 205, 0.1);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
	display: inline-block;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.3;
}

/* ─── Container ──────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Nav ────────────────────────────────────────── */
nav {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  transition: all 0.25s;
}

/* ─── Hero (index.html) ──────────────────────────── */
.hero {
  display: flex;
  padding: 5rem 2rem 2rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-name {
  font-family: 'Courier New', monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: bold;
  color: var(--parchment);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* ─── Section base ───────────────────────────────── */
.section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-dim);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-num {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.6;
}

.section-header h2 {
  font-size: 1.6rem;
  color: var(--text);
}

/* ─── About section (index.html) ─────────────────── */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
	margin-top: -1.5rem;
}

.focus-areas h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent-dim);
  color: var(--teal);
  border-radius: 2px;
  letter-spacing: 0.03em;
}

/* ─── Page hero (projects, resume) ───────────────── */
.page-hero {
  padding: 4rem 0 0;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Projects page ──────────────────────────────── */
.project-list {
  display: flex;
  flex-direction: column;
  padding: 3rem 0;
}

.project-row {
  border-left: 3px solid var(--accent-dim);
  border-top: 1px solid var(--border-dim);
  padding: 1.75rem 0 1.75rem 1.5rem;
  transition: border-left-color 0.2s;
}

.project-row:last-child {
  border-bottom: 1px solid var(--border-dim);
}

.project-row:hover {
  border-left-color: var(--accent);
}

.project-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  gap: 1rem;
}

.project-row-header h3 {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  color: var(--text);
}

.project-row-header .date {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-hook {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  max-width: 760px;
}

.project-bullets {
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(25, 100, 126, 0.3);
  color: var(--teal);
  border-radius: 2px;
}

.project-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.project-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ─── Resume page ────────────────────────────────── */
.resume-wrapper {
  padding-bottom: 4rem;
}

.resume-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.resume-header-main {
  flex: 1;
}

.resume-header h1 {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.resume-header .resume-title {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resume-contact a {
  color: var(--text-muted);
}

.resume-contact a:hover {
  color: var(--accent);
}


.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Courier New', monospace;
}

.btn:hover {
  background: var(--accent);
  color: var(--charcoal);
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section > h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--accent-dim);
}

.resume-item {
  margin-bottom: 1.75rem;
}

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

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.resume-item-header h3 {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.resume-item-header .date,
.activity-list .date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

.resume-item .org {
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.resume-item ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resume-item ul li {
  margin-bottom: 0.25rem;
}

.activity-list {
  list-style: none;
  padding-left: 0;
}

.activity-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.resume-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 680px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-group {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.skill-group h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  min-width: 160px;
  flex-shrink: 0;
}

.skill-list {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text);
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border-dim);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-dim);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 0.1rem;
  }

  .resume-contact {
    gap: 0.5rem;
  }
}

/* ─── Print (resume.html) ────────────────────────── */
@media print {
  :root {
    --bg:         #ffffff;
    --bg-raised:  #ffffff;
    --bg-card:    #ffffff;
    --text:       #1a1a1a;
    --text-muted: #444444;
    --accent:     #19647e;
    --accent-dim: #19647e;
    --border:     #cccccc;
    --border-dim: #cccccc;
  }

  nav,
  .btn,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #1a1a1a;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .resume-header {
    padding-top: 0;
  }
}
