/* ============================================================
   DESIGN TOKENS
   Accent options kept at the bottom as commented-out swaps:
   - Warm amber / terracotta
   - Dusty teal / slate
   - Deep olive / moss  ← ACTIVE
============================================================ */
:root {
  /* — Deep Olive / Moss — */
  --bg:            #F8F5F0;
  --bg-alt:        #F0EBE1;
  --bg-card:       #EAE4D8;
  --text:          #1C1C1C;
  --text-muted:    #6B6560;
  --text-light:    #A49990;
  --accent:        #5C6B2E;
  --accent-dark:   #3D4A1F;
  --accent-hover:  #4A5624;
  --accent-pale:   #D4DEB8;
  --border:        #DDD8CF;
  --border-light:  #EAE5DC;

  /* Warm amber / terracotta — swap in to try:
  --accent:        #C4622D;
  --accent-dark:   #8B4513;
  --accent-hover:  #A3511F;
  --accent-pale:   #F2D5C0;
  */

  /* Dusty teal / slate — swap in to try:
  --accent:        #4A7C7E;
  --accent-dark:   #2C5F61;
  --accent-hover:  #3A6567;
  --accent-pale:   #C0D9DA;
  */

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:         64px;
  --container:     1100px;
  --container-mid: 820px;
  --section-pad:   100px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ============================================================
   LAYOUT
============================================================ */
.section { padding: var(--section-pad) 24px; }
.section-alt { background-color: var(--bg-alt); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section-inner--mid {
  max-width: var(--container-mid);
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background-color: rgba(248, 245, 240, 0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background-color: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1.05rem;
  border-radius: 4px;
  font-size: 0.85rem !important;
  transition: background-color 0.2s !important;
}
.nav-cta:hover { background-color: var(--accent-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 24px 100px;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s ease both;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-bio {
  max-width: 500px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   ABOUT
============================================================ */
.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  max-width: 680px;
}
.about-content p:last-child { margin-bottom: 0; }
.about-content strong { color: var(--text); font-weight: 600; }

/* ============================================================
   EXPERIENCE  —  TIMELINE
============================================================ */
.timeline { position: relative; padding-left: 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background-color: var(--border);
}

.timeline-item {
  display: flex;
  gap: 1.75rem;
  padding-bottom: 3.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  flex-shrink: 0;
  width: 17px;
  padding-top: 5px;
  z-index: 1;
}

.timeline-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 3px solid var(--bg);
  position: relative;
  z-index: 1;
}

.section-alt .timeline-dot { border-color: var(--bg-alt); }

.timeline-body { flex: 1; min-width: 0; }

.timeline-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.timeline-company {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.timeline-body ul {
  padding-left: 1.1rem;
  list-style: disc;
}
.timeline-body li {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.55rem;
}
.timeline-body li strong { color: var(--text); font-weight: 600; }

/* ============================================================
   PROJECTS
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(40, 35, 20, 0.1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}
.project-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.project-link {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
  padding-top: 2px;
}
.project-link:hover { color: var(--accent-dark); transform: translate(2px, -2px); }

.project-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--accent-pale);
  color: var(--accent-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

/* ============================================================
   SKILLS
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
}

.skill-group h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-tags span {
  font-size: 0.84rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   EDUCATION
============================================================ */
.education-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  background-color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.education-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.education-school {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.education-meta { text-align: right; flex-shrink: 0; }
.education-date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.education-gpa {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-inner {
  text-align: center;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.contact-sub {
  max-width: 460px;
  margin: 0 auto 2.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.contact-links a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-links a:hover { border-color: var(--accent); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 1.75rem 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BLOG — shared nav reuse, blog-specific layout
============================================================ */
.blog-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.blog-hero {
  padding: 70px 24px 55px;
  border-bottom: 1px solid var(--border-light);
}
.blog-hero-inner { max-width: var(--container); margin: 0 auto; }
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  color: var(--text);
  margin-bottom: 0.6rem;
}
.blog-hero p { color: var(--text-muted); font-size: 1rem; }

.blog-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.blog-post-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.blog-post-item:first-child { border-top: 1px solid var(--border-light); }

.blog-post-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  padding-top: 5px;
  letter-spacing: 0.02em;
}

.blog-post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.blog-post-body h2 a { color: var(--text); transition: color 0.2s; }
.blog-post-body h2 a:hover { color: var(--accent); }

.blog-post-excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.blog-post-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--accent-pale);
  color: var(--accent-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.read-time {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid   { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 680px) {
  :root { --section-pad: 70px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background-color: var(--bg);
    padding: 1.5rem 24px 2rem;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }

  .projects-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 6px; }
  .timeline-marker  { width: 13px; }
  .timeline-dot     { width: 13px; height: 13px; }

  .education-card { flex-direction: column; gap: 1rem; }
  .education-meta { text-align: left; }

  .blog-post-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .blog-post-date { padding-top: 0; }
}
