/* Vita Cultura: alternate version, shared styles */

:root {
  --blue: #4DA5FF;          /* brand blue (Tom's swatch) */
  --ink: #0c0c0c;
  --paper: #F4EFE6;         /* sun-bleached limestone */
  --salmon: #F5E5DA;        /* pale Mediterranean salmon: paper with a little coral (Tom's pick, 2026-11-24; softened from #F5E1D5 the same day) */
  --coral: #F7B7A3;
  --bg: var(--salmon);      /* was var(--blue) until 2026-11-24 */
  --fg: var(--ink);
  /* Stand-in for TT Ricordi Allegria until a web licence is bought.
     Swap the first name in this list and everything follows. */
  --display: "TT Ricordi Allegria", "Belleza", "Optima", "Candara", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3vw, 48px);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.vc-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter);
  font-size: 15px;
  font-weight: 400;
}
.vc-nav__main, .vc-nav__side { display: flex; align-items: center; gap: 40px; }
.vc-nav__side { gap: 10px; }
.vc-nav a { position: relative; padding: 6px 0; }
.vc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.vc-nav a:hover::after, .vc-nav a[aria-current="page"]::after { transform: scaleX(1); }
/* About, Sync and Our Music: plain black, all text white */
body.black { --bg: #000; --fg: #fff; }
.vc-nav__home { display: none; }
/* About, Sync and Our Music on phones: a plain "Home" link where Menu sits on the home page */
.vc-nav__back { display: none; letter-spacing: .02em; }

.vc-nav__toggle {
  display: none; background: none; border: 0; padding: 8px 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; letter-spacing: .02em;
}

/* Phone menu */
.vc-menu {
  position: fixed; inset: 0; z-index: 30;
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px var(--gutter);
  gap: 6px;
}
.vc-menu[hidden] { display: none; }
.vc-menu a { font-family: var(--display); font-size: clamp(40px, 12vw, 64px); line-height: 1.1; }
.vc-menu small { margin-top: 28px; font-size: 15px; display: flex; gap: 18px; }
.vc-menu small a { font-family: var(--ui); font-size: 15px; }
.vc-menu__close {
  position: absolute; top: 14px; right: var(--gutter); width: 36px; height: 36px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
.vc-menu__close::before, .vc-menu__close::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: currentColor;
}
.vc-menu__close::before { transform: rotate(45deg); }
.vc-menu__close::after { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .vc-nav__main, .vc-nav__side { display: none; }
  .vc-nav__toggle, .vc-nav__back { display: block; } /* phones: Menu (Home on inner pages) sits top-left */
  .vc-nav__home { display: block; font-family: var(--display); font-size: 18px; letter-spacing: .08em; }
}

/* Inner pages on desktop: a small wordmark top-left that leads back home */
@media (min-width: 761px) {
  .inner .vc-nav__home { display: block; font-family: var(--display); font-size: 20px; letter-spacing: .08em; margin-right: 48px; }
  .inner .vc-nav__main { margin-right: auto; }
}
/* Keep the preview-only "All versions" button clear of the menu on narrower desktops */
@media (min-width: 761px) and (max-width: 1100px) {
  .inner .vc-versions-link { top: 72px; }
}

/* ---------- Masked lettering ---------- */

.vc-mask {
  position: relative;
  overflow: hidden;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  visibility: hidden; /* until the letters are drawn, so the raw video never flashes */
}
.vc-mask.is-masked { visibility: visible; }
.vc-mask > video, .vc-mask > canvas, .vc-mask > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ---------- Home ---------- */

body.home, body.inner {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
}
body.home { height: 100vh; height: 100svh; }
.vc-home {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
.vc-home .vc-mask {
  flex: 1 1 auto;
  min-height: 30vh;
  margin: 2vh var(--gutter) 0;
}
.vc-tagline {
  margin: 2.2vh 0 0;
  text-align: center;
  font-family: var(--ui);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 40px);
  letter-spacing: -.005em;
}
/* "Independent Music Group" sits to the right of VITA (placed by assets/js/lockup.js):
   right-aligned with the end of CULTURA, its last line on VITA's baseline */
.vc-home { position: relative; }
.vc-tagline--beside {
  position: absolute; margin: 0;
  line-height: 1.05; text-align: right;
  transform: translateY(calc(-100% + .16em)); /* lifts the text so its baseline (.16em above the box bottom at this line height) meets VITA's */
  visibility: hidden;
}
.vc-tagline--beside.is-placed { visibility: visible; }
@media (max-width: 760px) { .vc-tagline--beside { font-size: 17px; } } /* phones: two short lines beside VITA */
.vc-tagline--beside + .vc-motto { margin-top: 2.2vh; }

/* Line under the lettering: italic Belleza, widely spaced */
.vc-motto {
  margin: 1.2vh 0 0;
  text-align: center;
  font-family: var(--display); /* Belleza, like the lettering */
  font-style: italic;          /* Belleza has no italic, so the browser slants it */
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 24px);
  letter-spacing: .12em;
  text-indent: .12em;          /* balances the space letter-spacing adds after the last letter */
  word-spacing: 1em;
}

