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

:root {
  --bg: #f5f2ed;
  --surface: #efeae3;
  --border: #ddd8d0;
  --text: #1a1814;
  --text-muted: #7a7368;
  --text-light: #a09890;
  --accent: #2d5a27;
  --accent-hover: #3d7a35;
  --sidebar-w: 64px;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  z-index: 100;
}

.sidebar-logo {
  margin-bottom: 36px;
}

.logo-link {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  display: block;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.logo-link:hover {
  border-color: var(--text-muted);
  background: var(--bg);
}

.sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    background 0.15s,
    color 0.15s;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-icon:hover {
  background: var(--border);
  color: var(--text);
}

.nav-icon.active {
  color: var(--text);
}

.nav-icon.active svg {
  stroke-width: 2.25;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition:
    color 0.15s,
    background 0.15s;
}

.social-icon svg {
  width: 15px;
  height: 15px;
}

.social-icon:hover {
  color: var(--text);
  background: var(--border);
}

/* ===========================
   CONTENT AREA
=========================== */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  max-width: 740px;
  padding: 72px 56px 100px;
}

/* ===========================
   HOME - HERO
=========================== */
.hero {
  margin-bottom: 56px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  gap: 10px;
}

.hero-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.hero-icon svg {
  width: 16px;
  height: 16px;
}

.hero-icon:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface);
}

/* ===========================
   HOME - HIGHLIGHTS
=========================== */
.highlights {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.highlight-item {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: baseline;
}

.highlight-label {
  color: var(--text-light);
  font-weight: 400;
  min-width: 130px;
  flex-shrink: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-val {
  color: var(--text-muted);
  line-height: 1.5;
}

.highlight-val a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.highlight-val a:hover {
  border-color: var(--accent);
}

/* ===========================
   HOME - FEATURED PROJECTS
=========================== */
.featured-projects {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.more-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
  transition: color 0.15s;
}

.more-link:hover {
  color: var(--text);
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-radius: 0;
  cursor: pointer;
}

.project-row:first-child {
  border-top: 1px solid var(--border);
}

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

.project-row:hover .project-row-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.project-row-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  min-width: 110px;
  transition: color 0.15s;
}

.project-row-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  font-weight: 300;
}

.project-row-arrow {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
  margin-bottom: 48px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.page-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 480px;
}

/* ===========================
   PROJECTS PAGE
=========================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.project-card:first-child {
  border-top: 1px solid var(--border);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.project-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.project-card-tag {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.project-card-link {
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
  margin-top: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.project-card-link:hover {
  color: var(--accent-hover);
}

.project-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 14px;
}

.project-card-impact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.impact-label {
  font-weight: 500;
  color: var(--text);
  margin-right: 6px;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-tech span {
  font-size: 0.75rem;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===========================
   ABOUT PAGE
=========================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 400;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
}

.about-facts {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.fact-row {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.fact-label {
  color: var(--text-light);
  min-width: 90px;
  flex-shrink: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fact-val {
  color: var(--text-muted);
}

.about-image-slot {
  position: sticky;
  top: 40px;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder span {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

.about-image-slot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}

.contact-row:first-child {
  border-top: 1px solid var(--border);
}

.contact-row:hover .contact-row-label {
  color: var(--accent);
}

.contact-row:hover .contact-row-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.contact-row-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-row-icon svg {
  width: 16px;
  height: 16px;
}

.contact-row-info {
  flex: 1;
}

.contact-row-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  transition: color 0.15s;
}

.contact-row-handle {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
}

.contact-row-arrow {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

/* ===========================
   FADE-IN ANIMATION
=========================== */
.content {
  animation: fadeUp 0.4s ease both;
}

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

/* ===========================
   ABOUT - UNIFIED FONT
=========================== */
.about-lead,
.about-text p {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
}

/* ===========================
   HAMBURGER & MOBILE MENU
=========================== */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 8px;
  transition: color 0.15s;
  letter-spacing: -0.01em;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 700px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .content {
    margin-left: 0;
    padding: 40px 24px 60px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image-slot {
    position: static;
    order: -1;
    max-width: 180px;
  }

  .hero-name {
    font-size: 1.9rem;
  }

  .project-row-desc {
    display: none;
  }
}
