/* ==========================================================================
   Marit Solen · Ambient v1
   --------------------------------------------------------------------------
   EDIT HERE FIRST: colors, fonts and the main sizes live in :root below.
   Layout is mobile first. Desktop styles start at 1024px.
   ========================================================================== */

/* ---------- Fonts (self hosted, SIL Open Font License, see fonts/licenses) */
@font-face {
  font-family: "Instrument Serif";
  src: url("../../fonts/instrument-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("../../fonts/albert-sans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Inter is only used by the "replace with photo" hints */
@font-face {
  font-family: "Inter";
  src: url("../../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------- Colors */
  --ink: #3b2530;          /* text on light backgrounds, solid buttons */
  --sand: #f3e6d0;         /* releases background, page base */
  --cream: #fff4e6;        /* text on dark backgrounds */
  --peach: #f2b8a0;        /* accents: email, quote sources, send button */
  --sun: #ee7d63;          /* sun (inside the SVG files) */

  --dawn-top: #f8e6d4;     /* hero gradient */
  --dawn-bottom: #ecb29b;
  --dusk-top: #7f6a9f;     /* live dates gradient (also the fill of the releases dune edge SVGs) */
  --dusk-bottom: #54457a;
  --night-top: #33356a;    /* about gradient */
  --night-bottom: #1f2148;
  --deep-top: #1a1c40;     /* contact gradient */
  --deep-bottom: #0e0f28;
  --footer: #0b0c1e;

  /* Photo slot placeholders (hidden once a photo is added) */
  --slot-peach: linear-gradient(#f2b595, #c6685a);
  --slot-amber: linear-gradient(#ecc87e, #b67848);
  --slot-lilac: linear-gradient(#bdaacb, #6f5b90);
  --slot-night: linear-gradient(#8c7bb0, #241f4a);
  /* EDIT: text color of the "replace with photo" hint on each empty photo spot.
     Each one reaches the WCAG AA contrast (4.5:1) on its own background.
     The hint disappears once a photo is added. */
  --hint-peach: #4b2722;   /* first album cover */
  --hint-amber: #4a311d;   /* second album cover */
  --hint-lilac: #191420;   /* third album cover */
  --hint-night: rgb(255 255 255 / .8); /* portrait */

  /* ---------- Fonts */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Albert Sans", system-ui, sans-serif;
  --font-hint: "Inter", system-ui, sans-serif;

  /* ---------- Layout */
  --gutter: 20px;          /* side padding on mobile */
  --max: 1440px;           /* desktop frame width */

  /* ---------- Menu bar (fixed on top while scrolling)
     --nav-h is the full height of the bar. Anchored sections stop below it. */
  --nav-top: 22px;         /* space above and below the logo */
  --nav-line: 24px;        /* height of the logo line */
  --nav-h: calc(var(--nav-top) * 2 + var(--nav-line));
  --nav-h-compact: 68px;   /* bar height after scrolling (same as --nav-h on mobile) */
  --nav-dur: .25s;         /* bar background and height change */
  --nav-bg: color-mix(in srgb, var(--dawn-top) 92%, transparent); /* bar after scrolling */
  --nav-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 10%, transparent);

  /* ---------- Animations (see "Animations" in README.md)
     EDIT: slower or faster, longer or shorter moves. */
  --motion-dur: 1.4s;                          /* sun and rings on load */
  --motion-ease: cubic-bezier(.22, 1, .36, 1); /* gentle ease out */
  --motion-dist: 24px;                         /* sun rise and dune parallax, at most */
  --motion-path-dur: 1.6s;                     /* dotted line reveal */
  --motion-item-dur: .5s;                      /* each show fading in */
  --motion-item-dist: 8px;                     /* each show rising */
  --motion-step: .15s;                         /* delay between shows */
  --parallax-far: 1;                           /* share of --motion-dist per dune */
  --parallax-mid: .6;
  --parallax-near: .3;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 72px;
    --nav-top: 36px;
    --nav-line: 26.4px;
    /* --k scales the brand art with the page width, 1 at 1440px wide
       (100cqi = body width without the scrollbar) */
    --k: calc(min(100cqi, 1440px) / 1440);
  }
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.2;
  overflow-x: hidden;
}
/* 100cqi (used by --k) = page width without the scrollbar */
.hero, main { container-type: inline-size; }
/* Anchored sections stop just below the fixed menu bar */
/* Anchored sections stop just below the menu bar (it is compact by then) */
main, section[id] { scroll-margin-top: var(--nav-h-compact); }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
/* Keyboard focus ring: dark on light sections, light on dark sections */
:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 4px; border-radius: 4px; }
.hero, .releases { --focus: var(--ink); }
.live, .about, .contact, .footer { --focus: var(--cream); }
.btn:focus-visible { border-radius: 999px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 60;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sections stack their content above the dune edge art */
.hero, .releases, .live, .about, .contact { position: relative; overflow: hidden; }
.hero > :not(.hero__art), section > :not(picture) { position: relative; z-index: 1; }

/* ---------- Buttons (all are links except the form submit) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  padding: 0 31px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--sand); }
.btn--outline { border-color: var(--ink); color: var(--ink); padding: 0 29px; }
.btn--outline:hover { background: var(--ink); color: var(--sand); }
/* min-width keeps the buttons at their designed size with short labels */
.btn--solid { min-width: 110px; }
.btn--outline { min-width: 90px; }
.btn--lg { height: 52px; padding: 0 30px; min-width: 210px; }
.btn--outline.btn--lg { padding: 0 23px; min-width: 128px; }
.btn--peach { background: var(--peach); color: var(--deep-top); font-size: 17px; }

/* ---------- Section titles and intros */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
}
.section-intro {
  margin-top: 14px;
  font-size: 17px;
  opacity: .85;
}

/* ---------- Photo slots
   Every photo space is a .photo-slot. To add a photo, put an <img> inside it
   (there is a commented example in index.html). The image covers the
   placeholder and is cropped to the slot shape automatically. */
.photo-slot {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--slot-peach);
}
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot > img ~ .photo-slot__hint { display: none; }
.photo-slot__hint {
  display: flex; flex-direction: column; align-items: center; gap: 10.6px;
  font-family: var(--font-hint); font-weight: 500;
  font-size: 11px; color: var(--hint, var(--hint-night)); text-align: center;
}
.photo-slot__hint img { width: 49.4px; height: 49.4px; opacity: .8; }
.photo-slot--leaf .photo-slot__hint { gap: 9.13px; }
.photo-slot--leaf .photo-slot__hint img { width: 42.6px; height: 42.6px; }

.photo-slot--peach { background: var(--slot-peach); --hint: var(--hint-peach); }
.photo-slot--amber { background: var(--slot-amber); --hint: var(--hint-amber); }
.photo-slot--lilac { background: var(--slot-lilac); --hint: var(--hint-lilac); }
.photo-slot--cover { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.photo-slot--leaf {
  --hint: var(--hint-night);
  background: var(--slot-night);
  width: 100%;
  aspect-ratio: 23 / 30;
  /* leaf shape: big round corners top left and bottom right */
  border-radius: 65.2cqi 5.2cqi 65.2cqi 5.2cqi;
}

/* ---------- Dune edges at the bottom of each section */
.edge {
  position: absolute; left: 0; bottom: 0;
  width: 100%;
  pointer-events: none;
}
.edge--releases { height: 83.32px; }
.edge--live { height: 84px; }
.edge--about { height: 76.63px; }
.edge--contact { height: 84px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 840px;
  padding-top: calc(var(--nav-top) + var(--nav-line)); /* room for the menu bar */
  background: linear-gradient(var(--dawn-top), var(--dawn-bottom));
  color: var(--ink);
}
.hero__art { position: absolute; inset: 0; pointer-events: none; }
.hero__sky { position: absolute; inset: 0; }
.hero__sun, .hero__ring { position: absolute; max-width: none; }
.hero__sun { width: 250px; height: 250px; left: calc(50% - 85px); bottom: 90px; }
.hero__ring--inner { width: 340px; height: 340px; left: calc(50% - 130px); bottom: 45px; }
.hero__ring--outer { width: 440px; height: 440px; left: calc(50% - 180px); bottom: -5px; }
.hero__dune { position: absolute; left: 0; bottom: 0; width: 100%; }
.hero__dune--far { height: 250px; }
.hero__dune--mid { height: 180px; }
.hero__dune--near { height: 120px; }

/* EDIT: the bar is transparent at the top of the page and gets the --nav-bg
   background after a few pixels of scrolling (see assets/js/main.js).
   To turn the sticky menu off, add class="static-nav" to <body>. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background-color var(--nav-dur) ease, box-shadow var(--nav-dur) ease;
}
.topbar.is-scrolled {
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* After scrolling the bar becomes compact: --nav-h-compact tall */
.topbar.is-scrolled .nav { padding-block: calc((var(--nav-h-compact) - var(--nav-line)) / 2); }
.static-nav .topbar { position: absolute; }
.static-nav .topbar.is-scrolled .nav { padding-block: var(--nav-top); }
.static-nav .topbar.is-scrolled { background: none; box-shadow: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .topbar, .nav { transition: none; } }

.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--nav-top);
  transition: padding var(--nav-dur) ease;
  color: var(--ink);
  --focus: var(--ink);
}
.nav__logo {
  font-size: 20px; font-weight: 600;
  /* 44px touch area on phones; the negative margin keeps the text in place */
  display: inline-block; padding: 10px 8px; margin: -10px -8px;
}
.nav__logo:focus-visible { outline-offset: -2px; }
.nav__toggle {
  background: none; border: 0;
  /* 44px touch area; the negative margin keeps the label where it was */
  padding: 12.5px 10px; margin: -12.5px -10px;
  font-size: 16px; font-weight: 500; cursor: pointer;
}
.nav__links { display: none; }
.nav.is-open .nav__links {
  display: grid; gap: 6px;
  position: absolute; z-index: 10;
  top: 64px; left: var(--gutter); right: var(--gutter);
  padding: 20px 24px;
  border-radius: 24px;
  background: var(--dawn-top);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 15%, transparent);
}
.nav.is-open .nav__links a {
  display: block; padding: 4px 0;
  font-family: var(--font-display); font-size: 34px;
}

.hero__title {
  margin-top: 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 124px;
  line-height: .92;
}
.hero__title span { display: block; }
.hero__lead { margin-top: 22px; max-width: 330px; font-size: 19px; opacity: .85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn--solid { color: var(--dawn-top); }

/* ==========================================================================
   RELEASES
   ========================================================================== */
.releases { background: var(--sand); padding: 56px 0 131px; }
.releases .section-intro { opacity: .8; }

/* Mobile: horizontal carousel, part of the next card stays visible */
.albums {
  display: flex; gap: 16px;
  margin-top: 23px;
  padding-block: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.albums::-webkit-scrollbar { display: none; }
.album { flex: 0 0 300px; scroll-snap-align: start; }
.album__title {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1.3;
}
.album__text { margin-top: 8px; font-size: 16px; line-height: 1.4; opacity: .8; }
.album__actions { display: flex; gap: 12px; margin-top: 15px; }

/* ==========================================================================
   LIVE DATES
   ========================================================================== */
.live {
  background: linear-gradient(var(--dusk-top), var(--dusk-bottom));
  color: var(--cream);
  padding: 56px 0 149.4px;
}
.live .section-title { font-size: 50px; }
.live .section-intro { opacity: 1; }

/* Mobile: vertical dotted line, one stop per show */
.timeline { position: relative; height: 780px; margin-top: 58px; }
.timeline__path { position: absolute; left: 22.5px; top: -1px; width: 23.955px; height: 782px; }
.show { position: absolute; }
.show__stop {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream);
}
.show__date, .show__city, .show__venue { display: block; white-space: nowrap; }
.show__label { position: absolute; left: 45px; top: -19px; }
.show__date {
  font-family: var(--font-display);
  font-size: 42px; line-height: 1.3;
  margin-bottom: -6.6px;
}
.show__city { font-size: 18px; font-weight: 600; }
.show__venue { margin-top: 2.4px; font-size: 15px; }

/* EDIT: stop positions along the mobile line (left, top), one rule per show.
   Each show is about 170px below the previous one. To add a show, copy the
   last rule, add 170px to "top", and make .timeline (height) and
   .timeline__path (height) 170px taller. To remove the last show, delete its
   <li> and make both heights 170px shorter. See "Live dates" in README.md. */
.show:nth-child(1) { left: 28.42px; top: 53.08px; }
.show:nth-child(2) { left: 33.38px; top: 223.63px; }
.show:nth-child(3) { left: 22.02px; top: 390.41px; }
.show:nth-child(4) { left: 12.62px; top: 559.16px; }
.show:nth-child(5) { left: 22.24px; top: 727.36px; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  background: linear-gradient(var(--night-top), var(--night-bottom));
  color: var(--cream);
  padding: 60px 0 138.5px;
}
.about__portrait { container-type: inline-size; }
.section-title--about { margin-top: 36px; font-size: 48px; }
.about__story { margin-top: 18px; font-size: 17px; line-height: 1.5; opacity: .85; }
.quotes { margin-top: 37px; }
.quote {
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
}
.quote + .quote { margin-top: 20px; }
.quote blockquote { font-family: var(--font-display); font-size: 26px; line-height: 1.3; }
.quote cite {
  display: block; margin-top: 8.2px;
  font-style: normal; font-size: 15px; font-weight: 600;
  color: var(--peach);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: linear-gradient(var(--deep-top), var(--deep-bottom));
  color: var(--cream);
  padding: 70px 0 130px;
}
.contact__stars { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
.section-title--contact { font-size: 52px; }
.contact__email {
  /* 44px touch area on phones; padding and negative margins keep the text in place */
  display: inline-block; margin: calc(23px - 4.5px) -6px -4.5px; padding: 4.5px 6px;
  font-family: var(--font-display); font-size: 27px; line-height: 1.3;
  color: var(--peach);
  overflow-wrap: anywhere;
}
.contact__email:focus-visible { outline-offset: 0; }
.contact__email:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact__form { margin-top: 44px; }
.field + .field { margin-top: 40.5px; }
.field label { display: block; font-size: 16px; font-weight: 500; opacity: .8; }
.field input {
  display: block; width: 100%;
  height: 36.3px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid color-mix(in srgb, var(--cream) 50%, transparent);
  border-radius: 0;
  font-size: 17px;
  color: var(--cream);
}
.field input:focus { outline: none; border-bottom-color: var(--peach); }
.field input:focus-visible { outline: none; }
.contact__form .btn { width: 100%; height: 56px; margin-top: 46.5px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--footer); color: var(--cream); }
.footer__inner { padding-top: 40px; padding-bottom: 36px; }
.footer__logo { font-family: var(--font-display); font-size: 44px; line-height: 1.3; }
.footer__links { display: flex; flex-wrap: wrap; gap: 13px 28px; margin-top: 21px; font-size: 16px; font-weight: 500; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Touch area on phones and tablets: 32px tall, the same as the distance between
   the two rows of links, so neighbouring areas touch but never overlap.
   The negative margin keeps the text in place. */
.footer__links a { display: inline-block; padding-block: 6.5px; margin-block: -6.5px; }
.footer__links a:focus-visible { outline-offset: 0; }
.footer__copy { margin-top: 31px; font-size: 13px; opacity: .55; }

/* ==========================================================================
   DESKTOP (1024px and up). Sizes match the 1440 design exactly at 1440px wide.
   ========================================================================== */
@media (min-width: 1024px) {

  /* Hero */
  /* extra room on small laptops so the buttons never touch the dunes */
  .hero { min-height: max(calc(960 * var(--k)), 780px); }
  .hero__sky {
    inset: auto auto 0 50%;
    width: min(100%, var(--max));
    height: calc(960 * var(--k));
    transform: translateX(-50%);
  }
  .hero__sun { width: calc(430 * var(--k)); height: calc(430 * var(--k)); left: calc(860 * var(--k)); top: calc(300 * var(--k)); bottom: auto; }
  .hero__ring--inner { width: calc(580 * var(--k)); height: calc(580 * var(--k)); left: calc(785 * var(--k)); top: calc(225 * var(--k)); bottom: auto; }
  .hero__ring--outer { width: calc(740 * var(--k)); height: calc(740 * var(--k)); left: calc(705 * var(--k)); top: calc(145 * var(--k)); bottom: auto; }
  .hero__dune--far { height: calc(380 * var(--k)); }
  .hero__dune--mid { height: calc(273.455 * var(--k)); }
  .hero__dune--near { height: calc(165.451 * var(--k)); }

  .nav__logo { font-size: 22px; padding: 0; margin: 0; }
  .nav__logo:focus-visible { outline-offset: 4px; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: 40px; font-size: 17px; font-weight: 500; }
  /* at least 24px tall click area, text stays in place */
  .nav__links a, .footer__links a { display: inline-block; padding-block: 2px; margin-block: -2px; }
  .footer__links a:focus-visible { outline-offset: 4px; }
  .nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }

  .hero__title {
    margin-top: calc(88 * var(--k));
    margin-left: calc(-8 * var(--k));
    font-size: calc(200 * var(--k));
    line-height: 1;
    white-space: nowrap;
  }
  .hero__title span { display: inline; }
  .hero__lead { margin-top: calc(42 * var(--k)); max-width: 520px; font-size: max(19px, calc(24 * var(--k))); }
  .hero__actions { gap: 16px; margin-top: calc(50 * var(--k)); }
  .btn--lg { height: 56px; padding: 0 40px; font-size: 17px; min-width: 240px; }
  .btn--outline.btn--lg { padding: 0 48px; min-width: 180px; }

  /* Section titles */
  .section-title { font-size: calc(120 * var(--k)); }
  .section-intro { margin-top: 16px; max-width: 560px; font-size: 22px; }

  /* Releases: three staggered records */
  .releases { padding: 100px 0 248px; }
  .albums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 340px));
    /* 148px between covers; the last record runs 20px into the right margin on purpose */
    column-gap: calc(148 * var(--k));
    padding-right: calc(var(--gutter) - 20 * var(--k));
    margin-top: 52px;
    padding-block: 0;
    overflow: visible;
  }
  .album:nth-child(1) { margin-top: 20px; }
  .album:nth-child(2) { margin-top: 90px; }
  .album__title { margin-top: 28px; font-size: 40px; }
  .album__text { margin-top: 2px; font-size: 17px; }
  .album__actions { margin-top: 28px; }
  .photo-slot__hint, .photo-slot--leaf .photo-slot__hint { gap: 12px; font-size: 15px; }
  .photo-slot__hint img, .photo-slot--leaf .photo-slot__hint img { width: 56px; height: 56px; }

  .edge--releases { height: calc(182.426 * var(--k)); }
  .edge--live { height: calc(200 * var(--k)); }
  .edge--about { height: calc(185.079 * var(--k)); }
  .edge--contact { height: calc(200 * var(--k)); }

  /* Live dates */
  .live { padding: 100px 0 259px; }
  .live .section-title { font-size: calc(120 * var(--k)); }

  /* About */
  .about { padding: 130px 0 229px; }
  .about__grid {
    display: grid;
    grid-template-columns: minmax(0, 460fr) minmax(0, 728fr);
    column-gap: calc(108 * var(--k));
    align-items: start;
  }
  .about__portrait { margin-top: 20px; }
  .section-title--about { margin-top: 0; font-size: calc(84 * var(--k)); }
  .about__story { margin-top: calc(116 * var(--k)); max-width: 640px; font-size: 22px; }
  .quotes { margin-top: calc(78 * var(--k)); }
  .quote { padding-top: 18px; }
  .quote + .quote { margin-top: 33.4px; }
  .quote blockquote { font-size: 34px; }
  .quote cite { margin-top: 5.8px; font-size: 16px; }

  /* Contact */
  .contact { padding: 130px 0 302px; }
  .contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 640fr) minmax(0, 608fr);
    column-gap: 48px;
    align-items: start;
  }
  .section-title--contact { font-size: calc(96 * var(--k)); }
  .contact .section-intro { margin-top: 34px; max-width: 520px; }
  .contact__email { margin: 82px 0 0; padding: 0; font-size: 36px; }
  .contact__email:focus-visible { outline-offset: 4px; }
  .contact__form { margin-top: 10px; }
  .field + .field { margin-top: 56.5px; }
  .field label { font-size: 17px; }
  .field input { height: 43.1px; }
  .contact__form .btn { width: auto; height: 58px; padding: 0 51px; margin-top: 76.5px; }

  /* Footer */
  .footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding-top: 56px; padding-bottom: 79px;
  }
  .footer__logo { grid-column: 1 / -1; font-size: 60px; }
  .footer__links { gap: 36px; margin-top: 26px; font-size: 17px; }
  .footer__copy { margin-top: 0; font-size: 14px; text-align: right; }
}

