/* lyndsaynissen.com
   Black-and-white photographs on silver paper. Pink, marigold and cobalt come
   from the paint on Reliable Street's backdrop and are used sparingly:
   pink for her name and things you press, marigold for the tour's sun,
   cobalt only behind the band. */
:root {
  --silver: #dad7d0;
  --silver-hi: #efeee9;
  --print: #1d1c1a;
  --graphite: #4f4b45;
  --pink: #ef4f9a;
  --pink-ink: #a3195a;   /* pink for small text on silver: passes contrast */
  --marigold: #f39b22;
  --cobalt: #2853c4;

  --display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --edge: clamp(1rem, 4vw, 3rem);
  --split: 46vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--silver); color: var(--print);
  font: 400 1.0625rem/1.6 var(--text);
}
h1, h2, p, figure, blockquote { margin: 0; }
img { max-width: 100%; }
a { color: var(--pink-ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; }

h2 {
  font: 400 clamp(2.4rem, 5vw, 3.75rem)/1 var(--display);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.small { font-size: .95rem; color: var(--graphite); }

/* Hero: the photograph, and her name laid over its edge */
.hero { display: grid; }
.hero-photo { display: block; width: 100%; height: 82svh; min-height: 26rem; object-fit: cover; object-position: center 22%; filter: grayscale(1); }
.hero-words { padding: 0 var(--edge) clamp(2rem, 6vw, 3rem); display: grid; gap: 1rem; position: relative; }
.name {
  font: 400 clamp(3.4rem, 18vw, 6rem)/.86 var(--display);
  color: var(--pink);
  margin-top: -.95em;
  letter-spacing: -.01em;
}
.name span { display: block; animation: rise .7s cubic-bezier(.2, .9, .3, 1.15) both; }
.name span:nth-child(2) { padding-left: .55em; animation-delay: .08s; }
.name span:nth-child(3) { padding-left: .18em; animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }
.hero-line { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.nav a { color: var(--print); text-decoration-color: var(--pink); }
.nav a:hover { color: var(--pink-ink); }

@media (min-width: 900px) {
  .hero { grid-template-columns: var(--split) 1fr; min-height: 100svh; }
  .hero-photo { height: 100svh; min-height: 38rem; max-height: 72rem; }
  .hero-words { align-self: center; padding: 3rem var(--edge) 3rem clamp(2rem, 4vw, 4rem); gap: 1.4rem; }
  .name { font-size: clamp(5rem, 9.6vw, 10.5rem); margin: 0 0 0 -1.05em; }
}

/* Sections share one left edge; on wide screens it lines up with the words beside the photo */
main > section { padding: clamp(3.5rem, 9vw, 7rem) var(--edge); }
.words { padding-top: clamp(2rem, 5vw, 3rem) !important; }
.words blockquote p {
  font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.3;
  max-width: 30ch; text-wrap: pretty;
}
@media (min-width: 900px) {
  .words { padding-left: calc(var(--split) + clamp(2rem, 4vw, 4rem)) !important; }
}

/* Listen */
.listen { max-width: 80rem; margin: 0 auto; }
.videos { display: grid; gap: 2rem; }
@media (min-width: 700px) { .videos { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); } }
.videos figure { display: grid; gap: .65rem; }
.videos figcaption { color: var(--graphite); }
.videos figcaption b { display: block; font: 400 1.45rem/1.15 var(--display); color: var(--print); }
.video, .video-frame { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 2px solid var(--print); background: var(--print); }
.video { cursor: pointer; overflow: hidden; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video:hover img { transform: scale(1.03); }
.play {
  position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; translate: -50% -50%;
  border-radius: 50%; background: var(--pink); border: 2px solid var(--print); box-shadow: 0 4px 0 var(--print);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.play::after {
  content: ''; position: absolute; left: 55%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent var(--print);
}
.video:hover .play { transform: scale(1.08); }
.listen-more { margin-top: 2rem; font-size: 1.1rem; }

/* Song player (js/audio.js) */
.track {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center;
  max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); padding: 1rem 1.25rem;
  background: var(--silver-hi); border: 2px solid var(--print);
  --done: 0%;   /* how much has played; set by js/audio.js */
}
.track-play {
  position: relative; width: 4rem; height: 4rem; padding: 0; cursor: pointer;
  border: 2px solid var(--print); border-radius: 50%; background: var(--pink); box-shadow: 0 4px 0 var(--print);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.track-play:hover { transform: scale(1.06); }
.track-play::after {
  content: ''; position: absolute; left: 55%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent var(--print);
}
.track.is-playing .track-play::after {
  left: 50%; width: .4rem; height: 1.3rem; border: 0;
  background: var(--print); box-shadow: .6rem 0 0 var(--print); translate: -.5rem -50%;
}
.track-body { display: grid; gap: .3rem; }
.track-title { color: var(--graphite); }
.track-title b { font: 400 1.45rem/1.15 var(--display); color: var(--print); margin-right: .5rem; }
.track-title span { white-space: nowrap; }
.track-time { font-size: .9rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.track-seek { width: 100%; height: 1.25rem; margin: 0; background: transparent; cursor: pointer; appearance: none; }
.track-seek::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--pink-ink) var(--done), rgb(29 28 26 / .22) var(--done)); }
.track-seek::-moz-range-track { height: 6px; background: rgb(29 28 26 / .22); }
.track-seek::-moz-range-progress { height: 6px; background: var(--pink-ink); }
.track-seek::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--print); }
.track-seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--print); }

