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

:root {
  --ink:     #1a1917;
  --muted:   #7a7570;
  --accent:  #9c7c5a;
  --bg:      #faf8f5;
  --border:  #e4ddd6;
  --sidebar: 320px;
  --font:    'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
}

/* ─── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar);
  height: 100vh;
  border-right: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.logo {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.35;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

nav a {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  width: auto;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--ink);
}

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

.sidebar-footer {
  margin-top: auto;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── Main ─────────────────────────────────────────────────────── */
main {
  margin-left: var(--sidebar);
  flex: 1;
  max-width: 1100px;
  padding: 6rem 6rem 8rem 7rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--ink);
}


/* ─── About ────────────────────────────────────────────────────── */
.about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.about p {
  font-size: 1rem;
  line-height: 1.9;
  color: #3a3733;
  max-width: 860px;
}

/* ─── Contact ──────────────────────────────────────────────────── */
.contact {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-block p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a3733;
}

.contact-block a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

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

/* ─── Main Footer ──────────────────────────────────────────────── */
.main-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2rem;
}

.main-footer a {
  color: var(--muted);
  text-decoration: none;
}

.main-footer a:hover {
  color: var(--ink);
}

/* ─── Reveal Animation ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 700px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-content: space-between;
  }

  .sidebar-footer {
    display: none;
  }

  nav {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 0;
  }

  main {
    margin-left: 0;
    padding: 3rem 1.5rem 5rem;
  }
}