/* Live dates on wide screens: the line crosses the page from left to right */
@media (min-width: 1200px) {
  .timeline { height: auto; aspect-ratio: 1296 / 420; margin-top: 112px; }
  .timeline__path { left: -0.077%; top: 31.105%; width: 100.154%; height: 33.033%; }
  .show__stop { width: 26px; height: 26px; }
  .show__date { font-size: 52px; margin-bottom: -5.6px; }
  .show__city { font-size: 19px; }
  .show__venue { margin-top: 3.2px; font-size: 16px; }

  /* EDIT: each show sits on the dotted line (stop position in % of the line
     box, one rule per show). Labels alternate: odd shows above the line,
     even shows below. The dotted line is drawn for five shows; see
     "Live dates" in README.md before adding or removing one. */
  .show { width: 26px; height: 26px; }
  .show__label { position: absolute; left: -97px; width: 220px; }
  .show:nth-child(odd) .show__label { top: -137px; }
  .show:nth-child(even) .show__label { top: 49px; }
  .show:nth-child(5) .show__label { left: -133px; }

  .show:nth-child(1) { left: 8.472%; top: 36.029%; }
  .show:nth-child(2) { left: 30.566%; top: 30.938%; }
  .show:nth-child(3) { left: 54.247%; top: 50.871%; }
  .show:nth-child(4) { left: 77.752%; top: 60.295%; }
  .show:nth-child(5) { left: 95.757%; top: 41.693%; }
}

