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

:root {
  --black: #0d0d0d;
  --white: #fafafa;
  --gray: #777;
  --light-gray: #e4e4e4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.55; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  flex: 1;
  justify-content: center;
}

.nav-links a { opacity: 0.65; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* Nav social icons — bordered buttons like Ranga's */
.nav-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--black);
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-social a:hover { opacity: 1; }
.nav-social a.no-link { cursor: default; }
.nav-social a.no-link:hover { opacity: 0.75; }
.nav-social svg { width: 15px; height: 15px; fill: var(--black); }

/* ── SOCIAL ICONS ── */
.social-links {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.social-links a:hover { opacity: 0.9; }
.social-links a.no-link { cursor: default; }
.social-links a.no-link:hover { opacity: 0.45; }
.social-links svg { width: 17px; height: 17px; fill: var(--black); }

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5rem;
}

footer span {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.06em;
}

/* ── HOME PAGE ── */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 4rem 4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.1) 100%);
}

.home-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1.2rem;
  max-width: 800px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.home-tagline {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  line-height: 1.85;
  max-width: 580px;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.home-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 4rem 4rem;
}

.home-divider {
  width: 40px;
  height: 1px;
  background: var(--light-gray);
  margin-bottom: 2rem;
}

/* ── ABOUT PAGE ── */
.about-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 6rem;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 110px;
}

.about-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-text .about-role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.about-text p {
  margin-bottom: 1.4rem;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #2a2a2a;
}

.about-text p:last-of-type { margin-bottom: 2.5rem; }

.about-social { margin-top: 0.5rem; }

/* ── MUSINGS PAGE ── */
.musings-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 4rem 3rem;
}

.musings-header h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.musings-header p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.85;
  max-width: 580px;
}

.musings-divider {
  max-width: 860px;
  margin: 0 auto 0;
  padding: 0 4rem;
  border: none;
  border-top: 1px solid var(--light-gray);
}

.musings-empty {
  max-width: 860px;
  margin: 6rem auto;
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.musings-empty-icon {
  width: 36px;
  height: 36px;
  opacity: 0.18;
  margin-bottom: 0.5rem;
}

.musings-empty p {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── FADE IN ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.18s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ── MOBILE ── */
@media (max-width: 768px) {

  /* NAV — logo top left, social icons top right, links below */
  nav {
    padding: 0.9rem 1.2rem;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 0.8rem;
  }

  .nav-logo {
    font-size: 1.05rem;
    flex: 1;
  }

  .nav-social {
    gap: 0.4rem;
  }

  .nav-social a {
    width: 28px;
    height: 28px;
    border-radius: 5px;
  }

  .nav-social svg { width: 13px; height: 13px; }

  .nav-links {
    width: 100%;
    flex: none;
    gap: 1.2rem;
    font-size: 0.65rem;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 0.8rem;
  }

  /* FOOTER */
  footer {
    padding: 1.8rem 1.5rem;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 3rem;
    text-align: center;
  }

  /* HERO */
  .hero-wrapper {
    height: 70vw;
    min-height: 280px;
  }

  .hero-overlay {
    padding: 1.5rem 1.2rem 2rem;
  }

  .home-headline {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 0.8rem;
  }

  .home-tagline {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* HOME SOCIAL ICONS */
  .home-content {
    padding: 1.8rem 1.5rem 3rem;
  }

  /* ABOUT */
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }

  .about-photo-wrap {
    position: static;
    display: flex;
    justify-content: center;
  }

  .about-photo {
    width: 150px;
    height: 150px;
  }

  .about-text h1 {
    font-size: 2rem;
    text-align: center;
  }

  .about-text .about-role {
    text-align: center;
    margin-bottom: 1.8rem;
  }

  .about-text p {
    font-size: 0.92rem;
  }

  .about-social {
    justify-content: center;
    display: flex;
  }

  /* MUSINGS */
  .musings-header {
    padding: 2.5rem 1.5rem 1.8rem;
  }

  .musings-header h1 {
    font-size: 2rem;
  }

  .musings-header p {
    font-size: 0.88rem;
  }

  .musings-divider { padding: 0 1.5rem; }

  .musings-empty {
    padding: 3rem 1.5rem;
  }
}
