/* ============================================================
   Chantel & Ore — a living archive
   Stylesheet
   ============================================================ */

:root{
  /* colour */
  --bg: #FFF8FA;
  --bg-deep: #FCEFF3;
  --surface: #FFFFFF;
  --surface-tint: #FDEEF3;
  --ink: #2B2730;
  --ink-soft: #756770;
  --ink-faint: #A8989F;
  --magenta: #D81B60;
  --magenta-deep: #A4134A;
  --magenta-pale: #F6C9DC;
  --magenta-wash: #FBE4ED;
  --line: #F0D9E2;
  --shadow-sm: 0 2px 10px rgba(164, 19, 74, 0.07);
  --shadow-md: 0 14px 32px rgba(164, 19, 74, 0.12);
  --shadow-lg: 0 24px 60px rgba(164, 19, 74, 0.16);

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --maxw: 1080px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --nav-h: 72px;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }

a{ color: inherit; text-decoration: none; }

ul{ margin:0; padding:0; list-style:none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

em{
  font-style: normal;
  color: var(--magenta);
}

::selection{
  background: var(--magenta-pale);
  color: var(--magenta-deep);
}

:focus-visible{
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- utility text ---------------- */

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magenta-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  display:inline-block;
}

.lede{
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------------- perforated ticket divider (signature motif) ---------------- */

.ticket-divider{
  position: relative;
  height: 2px;
  margin: 14px 0 18px;
  background-image: repeating-linear-gradient(to right, var(--magenta-pale) 0 7px, transparent 7px 14px);
  border-radius: 2px;
}
.ticket-divider::before,
.ticket-divider::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket-divider::before{ left: -23px; }
.ticket-divider::after{ right: -23px; }

.card .ticket-divider::before,
.card .ticket-divider::after{
  background: var(--bg);
}

/* ---------------- header / nav ---------------- */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 248, 250, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.logo .heart{
  color: var(--magenta);
  font-size: 0.85em;
  transform: translateY(1px);
}

.nav-links{
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--magenta);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after{ width: 100%; }

.nav-links a.active{ color: var(--magenta-deep); }
.nav-links a.active::after{ width: 100%; }

.nav-toggle{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-panel{
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}

.mobile-panel.open{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel ul{
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
}

.mobile-panel a{
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.mobile-panel li:last-child a{ border-bottom: none; }
.mobile-panel a.active{ color: var(--magenta-deep); }

@media (min-width: 760px){
  .nav-links{ display: flex; }
  .nav-toggle{ display: none; }
  .mobile-panel{ display: none; }
}

/* ---------------- page shell ---------------- */

main{
  padding-top: var(--nav-h);
}

.page-hero{
  padding: 64px 0 40px;
  text-align: center;
}

.page-hero h1{
  font-size: clamp(2.1rem, 6vw, 3.2rem);
}

.page-hero .lede{
  margin: 0 auto;
}

section{
  padding: 48px 0;
}

.section-head{
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------- reveal on scroll ---------------- */

.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- buttons ---------------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary{
  background: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
  background: var(--magenta-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost{
  background: var(--surface);
  color: var(--magenta-deep);
  border: 1px solid var(--magenta-pale);
}
.btn-ghost:hover{
  background: var(--magenta-wash);
  transform: translateY(-2px);
}

.btn-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------------- cards ---------------- */

.card{
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tag-chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--magenta-wash);
  color: var(--magenta-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------------- HOME ---------------- */

.hero{
  padding: 86px 0 30px;
  text-align: center;
}

.hero-tag{
  margin-bottom: 22px;
}

.hero h1{
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: -0.01em;
}

.hero p.lede{
  margin: 18px auto 0;
  font-size: 1.15rem;
}

.day-counter{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 34px auto 0;
  padding: 16px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.day-counter .num{
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--magenta);
}

.day-counter .label{
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.story-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 760px){
  .story-grid{ grid-template-columns: 1fr 1fr; }
}

.story-card .icon{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--magenta-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.qualities{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------------- TIMELINE ---------------- */

.timeline{
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
}

.timeline::before{
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--magenta-pale) 0 8px, transparent 8px 16px);
}

.timeline-item{
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child{ padding-bottom: 0; }

.timeline-dot{
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--magenta-pale);
}

.timeline-item.future .timeline-dot{
  background: var(--surface);
  border: 2px solid var(--magenta);
}

.timeline-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.timeline-item.future .timeline-card{
  border-style: dashed;
  border-color: var(--magenta-pale);
  background: var(--surface-tint);
}

.timeline-date{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta-deep);
  margin-bottom: 6px;
  display: block;
}

.timeline-card h3{
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.timeline-card p{ margin: 0; }

.future-badge{
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--magenta-wash);
  padding: 4px 10px;
  border-radius: 999px;
}

@media (min-width: 760px){
  .timeline{ padding-left: 0; max-width: 760px; margin-left: auto; margin-right: auto; }
  .timeline::before{ left: 50%; transform: translateX(-50%); }
  .timeline-item{
    width: 50%;
    padding-bottom: 56px;
    padding-left: 0;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd){
    padding-right: 44px;
    text-align: right;
    margin-left: 0;
  }
  .timeline-item:nth-child(even){
    padding-left: 44px;
    margin-left: 50%;
  }
  .timeline-dot{
    left: auto;
    top: 4px;
  }
  .timeline-item:nth-child(odd) .timeline-dot{ right: -7px; }
  .timeline-item:nth-child(even) .timeline-dot{ left: -7px; }
}

/* ---------------- MILESTONES ---------------- */

.milestone-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px){
  .milestone-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .milestone-grid{ grid-template-columns: repeat(4, 1fr); }
}

.milestone-card{
  text-align: center;
}

.milestone-card .date-big{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--magenta);
  font-weight: 700;
  margin: 6px 0 4px;
}

.milestone-card .who{
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.countdown-wrap{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 760px){
  .countdown-wrap{ grid-template-columns: repeat(3, 1fr); }
}

.countdown-card{
  text-align: center;
  background: var(--surface-tint);
  border: 1px solid var(--magenta-pale);
}

.countdown-numbers{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.countdown-numbers div{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.countdown-numbers .val{
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--magenta-deep);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 6px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.countdown-numbers .unit{
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
  font-weight: 700;
}

/* ---------------- LETTERS ---------------- */

.letters-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px){
  .letters-grid{ grid-template-columns: repeat(2, 1fr); }
}

.letter-card{
  cursor: pointer;
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFD 100%);
}

.letter-card .letter-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.letter-card h3{
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.letter-preview{
  color: var(--ink-soft);
}

.letter-full{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.letter-card.expanded .letter-full{
  max-height: 600px;
}

.letter-card.expanded{
  border-color: var(--magenta);
  box-shadow: var(--shadow-md);
}

.letter-card.expanded .letter-preview{ display:none; }

.letter-toggle-hint{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--magenta);
  margin-top: 12px;
}

.letter-sign{
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--magenta-deep);
}

/* ---------------- FUTURE ---------------- */

.future-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 820px){
  .future-grid{ grid-template-columns: 1fr 1fr; }
}

.future-col h2{
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.check-item{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.check-item:hover{ border-color: var(--magenta-pale); }

.check-box{
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--magenta-pale);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.check-box svg{
  width: 13px; height: 13px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.check-item.checked .check-box{
  background: var(--magenta);
  border-color: var(--magenta);
}

.check-item.checked .check-box svg{ opacity: 1; }

.check-item.checked .check-text{
  color: var(--ink-faint);
  text-decoration: line-through;
}

.check-text{
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

/* ---------------- GALLERY ---------------- */

.gallery-grid{
  column-count: 1;
  column-gap: 18px;
  margin-top: 10px;
}

@media (min-width: 600px){ .gallery-grid{ column-count: 2; } }
@media (min-width: 900px){ .gallery-grid{ column-count: 3; } }

.gallery-item{
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery-item .frame{
  overflow: hidden;
  display: block;
  background: var(--magenta-wash);
}

.gallery-item img{
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img{ transform: scale(1.08); }

.gallery-caption{
  padding: 12px 16px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------------- SOUNDTRACK ---------------- */

.soundtrack-hero{
  text-align: center;
  padding: 30px 0 10px;
}

.song-list{
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.song-row{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.song-index{
  font-family: var(--font-display);
  color: var(--magenta-pale);
  font-weight: 700;
  font-size: 1.3rem;
  min-width: 28px;
}

.song-info .title{
  font-weight: 700;
  color: var(--ink);
}

.song-info .artist{
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------------- footer ---------------- */

.site-footer{
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  margin-top: 40px;
}

.site-footer .heart{ color: var(--magenta); }

.site-footer p{
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-nav a{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-nav a:hover{ color: var(--magenta-deep); }