/* Very narrow phones: keep the giant title inside the screen */
@media (max-width: 359px) {
  .hero__title { font-size: 104px; }
}

/* ==========================================================================
   ANIMATIONS
   Only run when <html> has the "motion" class (set by the short script in
   the <head>). EDIT: to turn them all off, add class="no-motion" to <html>.
   Visitors who ask their system for reduced motion never see them.
   Everything is transform, opacity or clip-path: nothing moves the layout.
   ========================================================================== */

/* 1. Hero on load: the sun rises, then the two rings fade in */
@keyframes sun-rise { from { transform: translateY(var(--motion-dist)); } to { transform: none; } }
@keyframes ring-in { from { opacity: 0; } to { opacity: 1; } }
.motion .hero__sun { animation: sun-rise var(--motion-dur) var(--motion-ease) both; }
.motion .hero__ring--inner { animation: ring-in var(--motion-dur) var(--motion-ease) .3s both; }
.motion .hero__ring--outer { animation: ring-in var(--motion-dur) var(--motion-ease) .6s both; }

/* 2. Dune parallax: --parallax goes from 0 (top of the page) to 1 (hero
   scrolled away) in assets/js/main.js. At the top nothing is moved. */
.motion .hero__dune--far  { transform: translateY(calc(var(--parallax, 0) * var(--motion-dist) * var(--parallax-far))); }
.motion .hero__dune--mid  { transform: translateY(calc(var(--parallax, 0) * var(--motion-dist) * var(--parallax-mid))); }
.motion .hero__dune--near { transform: translateY(calc(var(--parallax, 0) * var(--motion-dist) * var(--parallax-near))); }