/* Reliable Street: the one place in full colour */
.band { background: var(--cobalt); color: var(--silver-hi); display: grid; gap: 2rem; --focus: var(--marigold); }
.band :focus-visible { outline-color: var(--marigold); }
.band a { color: #fff; text-decoration-color: var(--marigold); }
.band-words { display: grid; gap: 1rem; align-content: start; max-width: 28rem; }
.band-words p { font-size: 1.1rem; }
.band-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.band-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-stage { grid-column: 1 / 5; aspect-ratio: 4 / 3; }
.bp-fringe { grid-column: 5 / 7; grid-row: 1 / 3; object-position: 40% center; }
.bp-poster { grid-column: 1 / 3; grid-row: 2; aspect-ratio: 1; }
.bp-band { grid-column: 3 / 5; grid-row: 2; aspect-ratio: 1; object-position: center 20%; }
@media (min-width: 900px) {
  .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
}
@media (max-width: 520px) {
  .band-photos { grid-template-columns: 1fr 1fr; }
  .bp-stage { grid-column: 1 / 3; }
  .bp-fringe { grid-column: 1; grid-row: 2; aspect-ratio: 3 / 4; }
  .bp-band { grid-column: 2; grid-row: 2; aspect-ratio: 3 / 4; }
  .bp-poster { grid-column: 1 / 3; grid-row: 3; aspect-ratio: auto; }
}

/* The tour */
.tour { display: grid; gap: 2rem; justify-items: start; max-width: 70rem; margin: 0 auto; }
.sun { width: clamp(11rem, 30vw, 19rem); height: auto; overflow: visible; }
.sun-petals { fill: var(--marigold); stroke: var(--print); stroke-width: 2.5; }
.sun-face { fill: var(--pink); stroke: var(--print); stroke-width: 2.5; }
.sun-number { font: 400 54px var(--display); fill: var(--print); }
.tour-words { display: grid; gap: 1rem; max-width: 34rem; }
.tour-words p { font-size: 1.1rem; }
.btn {
  display: inline-block; padding: .75rem 1.4rem; border: 2px solid var(--print); border-radius: 999px;
  background: var(--pink); color: var(--print); font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 0 var(--print); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--print); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--print); }
@media (min-width: 760px) {
  .tour { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
}

/* Photos */
.photos { max-width: 80rem; margin: 0 auto; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 760px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: .9rem; } }
.photo-grid a { display: block; border: 2px solid var(--print); background: var(--print); overflow: hidden; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; transition: transform .5s ease; }
.photo-grid a:hover img { transform: scale(1.03); }
.ph-blue img { object-position: 35% center; }

/* Write */
.write { max-width: 80rem; margin: 0 auto; display: grid; gap: .75rem; }
.write h2 { margin-bottom: .25rem; }
.mail { font: 400 clamp(1.2rem, 5.2vw, 3.4rem)/1.15 var(--display); }
.mail a { color: var(--pink-ink); text-decoration-thickness: 3px; overflow-wrap: anywhere; }

.foot { background: var(--print); color: var(--silver); padding: 2rem var(--edge); display: grid; gap: .25rem; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
