/*
 * Nordsjællands Morgenmusik – the public site.
 *
 * Mobile first. The page is a morning: a dawn sky that brightens as you scroll,
 * an æresport of spruce and paper roses that is tied on as you scroll,
 * and instruments that draw themselves.
 *
 * Motion is progressive:
 *   - Browsers with scroll-driven animations tie growth to scrolling (no JavaScript).
 *   - Other browsers get the same animations when things come into view
 *     (motion_controller.js adds .motion-js and .is-visible).
 *   - Without JavaScript, or with "reduce motion" on, everything is simply shown.
 */

/* ---------- Tokens ---------- */

:root {
  --paper: #fbf3e8;
  --paper-2: #f5e9d8;
  --card: #fffaf2;
  --ink: #1e2b2e;
  --ink-2: #4c5a5d;
  --line: #e7d9c4;

  --leaf: #6a9a56;
  --leaf-2: #3f6b37;
  --petal-a: #ee8d86;
  --petal-b: #f4c24a;
  --petal-c: #f7cfd6;
  --heart: #e09a22;

  /* The æresport: spruce, and paper roses in the occasion's colours */
  --gran: #2c5636;
  --gran-2: #6f9a57;
  --rose-a: #c8102e;
  --rose-b: #fbf6ee;

  --dawn-1: #f6c9a8;
  --dawn-2: #f9dcc4;
  --sun: #ffcf73;

  /* The occasion's colours; the morning theme is brass */
  --accent: #c08a26;
  --accent-2: #8a5d0f;
  --accent-soft: #f6e5c0;
  --metal: linear-gradient(135deg, #8a5d0f, #f7dc8b 42%, #b9851e 58%, #fff0b8 80%, #b9851e);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --topbar: 4rem;
  --radius: 1.5rem;
  --shadow: 0 1px 2px rgb(60 40 10 / 0.06), 0 12px 32px -12px rgb(60 40 10 / 0.22);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.3, 1.5, 0.5, 1);
}

