html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Liquid Glass header — colors driven by --glass-* custom properties,
   updated per scroll pixel in main.js so the tint tracks scroll position
   instead of snapping at a fixed threshold. */
#site-header {
  --glass-top: rgba(255, 255, 255, 0.16);
  --glass-bottom: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow-color: rgba(13, 27, 30, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --ink-color: #ffffff;
}

.glass-bar {
  position: relative;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px var(--glass-shadow-color),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* thin specular highlight along the top edge, like light catching glass */
.glass-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 30%);
  opacity: 0.8;
}

.glass-bar-mobile {
  background: linear-gradient(180deg, rgba(13, 27, 30, 0.55), rgba(13, 27, 30, 0.4));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(13, 27, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-link,
#menu-toggle {
  color: var(--ink-color);
}

.nav-link:hover {
  color: var(--ink-color);
  opacity: 0.7;
}

/* Logo mark — the source PNG is a solid black square, so instead of
   showing that hard edge we use it as a mask and paint the shape with
   currentColor, letting it float on the glass with no background box. */
.logo-mark {
  aspect-ratio: 535 / 808;
  background-color: var(--ink-color);
  -webkit-mask-image: url('../img/logo-mark.png');
  mask-image: url('../img/logo-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.15s linear;
}

.logo-mark--footer {
  background-color: rgba(249, 246, 241, 0.9);
}
