/* =============================================
   home.css — Abhi's personal site
   ============================================= */

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

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

body {
  background-color: #f7f4f0;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: #c0622a;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.nav__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8rem;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nav__links a:hover {
  opacity: 1;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-sunset.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 8, 6, 0.55) 0%,
    rgba(10, 8, 6, 0.72) 60%,
    rgba(10, 8, 6, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 5rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero__name {
  font-family: 'Newsreader', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.hero__location {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

/* --- Main content --- */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section --- */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.section:last-child {
  border-bottom: none;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section__icon {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  flex-shrink: 0;
}

.section__title {
  font-family: 'Newsreader', serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.section__body {
  font-size: 1.05rem;
  color: #3a3a3a;
  line-height: 1.8;
  max-width: 640px;
}

.section__body p + p {
  margin-top: 1.1em;
}

/* --- Blog Cards --- */
.blog__intro {
  font-size: 1.05rem;
  color: #3a3a3a;
  margin-bottom: 2rem;
  max-width: 640px;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.09);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.09);
}

.blog-card__title {
  font-family: 'Newsreader', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.35;
}

.blog-card__desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

.blog-card__link {
  margin-top: auto;
  font-size: 0.8rem;
  color: #c0622a;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card__link::after {
  content: '→';
}

/* --- Guitar Pills --- */
.guitar__intro {
  font-size: 1.05rem;
  color: #3a3a3a;
  margin-bottom: 2rem;
  max-width: 640px;
}

.guitar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.guitar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  border: 1.5px solid rgba(192, 98, 42, 0.3);
  border-radius: 50px;
  color: #c0622a;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.guitar-pill:hover {
  background: #c0622a;
  border-color: #c0622a;
  color: #fff;
  opacity: 1;
}

.guitar-pill--soon {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Contact --- */
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #3a3a3a;
}

.contact__item img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.contact__item a {
  color: #c0622a;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.78rem;
  color: rgba(26, 26, 26, 0.35);
  letter-spacing: 0.04em;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .nav__links {
    gap: 1rem;
  }

  .nav__links a {
    font-size: 0.72rem;
  }

  .hero__content {
    padding: 0 1.5rem 3.5rem;
  }

  .main {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .guitar__links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nav__brand {
    display: none;
  }
}

/* About section with portrait */
.section__body--with-photo {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.about-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.about-text { flex: 1; }
@media (max-width: 600px) {
  .section__body--with-photo { flex-direction: column; }
  .about-photo { width: 100%; height: 260px; }
}