.vc-cities {
  margin-top: auto;
  padding: 5vh var(--gutter) 22px;
  font-size: clamp(12px, 1.05vw, 16px);
  overflow: hidden;
}
.vc-cities ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; gap: 24px;
  white-space: nowrap;
}
.vc-cities .dup { display: none; }

@media (max-width: 760px) {
  body.home { height: auto; }
  .vc-home .vc-mask { flex: 0 0 auto; min-height: 0; height: 56vh; height: 56svh; margin-top: 1vh; }
  .vc-cities ul {
    justify-content: flex-start; gap: 34px; width: max-content;
    animation: vc-tour 40s linear infinite;
  }
  .vc-cities .dup { display: list-item; }
}
@keyframes vc-tour { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .vc-cities ul { animation: none !important; flex-wrap: wrap; width: auto; }
  .vc-cities .dup { display: none !important; }
}

/* Endless random city tour (assets/js/cities.js), on every screen size.
   The script moves the list itself; spacing sits inside each item so widths are exact. */
.vc-cities.is-touring {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.vc-cities.is-touring ul {
  justify-content: flex-start; gap: 0; width: max-content;
  animation: none; will-change: transform;
}
.vc-cities.is-touring li { padding-right: clamp(36px, 4.2vw, 72px); }

/* ---------- Sole logo (Melograno) top left in the header ----------
   The tiled sun sits top left (links home) and a touch below centre, then About /
   Sync / Our Music on the left and Licensing Request / Contact on the right; phones:
   sun top left, Menu top right. Chosen by Tom 2026-11-28 (preview VC_sole2, Sole 3). */
.vc-nav--logo { justify-content: flex-start; }
.vc-nav .vc-nav__logo { flex: none; display: block; width: 58px; margin-right: 40px; padding: 0; line-height: 0; }
.vc-nav .vc-nav__logo::after { content: none; }
.vc-nav--logo .vc-nav__side, .vc-nav--logo .vc-nav__toggle { margin-left: auto; }
.vc-nav__logo img { display: block; width: 48px; height: 48px; position: relative; top: 6px; } /* a touch lower than centred */
@media (max-width: 760px) {
  .vc-nav__logo img { width: 40px; height: 40px; top: 5px; } /* phones: logo top left, Menu top right */
}

/* ---------- Inner pages (About / Sync / Our Music) ---------- */

.vc-page { flex: 1 1 auto; display: flex; flex-direction: column; }
.vc-page .vc-mask { height: clamp(110px, 17vw, 260px); margin: 6vh var(--gutter) 0; }
.vc-page__body {
  max-width: 36em; margin: 5vh auto 0; padding: 0 var(--gutter);
  font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; text-align: center;
}
.vc-page__body p { margin: 0 0 1em; }
.vc-page__body .muted { opacity: .65; font-size: .8em; }
.vc-page .vc-cities { padding-top: 6vh; }
/* Text-only page (About): the copy sits in the middle of the space */
.vc-page--text { justify-content: center; }
.vc-page--text .vc-page__body { margin: 0 auto; padding-bottom: 4vh; }
/* About: the white Melograno sun beneath the copy */
.vc-page__sun { display: block; width: 72px; height: 72px; margin: 2em auto 0; }
@media (max-width: 760px) { .vc-page__sun { width: 56px; height: 56px; } }

/* ---------- Small print ---------- */

.vc-versions-link {
  position: fixed; left: 50%; top: 21px; transform: translateX(-50%); z-index: 40;
  font: 11px/1 var(--ui); padding: 6px 8px; border-radius: 4px;
  background: rgba(0,0,0,.75); color: #fff; opacity: .55;
}
.vc-versions-link:hover { opacity: 1; }
@media (max-width: 760px) { .vc-versions-link { display: none; } } /* preview helper: desktop only */
