:root {
  --yellow: #ffbe39;
  --teal: #52b7b0;
  --faded-teal: #52b7b0aa;
  --orange: #ea7b2a;
  --offwhite: #fcf6ec;
  --brown: #56422a;
  --grey: #222;
  --timeline-accent: #ffbe39;  /* brassy yellow */
  --timeline-bg: #f9f8f5;      /* clean white */
  --timeline-card: #fff;
  --timeline-text: #181c2c;    /* deep navy */
  --timeline-shadow: 0 4px 20px 0 rgba(24,28,44,0.09);
  --timeline-width: 92vw; /* max width for timeline */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--offwhite);
  color: var(--brown);
  margin: 0;
  padding: 0;
  background-color: #fcf6ec;
  background-image: url('assets/BG\ Tile\ Lowtx.png');
  background-repeat: repeat;
  background-size: 400px 400px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.3rem;
  background: var(--offwhite);
  border-bottom: 1px solid #eedec5;
  z-index: 1001;
}

  .navbar nav a:hover {
    color: var(--orange);
  }

  .navbar nav a[aria-current="page"]::after {
    color: var(--orange);
  }

main {
  flex: 1;
}

footer {
  /* REMOVE: position:absolute; bottom:0; width:100%; */
  text-align: center;
  padding: 1rem;
  background-color: var(--orange);
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-top: auto; /* optional; with main{flex:1} this is not required, but harmless */
}

.full-height {
  min-height: 100vh;
}

.logo a {
  font-weight: 700;
  font-size: clamp(2rem, 2.5vw, 3rem);
  font-family: "Pacifico", cursive;
  letter-spacing: 0.05em;
  color: var(--yellow);
  text-decoration: none;
}

nav a {
  color: var(--brown);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  text-decoration: none;
  margin: 0 auto;
  font-weight: 600;
  padding-left: 20px;
}

.hero {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem 1rem;
  margin-top: 10vh;
}

.syd-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto 0rem;
  display: block;
  /* use a temp image for now or leave blank, see note below */
}

.hero-title {
  font-family: 'Pacifico', cursive;
  letter-spacing: 0.04em;
  color: var(--brown);
  font-size: clamp(2.5rem, 9vw, 8rem);
  margin: 0 0 0 0;
  text-align: center;
}

.hero-subtitle {
  color: #d4a12c;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  margin: 0.7rem;
  font-family: 'Josefin Sans', sans-serif;
  font-style: italic;
  transition: opacity 0.5s;
  opacity: 1;
}

.coming-soon .hero-subtitle {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  align-items: center;
}

.hero-subtext {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.55;
  margin-top: 0.4rem;
  margin-bottom: 0rem;
  text-align: center;
}

.cta-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  border-radius: 1.7em;
  display: block;
  padding: 0.9em 2.1em;
  letter-spacing: 0.07em;
  margin-top: 1rem;
  box-shadow: 0 2px 8px rgba(234, 123, 42, 0.13);
  cursor: pointer;
  margin: 2rem auto;
  width: fit-content;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--yellow);
  color: var(--brown);
  transition: background-color 0.5s ease;
}

section {
  width: 70vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.about h2, .signature-works h2, .timeline h2 {
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 0rem;
  margin-top: 1.2rem;
  color: var(--brown);
}

.about p {
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.65;
  margin-top: 0.4rem;
  margin-bottom: 0rem;
  text-align: justify;
}


/** MEDIA PLAYER STYLES **/
.hidden {
  display: none;
}

.player {
  display: flex;
  flex-direction: column;
  min-height: 175px;
}


/* Anchor the controls to the bottom of the player */
.player-controls {
  margin-top: auto;
  padding-top: 10px;
}

.player:hover {
  transform: rotate(2deg);
  transition: ease-in-out 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .player:hover, .t-card, .t-card:hover, .t-card.is-active {
    transition: none;
    animation: none;
  }
}

.player-track-meta {
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
}

.player-track-meta p {
  margin: 0;
  font-size: 1.4rem;
  color: #0e0e0e;
  font-weight: 700;
}

.player-track-meta span {
  font-size: 1rem;
  font-weight: 400;
  padding: 0 2px;
  position: relative;
  top: 1px;
  color: #0e0e0e;
}

.player-controls {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.player-play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.icon-container {
  fill: transparent;
  stroke: none;
}

.player-play-btn:hover {
  fill: #444444;
}

.player-play-btn svg { 
  color: #0e0e0e;
  position: relative;
  left: 0.5px;
  width: 36px;
  height: 36px;
  display: block;
}

.player-play-btn:hover svg {
  color: #ffffff;
}

.player-timeline {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
}

.player-progress {
  display: flex;
  position: relative;
  height: 6px;
  background: var(--offwhite);
  border-radius: 25px;
  margin: 0 5px;
  flex: 10;
  flex-basis: 100%;
  overflow: hidden;
  margin-bottom: 10px;
  align-self: center;
}

.player-progress-filled {
  height: 6px;
  background: #0e0e0e;
  flex: 0;
  flex-basis: 0%;
  border-radius: 25px;
}

.player-time {
  display: inline-flex;       /* so we can center the text inside */
  align-items: center;        /* vertical centering of the digits */
  line-height: 1;             /* remove extra font vertical metrics */
  padding-block: 0;           /* kill the 2px vertical padding */
  padding-inline: 6px;  
  color: #0e0e0e;
  font-size: 1.2rem;
  transform: translateY(-5px);
  font-family: "Josefin Sans", sans-serif;
}

.player-volume {
  width: 100%;
  height: 4px;
  background: transparent;
  appearance: none;
  outline: none;
  margin: 0;
  padding: 0;
  --val: 100;
  --slider-fill: #222; /* dark grey */
}

.player-volume-container {
  margin-bottom: 15px;
}

.player.yellow {
  background: var(--yellow);
}
.player.teal {
  background: var(--teal);
}
.player.orange {
  background: var(--orange);
}

/* Webkit (Chrome, Safari) */
.player-volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--slider-fill, #222) 0%,
    var(--slider-fill, #222) calc(var(--val, 100) * 1%),
    var(--offwhite) calc(var(--val, 100) * 1%),
    var(--offwhite) 100%
  );
}
.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slider-fill, #222);
  border: 2px solid #fff;
  box-shadow: 0 0 2px #aaa;
  cursor: pointer;
  margin-top: -6px;
}

