/* ============================================
   gurtejgill.com
   ============================================ */

:root {
  --cream: #FAF8F5;
  --charcoal: #2C2C2C;
  --stone: #6B6560;
  --accent: #B8755D;
  --accent-dark: #9A5F49;
  --border: #E8E3DD;
  --footer-bg: #F0EDE8;
}

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

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

::selection {
  background-color: var(--accent);
  color: var(--cream);
}

body {
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 100;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

/* --- Headings --- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1rem;
}

/* --- Body Text --- */
p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-secondary {
  color: var(--stone);
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

/* --- Hero Section --- */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--stone);
  max-width: 520px;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo-img {
  width: 240px;
  height: 280px;
  object-fit: cover;
  object-position: 40% 70%;
  border-radius: 6px;
  display: block;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.accordion-section {
  border-top: 1px solid var(--border);
}

.accordion-section:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  text-align: left;
  transition: color 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.accordion-header:hover .accordion-title {
  color: var(--accent);
}

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--stone);
  transition: transform 0.4s ease;
}

.accordion-icon::before {
  width: 18px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.accordion-icon::after {
  width: 1.5px;
  height: 18px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-body > :first-child {
  padding-top: 0.5rem;
}

.accordion-body > :last-child {
  padding-bottom: 2rem;
}

/* --- My Story Bio --- */
.story-bio {
  max-width: 720px;
  padding-bottom: 2rem;
}

.story-bio p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ============================================
   HORIZONTAL TIMELINE
   ============================================ */
.timeline-horizontal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.timeline-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.timeline-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.timeline-horizontal-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  padding: 1.5rem 0 1rem;
}

.timeline-horizontal-track::-webkit-scrollbar {
  display: none;
}

.timeline-horizontal-line {
  position: absolute;
  top: 2.15rem;
  left: 1rem;
  width: calc(100% - 2rem);
  min-width: calc(6 * 200px - 2rem);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.timeline-node {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  padding: 0 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
}

.timeline-node:hover {
  transform: translateY(-2px);
}

.timeline-node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--accent);
  margin-bottom: 0.75rem;
  transition: background 0.2s, transform 0.2s;
}

.timeline-node:hover .timeline-node-dot,
.timeline-node[data-expanded="true"] .timeline-node-dot {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-node-now .timeline-node-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-node-year {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.timeline-node-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.timeline-node-summary {
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.55;
  margin-bottom: 0;
}

.timeline-node-detail {
  font-size: 0.8125rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.timeline-node[data-expanded="true"] .timeline-node-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}

.timeline-node[data-expanded="false"] .timeline-node-detail {
  margin-top: 0;
}

/* ============================================
   IDEAS PREVIEW (homepage)
   ============================================ */
.ideas-preview-list {
  list-style: none;
}

.ideas-preview-item {
  border-bottom: 1px solid var(--border);
}

.ideas-preview-item:last-child {
  border-bottom: none;
}

.ideas-preview-item a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

.ideas-preview-item a:hover .ideas-preview-title {
  color: var(--accent);
}

.ideas-preview-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: color 0.2s;
}

.ideas-preview-desc {
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.5;
  flex: 1;
}

.ideas-preview-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
}

.see-all-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.see-all-link:hover {
  color: var(--accent-dark);
}

/* ============================================
   LATELY (homepage)
   ============================================ */
.lately-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: 640px;
}

/* ============================================
   MUSIC PREVIEW (homepage)
   ============================================ */
.music-intro {
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.music-preview {
  max-width: 100%;
  margin-bottom: 1rem;
}

.music-preview iframe {
  display: block;
}

/* ============================================
   CONNECT (homepage accordion)
   ============================================ */
.connect-block {
  margin-bottom: 2rem;
}

.connect-block p {
  max-width: 560px;
}

.connect-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.connect-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.connect-links a:hover {
  color: var(--accent);
}

.connect-links a:hover .social-icon {
  color: var(--accent);
}

.connect-links .link-label {
  font-weight: 400;
  color: var(--stone);
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--stone);
  transition: color 0.2s;
}

.connect-location {
  color: var(--stone);
  font-size: 0.9375rem;
}

/* ============================================
   NEWSLETTER FORM (inline)
   ============================================ */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 420px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--accent);
}

/* ============================================
   IDEAS PAGE
   ============================================ */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.ideas-intro {
  color: var(--stone);
  margin-bottom: 2.5rem;
}

.ideas-list {
  list-style: none;
}

.ideas-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ideas-item:first-child {
  padding-top: 0;
}

.ideas-item-content {
  flex: 1;
}

.ideas-item h3 {
  margin-bottom: 0.3rem;
}

.ideas-item h3 a {
  color: var(--charcoal);
  text-decoration: none;
}

.ideas-item h3 a:hover {
  color: var(--accent);
}

.ideas-item .description {
  font-size: 0.9375rem;
  color: var(--stone);
  margin-bottom: 0;
  line-height: 1.6;
}

.ideas-item .tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.ideas-item .tag-link {
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.25rem 0.6rem;
  transition: background 0.2s, color 0.2s;
}

.ideas-item .tag-link:hover {
  background: var(--accent);
  color: var(--cream);
}

/* ============================================
   MUSIC PAGE
   ============================================ */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.playlist-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.playlist-card p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.playlist-card iframe {
  margin-bottom: 0.4rem;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.spotify-btn:hover {
  background: var(--accent);
  color: var(--cream);
}

.spotify-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--footer-bg);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-inner p {
  font-size: 0.9375rem;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.footer-form {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.footer-form input[type="email"] {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--charcoal);
  outline: none;
}

.footer-form input[type="email"]:focus {
  border-color: var(--accent);
}

.footer-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-form button:hover {
  background: var(--accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--stone);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--stone);
}

/* ============================================
   MOBILE
   ============================================ */
@media screen and (max-width: 768px) {
  nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.25rem 0;
  }
  .site-title {
    font-size: 1.15rem;
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.8125rem;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1.5rem 2rem;
  }
  .hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    max-width: 100%;
  }
  .hero-photo-img {
    width: 180px;
    height: 220px;
  }

  /* Accordion */
  .accordion-container {
    padding: 0 1.5rem 2rem;
  }
  .accordion-title {
    font-size: 1.2rem;
  }

  /* Timeline */
  .timeline-arrow {
    display: none;
  }
  .timeline-node {
    width: 170px;
  }

  /* Ideas preview */
  .ideas-preview-item a {
    flex-direction: column;
    gap: 0.25rem;
  }
  .ideas-preview-tag {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  /* Newsletter */
  .newsletter-form, .footer-form {
    flex-direction: column;
  }

  /* Sections */
  .section, .section-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  h2 { font-size: 1.5rem; }

  /* Ideas page */
  .ideas-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Music page */
  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
