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

/* ---------- VARIABLES ---------- */
:root {
  --sage: #c1440e;         /* dominant warm rust/burnt-orange */
  --sage-light: #f4c9a8;
  --sage-dark: #7a2705;
  --accent: #e8a33d;       /* warm gold/amber pop */
  --accent-dark: #b9781f;
  --ink: #1c1c1e;
  --body-text: #3a3a3c;
  --muted: #6e6e73;
  --bg: #fdf6f1;           /* warm cream background */
  --white: #ffffff;
  --radius: 0px;          /* fully square, brutalist */
  --border-w: 2px;
}

/* ---------- BASE ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 17px;
}

/* ---------- NAVBAR ---------- */
nav {
  background: var(--sage);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  margin: 18px 40px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 14px;
  z-index: 100;
  box-shadow: none;
}

.nav-brand {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  padding: 18px 0;
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 10px 18px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: white;
  color: var(--sage-dark);
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 64px 40px 16px;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.8rem, 7.5vw, 4.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-divider {
  width: 70px;
  height: 4px;
  background: var(--accent);
  border-radius: 0;
  margin: 22px auto 0;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 40px 80px;
}

/* homepage grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

/* ---------- TEXT ---------- */
.about-text h2,
.main-content h2 {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.about-text p,
.main-content p,
.main-content li {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.main-content a,
.about-text a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.main-content a:hover,
.about-text a:hover {
  color: var(--accent-dark);
}

/* ---------- TAGS ---------- */
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.tag {
  background: var(--sage-light);
  color: var(--sage-dark);
  border: var(--border-w) solid var(--sage-dark);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: 0.15s;
}

.tag:hover {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--ink);
}

/* ---------- PHOTO ---------- */
.about-photo {
  position: sticky;
  top: 90px;
}

.profile-photo {
  width: 100%;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: none;
}

.photo-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- SOCIAL ---------- */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: white;
  color: var(--sage-dark);
  font-size: 1.1rem;
  border: var(--border-w) solid var(--ink);
  text-decoration: none;
  transition: 0.15s;
  box-shadow: none;
}

.social-icons a:hover {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- PROJECT CARDS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.project-card {
  background: white;
  padding: 24px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--accent);
}

.project-card img {
  width: 100%;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.project-card h3 {
  font-family: 'Lora', serif;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ---------- FOOTER ---------- */
footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: var(--border-w) solid var(--ink);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- ANIMATION ---------- */
.fade-in {
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  nav {
    margin: 12px 16px;
    padding: 0 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 40px 20px 12px;
  }

  .main-content {
    padding: 0 20px 60px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    position: static;
  }

  .profile-photo {
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
}
/* ---------- PROJECTS PAGE LAYOUT ---------- */
.projects-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}

.projects-sidebar {
  position: sticky;
  top: 100px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  background: white;
}

.projects-sidebar h3 {
  font-family: 'Lora', serif;
  margin-bottom: 20px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.projects-sidebar ul {
  list-style: none;
  padding: 0;
}

.projects-sidebar li {
  margin-bottom: 10px;
}

.projects-sidebar a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 0.15s;
}

.projects-sidebar a:hover {
  color: var(--sage);
}

.project-section {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: var(--border-w) solid var(--ink);
}

.project-section h2 {
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .projects-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .projects-sidebar {
    position: static;
  }
}
.project-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  margin: 12px 0 18px 0;
  display: block;
}
