/* About Page - Professional Design
 * Color Palette: Rosewood, Warm Cream, Vintage Blue
 * Design System: Minimalism, Swiss Style, Archivo + Source Sans 3
 */

body.about-page {
  background-color: #f8f5ef;
}

:root {
  /* Palette */
  --rosewood: #533129;
  --warm-cream: #f8f5ef;
  --vintage-blue: #6b8e9f;
  /* Semantic */
  --bg-primary: var(--warm-cream);
  --bg-section-alt: #f0ebe3;
  --text-primary: var(--rosewood);
  --text-secondary: #6b5344;
  --text-muted: #8a7a6d;
  --accent: var(--vintage-blue);
}

* {
  color: var(--text-primary);
}

/* Keep header/navbar styling identical to rest of site */
body.about-page #heading,
body.about-page #heading * {
  color: #fff !important;
}
body.about-page #heading .name_title {
  font-family: var(--jade-clement-font) !important;
}
body.about-page #heading .navbar__links {
  /* Match the rest of the about page typography; `.name_title` stays special */
  font-family: inherit !important;
}

.c {
  width: 100%;
}

.c1 {
  background: linear-gradient(135deg, var(--warm-cream) 0%, var(--bg-section-alt) 100%);
}

.c2 {
  background: linear-gradient(180deg, rgba(107, 142, 159, 0.12) 0%, var(--warm-cream) 100%);
}

.c3 {
  background: linear-gradient(180deg, var(--warm-cream) 0%, rgba(107, 142, 159, 0.08) 100%);
}

.c4 {
  background: linear-gradient(180deg, rgba(107, 142, 159, 0.1) 0%, var(--warm-cream) 100%);
  margin-bottom: 0;
}

.about_section {
  display: block;
  width: min(80vw, 72rem);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-scroll-section {
  background-color: var(--warm-cream);
  width: 100%;
}

.about-scroll-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: stretch;
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4.5rem;
  box-sizing: border-box;
}

@media (min-width: 1001px) {
  .about-scroll-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
    padding: 4rem 1.5rem 0;
  }
}

.about-slideshow-column {
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
}

@media (min-width: 1001px) {
  .about-slideshow-column {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 20vh;
    align-self: start;
    justify-content: flex-start;
    width: auto;
  }
}

/* `.about1` adds padding globally; we don't want that around the sticky panel. */
.about-slideshow-column .slideshow-container.about1 {
  padding: 0;
}

.about-scroll-text-column {
  min-width: 0;
}

@media (min-width: 1001px) {
  .about-scroll-text-column {
    grid-column: 1;
    grid-row: 2;
  }
}

.about-slide-caption {
  position: relative;
  background-color: var(--warm-cream);
  min-height: 80vh;
  padding-bottom: 0;
}

.about-scroll-text-column .about_section_title {
  text-align: left;
}

/* Desktop: keep the intro feeling "anchored" while the next section scrolls up */
@media (min-width: 1001px) {
  .about-slide-caption[data-slide="1"] {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 10vh;
    z-index: 1;
    /* Make the intro block shorter so the next section can rise sooner. */
    min-height: 45vh;
    padding-bottom: 2rem;
  }

  /* Push sections down so they don't appear early. */
  .about-slide-caption[data-slide="2"],
  .about-slide-caption[data-slide="3"],
  .about-slide-caption[data-slide="4"] {
    margin-top: 120vh;
  }

  /*
   * Sticky "stack": when Quick Facts hits the sticky top it stays there,
   * then Interests overlays it, and Outlook overlays Interests.
   */
  .about-slide-caption[data-slide="2"] {
    position: sticky;
    top: 10vh;
    z-index: 2;
  }

  .about-slide-caption[data-slide="3"] {
    position: sticky;
    top: 10vh;
    z-index: 3;
  }

  .about-slide-caption[data-slide="4"] {
    position: sticky;
    top: 10vh;
    z-index: 4;
  }
}