/* Firefox */
.player-volume::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #ccc;
}
.player-volume::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--slider-fill, #222);
}
.player-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slider-fill, #222);
  border: 2px solid #fff;
  box-shadow: 0 0 2px #aaa;
  cursor: pointer;
}

/* Edge/IE */
.player-volume::-ms-fill-lower {
  background: var(--slider-fill, #222);
  border-radius: 2px;
}
.player-volume::-ms-fill-upper {
  background: #ccc;
  border-radius: 2px;
}
.player-volume::-ms-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slider-fill, #222);
  border: 2px solid #fff;
  box-shadow: 0 0 2px #aaa;
  cursor: pointer;
}

/* Remove outline on focus */
.player-volume:focus {
  outline: none;
}

/* Responsive */
@media (min-width: 750px) {

  section {
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
  }

  .player {
    max-width: 500px;
    width: 30vw;
    margin: 1rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  }

  .player-list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
}

.player-controls {
    flex-direction: column;
    align-items: center;
}


  .player-timeline {
    width: 95%;
  }

   .player-volume-container {
      width: 55%;
  }

  .player-play-btn {
    padding-bottom: 6px;
  }
}

@media (max-width: 849px) {
  .logo {
    font-size: 32px;
  }
  
  .navbar {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 1rem;
  }

  .navbar nav {
    display: flex;
    flex-direction: row;
    align-items: space-between;
    width: 100%;
    justify-content: center;
  }

  .navbar nav a {
    align-items: space-between;
    margin: 0.5rem;
  }
  
  section {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin: 1rem auto;
  }

  .player-list {
    display: flex;
    flex-direction: column;
  }

  .player {
    width: 80vw;
    margin: 1rem auto;
    background: white;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  }

  .player-controls {
    gap: 0.5rem;
    margin-top: 1rem
  }

  .player-time {
    display: block !important;
  }
}

@media (max-width:1099px) {
  section {
    width: 90vw;
  }
  
  .t-card{--s:0.86;}
  .t-card:hover{ --s: 0.94; } 
  .t-card.is-active{ --s: 1.06; }
}

@media (max-width: 500px) {
    .player-time-duration {
    display: none !important;
  }
}

/* ===== Timeline Cards - Polaroid / Postcard ===== */
:root{
  --teal:#0c5a6a;
  --ink:#0b192c;
  --paper:#ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.12);
  --shadow-soft: 0 8px 18px rgba(0,0,0,.16), 0 3px 8px rgba(0,0,0,.10);
  --accent: var(--teal);
}

.timeline{
  --card-w: min(80vw, 300px);
  --card-h: calc(var(--card-w) * 1.65);
  position: relative;
  display: grid;
}

.timeline-flex{ 
  width: min(100%, var(--timeline-width));
  margin-inline: auto;
  position: relative;
}

/* Stage for cards */
.timeline-stage{
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + 6rem);
  margin: 0 auto;
  margin-inline: auto;
  overflow: visible;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

/* Hide raw list */
.timeline-scroll{ display:none !important; }
.timeline-list{ list-style:none; margin:0; padding:0; }

