/* The look shared by every page: palette, background art, glass panels and footer. */

:root {
  --gutter: clamp(16px, 4vw, 56px);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ground: #ffffff;
  --ink: #241a38;
  --soft: #554c68;
  --accent: #b23f70;
  --button-text: #fff;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --shadow: rgba(90, 50, 110, 0.14);
  --art: url("../../images/home/bg-bloom.svg");
  --wash: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 32%, rgba(255, 255, 255, 0) 60%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}

/* The art stays put while the page scrolls. lvh avoids a jump when mobile address bars hide. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background-image: var(--wash), var(--art);
  background-position: 72% 30%;
  background-repeat: no-repeat;
  background-size: cover;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 18px 50px var(--shadow);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.site-footer a,
.site-footer a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Phones and upright tablets get artwork laid out for a tall screen */
@media (max-width: 860px) and (orientation: portrait) {
  :root {
    --art: url("../../images/home/bg-bloom-portrait.svg");
  }

  body::before {
    background-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