/* 3. Live dates: the dotted line draws itself, then the shows appear one by one.
   The line reveals from top to bottom (vertical line) or left to right (wide screens). */
.motion .timeline__path {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--motion-path-dur) var(--motion-ease);
}
.motion .show {
  opacity: 0;
  transform: translateY(var(--motion-item-dist));
  transition: opacity var(--motion-item-dur) var(--motion-ease), transform var(--motion-item-dur) var(--motion-ease);
  transition-delay: calc(.3s + var(--show-index, 0) * var(--motion-step));
}
.motion .live.is-visible .timeline__path { clip-path: inset(0); }
.motion .live.is-visible .show { opacity: 1; transform: none; }
@media (min-width: 1200px) {
  .motion .timeline__path { clip-path: inset(0 100% 0 0); }
}

/* 4. Album covers grow a touch under the mouse (not on touch screens) */
@media (hover: hover) {
  .motion .photo-slot--cover { transition: transform .4s var(--motion-ease); }
  .motion .photo-slot--cover:hover { transform: scale(1.02); }
}

/* Animations off: no-motion class or reduced motion asked by the visitor */
.no-motion, .no-motion * { scroll-behavior: auto !important; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .btn:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}


/* ---------- DEMO ONLY (not in the product) */
.footer__demo { padding-bottom: 32px; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.footer__demo p + p { margin-top: 4px; }
.footer__demo a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }
.demo-note { margin-top: 14px; font-size: 15px; }
