/* AromaPress Front Page — Sticky hero + intro + timeline
   - Recently Added: feature stack alternates left/right, columns meet in middle
   - Currently Wearing: image smaller + centered, brand/name under image
   - Excerpts: NEVER trimmed, NEVER clamped, NEVER hidden
*/

/* ------------------------------------------------------------------ */
/* Page / scroll safety                                                */
/* ------------------------------------------------------------------ */

body.page-template-front-page,
body.home {
  display: block !important;
  height: auto !important;
  overflow-y: auto !important;
}

main.front-page-scroll-experience {
  display: block !important;
  height: auto !important;
  padding-top: 0 !important;
  overflow: visible !important;
}

/* ------------------------------------------------------------------ */
/* HERO                                                                */
/* ------------------------------------------------------------------ */

.sticky-hero-scene {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo,
.hero-sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 2.5s ease-in-out;
}

.hero-photo { opacity: 1; }
.hero-sketch { opacity: 0; }

.hero-text-minimal h1 {
  font-family: 'Dawning of a New Day', cursive;
  font-size: 7rem;
  font-weight: normal;
  color: #fff;
  margin: 0;
  transition: color 2.5s ease-in-out, opacity 0.5s ease-out;
}

body.sketch-complete .hero-sketch { opacity: 0.85; }
body.sketch-complete .hero-photo  { opacity: 0; }
body.sketch-complete .hero-text-minimal h1 { color: #000; }

body.hero-text-hidden .hero-text-minimal {
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* CONTENT WRAPPER                                                     */
/* ------------------------------------------------------------------ */

.scrolling-content-wrapper {
  position: relative;
  z-index: 2;
  background: transparent;
}

.content-block {
  padding: 100px 40px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 1100px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* IDENTITY                                                            */
/* ------------------------------------------------------------------ */

#site-identity-scene {
  padding-top: 60px;
  padding-bottom: 0;
  border-bottom: none;
}

.site-branding-front-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.site-branding-front-page .custom-logo {
  display: block;
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.site-branding-front-page .site-title {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: normal;
  transform: rotate(-5deg);
  color: var(--body-text-color);
  margin: 0;
}

.site-branding-front-page .site-title a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* WELCOME                                                             */
/* ------------------------------------------------------------------ */

#welcome-message-scene .hero-paragraph {
  font-family: var(--heading-font);
  font-size: 3rem;
  line-height: 1.5;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
  transform: rotate(-1.5deg);
}

#welcome-message-scene .divider {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 40px auto 0;
  opacity: 0.7;
}

/* ------------------------------------------------------------------ */
/* TIMELINE BASE                                                       */
/* ------------------------------------------------------------------ */

#timeline-scene {
  border-bottom: none;
}

.timeline-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-top: 2rem;
}

.timeline-item {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Kill underlines everywhere inside timeline */
.timeline-item a,
.timeline-item a:hover,
.timeline-item a:focus {
  text-decoration: none !important;
  color: inherit;
}

.timeline-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0 0 0.8rem;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.timeline-date,
.timeline-type {
  font-family: var(--body-font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #555;
}

.timeline-type {
  text-align: right;
}

/* Shared inner width for all entry types (stops “random skinny columns”) */
.timeline-item-body {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* GENERIC (non Recently Added / non Currently Wearing)                */
/* ------------------------------------------------------------------ */

.timeline-title {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.3rem;
  line-height: 1.0;
  margin: 0.2rem auto 1rem;
}

.timeline-thumb {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 1.1rem;
}

.timeline-thumb img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* ✅ Excerpt must NEVER be cut off (overrides any clamping/overflow elsewhere) */
.timeline-excerpt {
  width: 100%;
  margin: 0 auto 1rem;
  font-family: var(--body-font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #222;

  max-height: none !important;
  height: auto !important;
  overflow: visible !important;

  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}

.timeline-excerpt * {
  max-height: none !important;
  overflow: visible !important;
}

.timeline-excerpt p {
  margin: 0 0 0.9rem;
}

.timeline-excerpt p:last-child {
  margin-bottom: 0;
}

.timeline-link {
  display: block;
  text-align: center;
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.timeline-link:hover {
  color: var(--accent-purple);
}

.timeline-more {
  margin-top: 2rem;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* RECENTLY ADDED                                                       */
/* ------------------------------------------------------------------ */

.timeline-ra-card {
  display: block;
  width: 100%;
}

.timeline-ra-grid {
  display: grid;
  grid-template-columns: 1fr 320px; /* details wider, feature narrower */
  column-gap: 2.4rem;
  align-items: center;
}

.timeline-ra-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.timeline-ra-brand {
  font-family: var(--body-font);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #555;
  margin-bottom: 0.25rem;
}

.timeline-ra-name {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  line-height: 0.95;
  margin: 0 0 0.9rem;
}

.timeline-ra-media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-ra-bottle {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 0;
  display: block;
}

.timeline-ra-details {
  width: 100%;
}

.timeline-ra-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.timeline-ra-details li {
  font-family: var(--body-font);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0.45rem 0;
  color: #222;
}

.timeline-ra-details strong {
  font-weight: 500;
}

.timeline-ra-open {
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

/* ✅ “Meet in the middle” alignment */
.timeline-ra-card.is-default .timeline-ra-details {
  text-align: right;
  justify-self: end;
}
.timeline-ra-card.is-default .timeline-ra-feature {
  justify-self: start;
}

.timeline-ra-card.is-alt .timeline-ra-feature {
  justify-self: end;
}
.timeline-ra-card.is-alt .timeline-ra-details {
  text-align: left;
  justify-self: start;
}

/* ------------------------------------------------------------------ */
/* CURRENTLY WEARING                                                    */
/* ------------------------------------------------------------------ */

.timeline-cw-card {
  display: block;
  width: 100%;
  text-align: center;
}

.timeline-cw-media {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 1rem;
}

.timeline-cw-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.timeline-cw-title {
  margin: 0 auto 1rem;
  text-align: center;
}

.timeline-cw-brand {
  font-family: var(--body-font);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #555;
  margin-bottom: 0.25rem;
}

.timeline-cw-name {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  line-height: 1.0;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero-text-minimal h1 { font-size: 5.5rem; }
  #welcome-message-scene .hero-paragraph { font-size: 2.5rem; }

  .timeline-item-body { max-width: 900px; }

  .timeline-ra-grid {
    grid-template-columns: 1fr 300px;
    column-gap: 1.9rem;
  }

  .timeline-ra-bottle { max-width: 240px; }
  .timeline-cw-image { max-width: 320px; }
}

@media (max-width: 768px) {
  .content-block { padding: 60px 20px; }
  .hero-text-minimal h1 { font-size: 4rem; }

  .timeline-item-body { max-width: 100%; }

  .timeline-ra-grid {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
    column-gap: 0;
  }

  .timeline-ra-feature {
    align-items: center;
    text-align: center;
  }

  /* On mobile: details always left-aligned (readability) */
  .timeline-ra-details,
  .timeline-ra-details li {
    text-align: left !important;
  }

  .timeline-ra-details { justify-self: stretch; }

  .timeline-ra-bottle { max-width: 210px; }

  .timeline-cw-image { max-width: 280px; }
  .timeline-cw-name { font-size: 2rem; }
}

@media (max-width: 576px) {
  .hero-text-minimal h1 { font-size: 3rem; }
  #welcome-message-scene .hero-paragraph { font-size: 1.8rem; }

  .timeline-ra-name { font-size: 2.1rem; }
  .timeline-ra-bottle { max-width: 190px; }

  .timeline-cw-image { max-width: 260px; }
}