.theme-copper    { --accent: #b4693e; --accent-2: #8a4520; --accent-soft: #f6dccb; --petal-b: #f0a070; --rose-a: #b8602f; --rose-b: #f3c7a4;
                   --metal: linear-gradient(135deg, #7f3f1c, #f0b28c 42%, #a85a30 58%, #ffd2b4 80%, #a85a30); }
.theme-silver    { --accent: #7a8894; --accent-2: #47535e; --accent-soft: #e5e9ed; --petal-b: #c9d3dc; --rose-a: #a9b4be; --rose-b: #ffffff;
                   --metal: linear-gradient(135deg, #59646e, #f4f7f9 42%, #8b97a2 58%, #ffffff 80%, #8b97a2); }
.theme-gold      { --accent: #c08a26; --accent-2: #8a5d0f; --accent-soft: #f6e5c0; --rose-a: #dba52a; --rose-b: #f9e6a6; }
.theme-diamond   { --accent: #4b8db5; --accent-2: #255a7a; --accent-soft: #dbeaf3; --petal-b: #bfe0f2; --rose-a: #ffffff; --rose-b: #b9dbef;
                   --metal: linear-gradient(135deg, #6fa6c8, #ffffff 40%, #b5dbef 55%, #ffffff 75%, #7fb3d1); }
.theme-meadow    { --accent: #4f7f3f; --accent-2: #2f5a2a; --accent-soft: #e0ecd4; }
.theme-flag      { --accent: #c8102e; --accent-2: #9c0c23; --accent-soft: #f8dcdc; --petal-a: #e8384f; }
.theme-champagne { --accent: #b08d4f; --accent-2: #775a26; --accent-soft: #f3ead7; --rose-a: #e3c48c; --rose-b: #fff8ea; }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 1rem);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font-body);
  overflow-x: clip;
  padding-bottom: 5.5rem; /* room for the call bar on phones */
}

@media (min-width: 48rem) {
  body { padding-bottom: 0; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 5vw + 0.5rem, 3.25rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.page-pad { padding-block: calc(var(--topbar) + 2rem) 3rem; }

.eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font: 700 0.8rem/1.3 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.lead, .section-lead { font-size: 1.2rem; color: var(--ink-2); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
}

.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 10px 24px -12px var(--accent-2); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px var(--accent-2); }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { min-height: 3.4rem; font-size: 1.05rem; padding-inline: 1.6rem; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* ---------- Sky, sun and the vines along the page ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--dawn-1) 0%, var(--dawn-2) 38%, var(--paper) 80%);
  pointer-events: none;
}

.sun-glow {
  position: absolute;
  left: 50%;
  top: -30vmax;
  width: 90vmax;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 230 170 / 0.55), transparent 60%);
}

.page-vine { display: none; }

/* ---------- Top bar and menu ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark-small { font: 700 0.62rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); }
.wordmark-big { font: 600 1.45rem/1.05 var(--font-display); letter-spacing: -0.01em; }

.topnav, .topbar-cta { display: none; }

.menu-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
}
.menu-button svg { width: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.menu {
  inset: calc(var(--topbar) + 0.5rem) 0.75rem auto auto;
  width: min(20rem, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px rgb(40 25 5 / 0.45);
}
.menu:popover-open { display: grid; gap: 0.15rem; }
.menu a:not(.btn) { padding: 0.8rem 1rem; border-radius: 0.8rem; color: var(--ink); font-size: 1.15rem; text-decoration: none; }
.menu a:not(.btn):hover { background: var(--accent-soft); }
.menu .btn { margin-top: 0.5rem; }
.menu::backdrop { background: rgb(30 43 46 / 0.25); }

@media (min-width: 60rem) {
  .menu-button { display: none; }
  .topnav { display: flex; gap: 1.75rem; }
  .topnav a { color: var(--ink); font-weight: 700; font-size: 0.98rem; text-decoration: none; }
  .topnav a:hover { color: var(--accent-2); }
  .topbar-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  padding: calc(var(--topbar) + 2rem) 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw + 0.4rem, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}
.hero h1 .eyebrow { font-size: max(0.8rem, 0.17em); margin-bottom: 1rem; }

.hero-sub { font-size: clamp(1.15rem, 1vw + 1rem, 1.35rem); color: var(--ink-2); max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.cta-row .btn { flex: 1 1 auto; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-2);
}
.hero-facts li { display: flex; align-items: center; gap: 0.45rem; }
.hero-facts li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

.hero-art {
  position: relative;
  width: min(100% - 2.5rem, 27rem);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.sun {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -9%;
  width: 78%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 42%, rgb(255 207 115 / 0.45) 43% 55%, rgb(255 207 115 / 0) 70%);
}

.arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 1.25rem 1.25rem;
  box-shadow: 0 30px 60px -30px rgb(60 35 5 / 0.55);
  background: var(--paper-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

.garland { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.badge-years {
  position: absolute;
  right: -0.75rem;
  bottom: 12%;
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--metal);
  box-shadow: 0 14px 30px -12px rgb(40 25 5 / 0.6), inset 0 0 0 3px rgb(255 255 255 / 0.5);
  font: 650 2.2rem/0.9 var(--font-display);
  color: var(--ink);
  text-align: center;
}
.badge-years small { display: block; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; }

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: min(100svh, 56rem);
    padding-block: calc(var(--topbar) + 2.5rem) 4rem;
  }
  .hero-art { width: min(100%, 28rem); }
  .cta-row .btn { flex: 0 0 auto; }
  .badge-years { width: 8rem; font-size: 2.8rem; right: -2rem; }
}

/* Musical notes drifting out of the arch */
.notes { position: absolute; inset: 0; pointer-events: none; }
.note { position: absolute; width: 1.4rem; fill: var(--accent-2); opacity: 0; }
/* outside the arch, so they never cross a face */
.note.n0 { left: 88%; top: -4%; }
.note.n1 { left: 2%; top: 4%; width: 1.1rem; }
.note.n2 { left: 102%; top: 24%; width: 1.2rem; }
.note.n3 { left: -9%; top: 28%; }

/* ---------- The æresport: spruce, paper roses and flags ---------- */

.motif-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vine { fill: none; stroke: var(--gran); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bloom { transform-box: fill-box; transform-origin: center; }
.sprig { color: var(--gran); stroke: var(--gran-2); }
.sprig.bloom { transform-origin: 0% 50%; }
.rose-a { color: var(--rose-a); }
.rose-b { color: var(--rose-b); }
.little-flag.bloom { transform-origin: 8% 100%; }
.pennant.bloom { transform-origin: 50% 0%; }
.flag-line .string { stroke: #8a6a3a; stroke-width: 1.5; }

/* ---------- Occasion motifs in the hero ---------- */

.motif { position: absolute; inset: 0; pointer-events: none; }

.motif-petals .petal { position: absolute; top: -6%; width: 0.8rem; fill: var(--rose-a); opacity: 0; }
.motif-petals .petal:nth-child(3n) { fill: var(--rose-b); }
.motif-petals .petal:nth-child(3n + 1) { fill: var(--accent); }

.motif-sparkles .sparkle { position: absolute; width: 1.3rem; fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.sparkle.s0 { left: -4%; top: 22%; }   .sparkle.s1 { left: 88%; top: 8%; width: 1.8rem; }
.sparkle.s2 { left: 96%; top: 46%; }   .sparkle.s3 { left: 10%; top: 62%; width: 0.9rem; }
.sparkle.s4 { left: 46%; top: -6%; }   .sparkle.s5 { left: 70%; top: 76%; width: 1rem; }
.sparkle.s6 { left: -6%; top: 84%; width: 1.6rem; } .sparkle.s7 { left: 28%; top: 4%; width: 0.8rem; }
.sparkle.s8 { left: 80%; top: 60%; width: 0.7rem; } .sparkle.s9 { left: 56%; top: 30%; width: 0.9rem; }

.motif-bubbles .bubble {
  position: absolute;
  bottom: 4%;
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, #fff 0 25%, rgb(255 255 255 / 0.5) 30%);
  box-shadow: 0 0 10px rgb(255 255 255 / 0.8);
  opacity: 0;
}
.bubble:nth-child(odd) { width: 0.65rem; }
.bubble:nth-child(4n) { width: 1.4rem; }

.motif-bunting { inset: -8% -10% auto; height: 30%; }
.bunting-line { position: absolute; inset: 0 0 auto; width: 100%; height: 60%; overflow: visible; }
.bunting-line path { fill: none; stroke: #7a5a3a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flags { position: absolute; inset: 0; }
.flag { position: absolute; width: 2rem; transform-origin: 50% 0; filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.15)); }
.flag.f0 { left: 4%;  top: 12%; }  .flag.f1 { left: 15%; top: 28%; }  .flag.f2 { left: 26%; top: 39%; }
.flag.f3 { left: 37%; top: 45%; }  .flag.f4 { left: 48%; top: 47%; }  .flag.f5 { left: 59%; top: 45%; }
.flag.f6 { left: 70%; top: 39%; }  .flag.f7 { left: 81%; top: 28%; }  .flag.f8 { left: 92%; top: 12%; }

.motif-bird { inset: auto -24% -2% auto; width: 32%; height: auto; }
@media (min-width: 64rem) { .motif-bird { right: -38%; width: 36%; } }
.popinjay { width: 100%; overflow: visible; }
.popinjay .pole { stroke: #7a5a3a; stroke-width: 5; stroke-linecap: round; }
.popinjay .body { fill: #2f6f9a; }
.popinjay .wing { fill: #f4c24a; }
.popinjay .tail { fill: #c8102e; }
.popinjay .crown { fill: none; stroke: #f4c24a; stroke-width: 4; stroke-linejoin: round; }
.popinjay .eye { fill: #fff; }
.popinjay .ribbon { fill: none; stroke-width: 5; stroke-linecap: round; }
.popinjay .r1 { stroke: #c8102e; }
.popinjay .r2 { stroke: #f4c24a; }
.popinjay .bird { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* The trio */

.trio { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card) 85%, transparent) 18%); }

.trio-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 20rem);
  gap: 1rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.trio-cards::-webkit-scrollbar { display: none; }

.trio-card { scroll-snap-align: start; }

.trio-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.trio-card-link:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 30px 50px -24px rgb(60 35 5 / 0.45); text-decoration: none; }

.portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease-out); }
.trio-card-link:hover .portrait img { scale: 1.05; }

.trio-card-body { position: relative; padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.trio-card-body h3 { margin: 0; font-size: 1.9rem; }
.trio-card-body p { margin: 0.4rem 0 1rem; color: var(--ink-2); font-size: 1rem; }
.trio-card-body .instrument-name { margin: 0.1rem 0 0.25rem; font-weight: 700; color: var(--accent-2); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }
.trio-card-body .more { margin-top: auto; font-weight: 700; color: var(--accent-2); }
/* The silver-plated instruments sit on a dark disc, like on velvet in the case */
.trio-card .instrument, .musician-text .instrument { padding: 0.65rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #34474b, #1b2629 70%); box-shadow: 0 0 0 4px var(--card), var(--shadow); }
.trio-card .instrument { position: absolute; right: 1rem; top: -3.9rem; width: 6.5rem; height: 6.5rem; }
:is(.trio-card, .musician-text) .instrument-cornet { padding-inline: 0.4rem; }

.instrument { fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.instrument .tube { stroke-dasharray: 1; stroke-dashoffset: 0; }
.instrument :is(.valve, .pst *) { stroke: none; }

@media (min-width: 52rem) {
  .trio-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .trio-card:nth-child(2) { translate: 0 2.5rem; }
}

/* Occasions */

.occasion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.occasion-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.occasion-link::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: 0;
  transition: scale 0.5s var(--ease-out);
}
.occasion-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.occasion-link:hover::after { scale: 1.6; }
.occasion-link > * { position: relative; z-index: 1; }

.occasion-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--metal);
  font: 650 1.1rem/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.5);
}
.theme-meadow .occasion-mark, .theme-flag .occasion-mark, .theme-champagne .occasion-mark, .theme-morning .occasion-mark { background: var(--accent-soft); color: var(--accent-2); }
.occasion-icon { width: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.occasion-name { font: 600 1.3rem/1.15 var(--font-display); overflow-wrap: anywhere; }
.occasion-teaser { font-size: 0.98rem; color: var(--ink-2); }

/* The morning, step by step */

.morning-grid { display: grid; gap: 2rem; }
.morning-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); rotate: -1.5deg; }

.morning-steps {
  position: relative;
  margin: 0;
  padding: 0 0 0 3.25rem;
  list-style: none;
  view-timeline: --morning block;
}

/* The stem the steps hang on */
.morning-steps::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--leaf), var(--leaf-2));
  transform-origin: top;
}

.step { position: relative; padding-bottom: 2.25rem; }
.step:last-child { padding-bottom: 0; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); }
.step-flower { position: absolute; left: -3.25rem; top: -0.35rem; width: 2.3rem; height: 2.3rem; overflow: visible; }

@media (min-width: 60rem) {
  .morning-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
  .morning-intro { position: sticky; top: calc(var(--topbar) + 2rem); }
}

/* Event and city pages */

.occasion-grid { display: grid; gap: 2.5rem; }
.occasion-text h2 { margin-top: 0.25rem; }
.prose p { font-size: 1.15rem; }
.prose > p:first-child::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  font: 600 3.4em/0.8 var(--font-display);
  color: var(--accent-2);
}

.music-card {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--accent);
}
.music-card h2 { font-size: 1.9rem; }
.music-card .prose p { font-size: 1.05rem; }
.music-card .prose > p:first-child::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.city-links { font-size: 1rem; color: var(--ink-2); }
.music-card * + h2 { margin-top: 1.75rem; }

.admin-link { display: inline-block; margin-bottom: 0.5rem; font-size: 0.9rem; }

@media (min-width: 60rem) {
  .occasion-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
}

/* The musicians page */

.musician { display: grid; gap: 1.75rem; align-items: center; margin-bottom: clamp(4rem, 10vw, 7rem); }
.musician:last-child { margin-bottom: 0; }
.musician-photo { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 26rem; }
.musician-text { position: relative; }
.musician-text h2 { font-size: clamp(2.6rem, 6vw, 4rem); }
.musician-text .instrument { width: 8rem; height: 8rem; margin-bottom: 1rem; }

@media (min-width: 52rem) {
  .musician { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .musician:nth-child(even) .musician-photo { order: 2; justify-self: end; }
}

/* Greetings */

.greetings { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }

.greeting-frame { display: grid; gap: 1.5rem; }

.greeting-card {
  position: relative;
  margin: 0;
  padding: 2.75rem 1.5rem 1.5rem;
  border-radius: 0.5rem 1.75rem 0.5rem 1.75rem;
  background: var(--card);
  box-shadow: var(--shadow);
  rotate: -0.6deg;
}
.greeting-card:nth-child(2) { rotate: 0.8deg; }
.greeting-card::before {
  content: "“";
  position: absolute;
  top: -0.6rem;
  left: 1.1rem;
  font: 700 5.5rem/1 var(--font-display);
  color: var(--accent);
}
.greeting-card blockquote { margin: 0; font: italic 400 1.15rem/1.6 var(--font-display); }
.greeting-card blockquote p:last-child { margin-bottom: 0; }
.greeting-card figcaption { margin-top: 1rem; font-weight: 700; color: var(--accent-2); }
.greeting-card figcaption::before { content: "— "; }

.greeting-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.greeting-thanks { margin: 0; padding: 1.5rem; border-radius: var(--radius); background: #e5f1dc; color: #284d22; font-size: 1.15rem; }
.greeting-warning { background: #fbeed0; color: #6a4a08; }

.greeting-form { max-width: 40rem; }

@media (min-width: 48rem) {
  .greeting-frame { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .greeting-frame > .greeting-form, .greeting-frame > .greeting-thanks { grid-column: 1 / -1; }
}

/* Forms (the greeting form) */

.mb-3 { margin-bottom: 1.1rem; }
.form-label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.form-control {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-control.is-invalid { border-color: #c0392b; }
.invalid-feedback { margin-top: 0.35rem; color: #a3271c; font-weight: 700; }
.greeting-website { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flash {
  width: min(100% - 2 * var(--gutter), 44rem);
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #e5f1dc;
  color: #284d22;
  font-weight: 700;
}

/* Contact */

.contact {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 8rem);
  color: #fff;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 70%, #1a1206) 10%, rgb(20 14 6 / 0.82) 70%),
    image-set(url("/assets/tuba-3bd13840.avif") type("image/avif"), url("/assets/tuba-2305de9c.jpg") type("image/jpeg")) center / cover;
}
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { font-size: clamp(2.3rem, 6vw + 0.5rem, 4rem); }
.contact p { font-size: 1.15rem; color: rgb(255 255 255 / 0.85); max-width: 34rem; }
.contact a { color: #fff; }

.contact-inner { display: grid; gap: 2rem; }
.contact-actions { display: grid; gap: 0.75rem; align-content: start; }

.contact-card {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.4rem;
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
a.contact-card:hover { background: rgb(255 255 255 / 0.18); transform: translateX(4px); text-decoration: none; }
.contact-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.contact-value { font: 600 1.6rem/1.2 var(--font-display); }
.contact-value-pair { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.contact-card-mail .contact-value { font-size: 1.3rem; overflow-wrap: anywhere; }

@media (min-width: 56rem) {
  .contact-inner { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
}

/* Footer */

.footer { position: relative; margin-top: -1px; background: var(--paper); }
.flag-line { display: block; width: 100%; height: clamp(3.5rem, 8vw, 6.5rem); position: relative; z-index: 1; overflow: visible; }
.footer-body { padding: 1rem 0 3rem; }
.footer-lead { font-size: 1.05rem; color: var(--ink-2); max-width: 52rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.footer-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-nav a:hover { border-color: var(--accent); }
.footer-small { font-size: 0.9rem; color: var(--ink-2); }

/* Call bar on phones */

.callbar {
  position: fixed;
  z-index: 40;
  inset: auto 0.75rem max(0.75rem, env(safe-area-inset-bottom)) 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 40px -12px rgb(20 14 6 / 0.6);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.callbar a:last-child { background: var(--accent-2); }
.callbar svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 48rem) {
  .callbar { display: none; }
}

/* ---------- Motion ---------- */

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sunrise { from { transform: translateY(45%) scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stem { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 1.5rem) rotate(-12deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(2.5rem, -7rem) rotate(14deg); }
}
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(3rem, 32rem) rotate(320deg); }
}
@keyframes twinkle { 0%, 100% { transform: scale(0.2) rotate(0); opacity: 0.2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes bubble { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(0.8rem, -22rem); } }
@keyframes sway { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
@keyframes bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-3px); } }
@keyframes callbar-in { from { transform: translateY(150%); } to { transform: none; } }
@keyframes topbar-solid { to { background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 8px 30px -18px rgb(40 25 5 / 0.5); } }

@media (prefers-reduced-motion: no-preference) {
  /* The hero wakes up when the page opens */
  .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.36s; }
  .hero .sun { animation: sunrise 2.4s var(--ease-out) both; }
  .hero .arch { animation: rise 1s 0.1s var(--ease-out) both; }
  .badge-years { animation: pop 0.8s 1.6s var(--ease-pop) both; }

  .garland .vine { animation: draw 2.6s 0.3s var(--ease-out) both; }
  .garland .bloom { animation: pop 0.7s var(--ease-pop) both; }
  .garland .d0 { animation-delay: 0.4s; }  .garland .d1 { animation-delay: 0.6s; }
  .garland .d2 { animation-delay: 0.8s; }  .garland .d3 { animation-delay: 1s; }
  .garland .d4 { animation-delay: 1.2s; }  .garland .d5 { animation-delay: 1.4s; }
  .garland .d6 { animation-delay: 1.6s; }  .garland .d7 { animation-delay: 1.8s; }
  .garland .d8 { animation-delay: 2s; }    .garland .d9 { animation-delay: 2.2s; }
  .garland .d10 { animation-delay: 2.4s; } .garland .d11 { animation-delay: 2.6s; }

  .note { animation: drift 7s ease-in-out infinite; }
  .note.n0 { animation-delay: 2.5s; } .note.n1 { animation-delay: 4.2s; }
  .note.n2 { animation-delay: 5.9s; } .note.n3 { animation-delay: 7.6s; }

  /* Occasion motifs keep moving gently */
  .motif-petals .petal { animation: fall 9s linear infinite; }
  .petal.p0 { left: 8%;  animation-delay: 1s; }   .petal.p1 { left: 30%; animation-delay: 3s; animation-duration: 11s; }
  .petal.p2 { left: 55%; animation-delay: 2s; }   .petal.p3 { left: 76%; animation-delay: 5s; animation-duration: 10s; }
  .petal.p4 { left: 92%; animation-delay: 7s; }   .petal.p5 { left: 18%; animation-delay: 6s; animation-duration: 12s; }
  .petal.p6 { left: 42%; animation-delay: 8s; }   .petal.p7 { left: 66%; animation-delay: 10s; animation-duration: 8s; }
  .petal.p8 { left: 86%; animation-delay: 12s; }

  .sparkle { animation: twinkle 3.2s ease-in-out infinite; }
  .sparkle.s1 { animation-delay: 0.6s; } .sparkle.s2 { animation-delay: 1.4s; } .sparkle.s3 { animation-delay: 2.1s; }
  .sparkle.s4 { animation-delay: 0.3s; } .sparkle.s5 { animation-delay: 1.9s; } .sparkle.s6 { animation-delay: 2.6s; }
  .sparkle.s7 { animation-delay: 1.1s; } .sparkle.s8 { animation-delay: 2.9s; } .sparkle.s9 { animation-delay: 1.6s; }

  .bubble { animation: bubble 6s ease-in infinite; }
  .bubble.b0 { left: 10%; animation-delay: 0.5s; } .bubble.b1 { left: 22%; animation-delay: 2.5s; }
  .bubble.b2 { left: 34%; animation-delay: 1.2s; } .bubble.b3 { left: 46%; animation-delay: 3.8s; }
  .bubble.b4 { left: 58%; animation-delay: 0.2s; } .bubble.b5 { left: 70%; animation-delay: 2s; }
  .bubble.b6 { left: 82%; animation-delay: 4.4s; } .bubble.b7 { left: 90%; animation-delay: 1.6s; }
  .bubble.b8 { left: 16%; animation-delay: 4.9s; } .bubble.b9 { left: 40%; animation-delay: 5.5s; }
  .bubble.b10 { left: 64%; animation-delay: 3.1s; } .bubble.b11 { left: 76%; animation-delay: 5.9s; }

  .flag { animation: sway 3.4s ease-in-out infinite; }
  .flag:nth-child(odd) { animation-delay: -1.7s; animation-duration: 3s; }
  .flag:nth-child(3n) { animation-delay: -0.8s; }

  .popinjay .bird { animation: bob 2.8s ease-in-out infinite; }
  .popinjay .ribbon { animation: draw 2s 0.6s var(--ease-out) both; stroke-dasharray: 1; }

  .greeting-card, .trio-card-link, .occasion-link { will-change: auto; }

  /* -- A: browsers that tie animation to scrolling -- */
  @supports (animation-timeline: view()) {
    .sky { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
    .topbar { animation: topbar-solid linear both; animation-timeline: scroll(root); animation-range: 0 12rem; }
    .callbar { animation: callbar-in linear both; animation-timeline: scroll(root); animation-range: 30vh 55vh; }

    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }

    /* The morning's stem grows as you read down the steps */
    .morning-steps::before { animation: stem linear both; animation-timeline: --morning; animation-range: entry 30% cover 70%; }

    .grow { view-timeline: --grow block; }
    .grow .vine, .grow .instrument .tube { animation: draw linear both; animation-timeline: --grow; animation-range: entry 10% cover 50%; }
    .grow .instrument :is(.bell, .valve, .pst) { animation: fade-in linear both; animation-timeline: --grow; animation-range: entry 30% cover 50%; }
    .grow .bloom { animation: pop linear both; animation-timeline: --grow; animation-range: entry 40% cover 45%; }
    /* The footer sits at the very end of the page, so its meadow must finish growing
       by the time the footer is fully on screen */
    .footer .vine { animation-range: entry 0% entry 60%; }
    .footer .bloom { animation-range: entry 35% entry 75%; }
    .footer .bloom:is(.d1, .d5, .d9) { animation-range: entry 45% entry 85%; }
    .footer .bloom:is(.d2, .d6, .d10) { animation-range: entry 55% entry 95%; }
    .footer .bloom:is(.d3, .d7, .d11) { animation-range: entry 60% entry 100%; }

    /* Vines along both edges of wide screens, growing with the whole page */
    @media (min-width: 88rem) {
      .page-vine { display: block; position: fixed; top: calc(var(--topbar) + 1rem); bottom: 1rem; z-index: -1; width: 3.75rem; height: calc(100vh - var(--topbar) - 2rem); overflow: visible; pointer-events: none; }
      .page-vine-left { left: 1.5rem; }
      .page-vine-right { right: 1.5rem; scale: -1 1; }
      .page-vine .vine { animation: draw linear both; animation-timeline: scroll(root); }
      .page-vine .bloom { animation: pop linear both; animation-timeline: scroll(root); }
      .page-vine .d1 { animation-range: 6% 12%; }  .page-vine .d2 { animation-range: 16% 22%; }
      .page-vine .d3 { animation-range: 27% 33%; } .page-vine .d4 { animation-range: 38% 44%; }
      .page-vine .d5 { animation-range: 49% 55%; } .page-vine .d6 { animation-range: 60% 66%; }
      .page-vine .d7 { animation-range: 71% 77%; } .page-vine .d8 { animation-range: 82% 88%; }
      .page-vine .d9 { animation-range: 92% 98%; }
    }

    /* A slow parallax: the photo in the arch drifts as the hero scrolls away */
    .arch img { animation: hero-parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes hero-parallax { to { transform: translateY(12%) scale(1.08); } }
  }

  /* -- B: other browsers; motion_controller.js marks things as they come into view -- */
  html.motion-js .reveal { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  html.motion-js .reveal:not(.is-visible) { opacity: 0; transform: translateY(2.5rem); }
  html.motion-js .grow:not(.is-visible) :is(.vine, .instrument .tube) { stroke-dashoffset: 1; }
  html.motion-js .grow:not(.is-visible) .instrument :is(.bell, .valve, .pst) { opacity: 0; }
  html.motion-js .grow:not(.is-visible) .bloom { transform: scale(0); }
  html.motion-js .grow.is-visible :is(.vine, .instrument .tube) { animation: draw 1.8s var(--ease-out) both; }
  html.motion-js .grow.is-visible .instrument :is(.bell, .valve, .pst) { animation: fade-in 0.8s 0.8s both; }
  html.motion-js .grow.is-visible .bloom { animation: pop 0.7s 0.9s var(--ease-pop) both; }
}