/* Mobile/tablet: disable sticky panel and let content stack normally. */
@media (max-width: 1000px) {
  .about-slide-caption {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .about-scroll-text-column .about_section_title {
    text-align: center;
  }
}

.about-page-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.about-slideshow-stick {
  display: block;
}

/* Desktop: lock slideshow in a left sticky column */
@media (min-width: 1001px) {
  .about-page-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    column-gap: 3rem;
    align-items: start;
    grid-template-areas:
      "slideshow intro"
      "slideshow quickfacts"
      "slideshow interests"
      "slideshow outlook";
  }

  /* Flatten the intro wrappers so its text + slideshow become direct grid items. */
  .about-intro {
    display: contents;
  }

  #about_intro {
    display: contents;
  }

  .about_intro_layout {
    display: contents;
  }

  .about-quickfacts {
    grid-area: quickfacts;
  }

  .about-interests {
    grid-area: interests;
  }

  .about-outlook {
    grid-area: outlook;
  }

  .about-slideshow-stick {
    grid-area: slideshow;
    position: sticky;
    top: 80px; /* sits below the sticky header/navbar */
    align-self: start;
    padding: 3rem 0;
    z-index: 5;
    display: flex;
    justify-content: center;
  }

  /* Keep content constrained to the right column. */
  .about_intro_text.about1 {
    grid-area: intro;
    padding: 3rem 1.5rem; /* replicate the spacing from the removed #about_intro box */
    width: min(100%, 72rem);
    margin: 0 auto;
    box-sizing: border-box;
    flex: initial; /* not a flex item anymore on desktop */
    min-width: 0;
  }

  /* Prevent double-padding: we apply spacing to the sticky wrapper instead. */
  .about-slideshow-stick .slideshow-container.about1 {
    padding: 0;
  }

  .about_section {
    width: min(100%, 72rem);
    margin: 0 auto;
  }
}

.about1 {
  padding: 1.5rem 0;
}

/* Intro layout - side-by-side on desktop */
.about_intro_layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about_intro_text {
  flex: 1;
  min-width: 280px;
}

.about_who {
  font-family: "Caveat", cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--rosewood);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about_answer {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about_intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about_intro a,
.about_section a {
  color: var(--vintage-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.about_intro a:hover,
.about_section a:hover {
  color: var(--rosewood);
}

/* Slideshow */
.slideshow-container {
  flex-shrink: 0;
  max-width: 320px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(83, 49, 41, 0.12);
}

.slideshow-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Horizontal slide transition (track moves left = next slide enters from the right) */
.slideshow-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slideshow-track {
  display: flex;
  /* width and per-slide flex-basis set in about.js from slide count */
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.slideshow-container .mySlides {
  min-width: 0;
  position: relative;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Remove the visible circle background around arrows */
  color: var(--rosewood);
  background: transparent;
  /* Make sure the arrow glyph is always clearly visible */
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 600;
  transition: color 0.2s ease;
  user-select: none;
  border-radius: 0;
  text-decoration: none;
}

.prev { left: 0.5rem; }
.next { right: 0.5rem; }

.prev:hover, .next:hover {
  background: transparent;
  color: var(--rosewood);
}

.numbertext {
  color: var(--warm-cream);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: 0;
  background: rgba(83, 49, 41, 0.6);
  border-radius: 0 0 8px 0;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: rgba(83, 49, 41, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.dot:hover, .dot.active {
  background-color: var(--vintage-blue);
}

.dots {
  margin-top: 0.75rem;
  text-align: center;
}

/* Section titles */
.about_section_title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--rosewood);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--vintage-blue);
}

/* Quick facts */
.quickfacts_list {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  list-style: none;
  padding: 0;
}

.quickfacts_list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.quickfacts_list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--vintage-blue);
  border-radius: 50%;
}

/* Interests */
.interests_list {
  list-style: none;
  padding: 0;
  max-width: 48rem;
  margin: 0 auto;
}

.interest {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid var(--vintage-blue);
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  line-height: 1.65;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.interest:hover {
  box-shadow: 0 2px 12px rgba(83, 49, 41, 0.08);
  border-left-color: var(--rosewood);
}

.interest b {
  color: var(--rosewood);
  font-weight: 600;
}

/* Manifesto */
#about_manifesto {
  text-align: center;
}

#manifesto_intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.manifesto_list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 40rem;
  margin: 0 auto;
}

.manifesto_item {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(107, 142, 159, 0.25);
}

.manifesto_item:last-child {
  border-bottom: none;
}

.m1 {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--rosewood);
  margin-bottom: 0.25rem;
}

.m2 {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* Responsive */
@media (max-width: 900px) {
  .about_intro_layout {
    flex-direction: column;
    align-items: center;
  }

  .slideshow-container {
    max-width: 100%;
  }

  .c1 {
    padding-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .about_section {
    padding: 2rem 1rem;
  }

  .quickfacts_list {
    max-width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .slideshow-track {
    transition: none;
  }

  .prev, .next, .interest, .about_intro a {
    transition: none;
  }
}