/* Arrows (mobile only) */
.timeline-nav{
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 999px; border:0;
  background: var(--accent); color:#fff;
  display: none !important;
  align-items:center; justify-content:center;
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  cursor: pointer;
}
.timeline-nav.prev{ left:.5rem; }
.timeline-nav.next{ right:.5rem; }
.timeline-nav:focus-visible{ outline:3px solid #fff; outline-offset:2px; }

@media (max-width: 899px){
  .timeline-nav{ display:inline-flex !important; }
  .timeline-stage{ --card-w: min(86vw, 360px); }
}

/* Card shell */
.t-card{
  position: absolute;
  left: 50%;                       /* anchor */
  width: var(--card-w);
  height: var(--card-h);
  background: var(--accent);
  border-radius: 12px;
  padding: clamp(12px, 2.8vw, 18px);
  box-shadow: var(--shadow);
  transform-origin: 50% 60%;
  transform: translateX(calc(-50% + var(--x,0px))) translateY(var(--y,0px)) rotate(var(--rot,0deg)) scale(var(--s,1));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .2s ease, opacity .25s ease, box-shadow .25s ease;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  pointer-events: auto;
}

/* Card inner — force image + info stack */
.t-card__inner{
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.75rem;
  min-height: 0;
}

/* Image block */
.t-card__img {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 70%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  margin-top: 2em;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  border: 7px solid var(--paper);
  background: var(--paper);
  display: flex;               /* center content */
  align-items: center;
  justify-content: center;
  z-index: auto;
}

.t-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, transparent 60%, white 95%); */
  pointer-events: none;
  z-index: 2;
}

.t-card__img img {
  width: 100%;                  /* scale down */
  height: auto;                 /* keep aspect ratio */
  object-fit: contain;          /* no cropping */
  display: block;
}



/* Year watermark */
.t-card__year{
  position: absolute;
  top: .3rem; left: .6rem;
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.6rem, 12vw, 4.8rem);
  text-shadow: #000000 2px 2px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--teal);
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 10;
}

.t-card__year::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0.75em;
  background: var(--orange);
  bottom: 0.0em;
  z-index: -1;
  box-shadow: 2px 2px 2px rgba(0,0,0,1);
}

/* Info block — now hugs content */
.t-card__info{
  margin-top: auto;
  margin-bottom: auto; /* centers in remaining space */
  flex: 0 1 auto;      /* allow shrinking when space is tight */
  overflow: auto;      /* scroll if it must */
  min-height: 0;       /* key to prevent content clipping */
  padding: clamp(10px, 2.2vw, 14px);
  background: #fff;
  border-radius: 6px;
}

.t-card__title, .t-card__detail{
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: justify;
  font-family: 'Josefin Sans', sans-serif;
}

.t-card__detail {
  margin: 0;
  line-height: 1.65;
}

.t-card__title {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0.1em auto 0 auto;
  color: black;
  text-align: center;
  z-index: 3;
  text-shadow: 1px 1px 3px #000000d8;
  font-size: clamp(1.5rem, 1.5vw, 2.4rem);
  overflow-x: visible;
}

.t-card__detail{
  font-size: clamp(1rem, 1vw, 1.8rem);
  line-height: 1.2;
  margin-top: 0.4rem;
  margin-bottom: 0;
  color: var(--brown);
}


/* ------- DESKTOP FAN ------- */
@media (min-width: 899px){
  .timeline{ --card-w: min(30vw, 420px); --card-h: calc(var(--card-w) * 1.45); }
  .timeline-stage{margin-top: 2vw; height: max(540px, calc(var(--card-h) + 4rem)); }
  .timeline-nav{ display:none !important; pointer-events:none !important; }

  .t-card{
    --s: 0.82;
    filter: grayscale(0.6) brightness(0.85) blur(2px);
    opacity: 0.45;
    transition: transform .35s cubic-bezier(.2,.8,.2,1),
                filter .3s ease,
                opacity .25s ease,
                box-shadow .25s ease;
    z-index: 500;
    pointer-events: auto;
  }

  .t-card:hover{
    --s: 0.9;
    filter: grayscale(0.3) brightness(0.95) blur(1px);
    box-shadow: 0 14px 28px rgba(0,0,0,.22), 0 8px 18px rgba(0,0,0,.12);
    opacity: 0.95;
    z-index: 600;
  }

  .t-card.is-active{
    --s: 1.1;
    --rot: 0deg;
    filter: none;
    opacity: 1;
    z-index: 900;
    box-shadow: 0 22px 48px rgba(0,0,0,.30), 0 12px 22px rgba(0,0,0,.18);
    animation: card-pop .38s cubic-bezier(.2,.8,.2,1);
  }

  @keyframes card-pop{
    0%{
      transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--rot)) scale(0.96);
      filter: blur(0px);
    }
    60%{
      transform: translateX(calc(-50% + var(--x))) translateY(calc(var(--y) - 6px)) rotate(var(--rot)) scale(1.14);
    }
    100%{
      transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--rot)) scale(var(--s,1));
      filter: none;
    }
  }
}

