*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

/* Page scrollbar = browser default (no custom thumb/track colors) */

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--pink-soft);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 100%;
  padding-inline: 0;
  box-sizing: border-box;
}

main.container,
main {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }
}

.gradient-text {
  background-image: linear-gradient(120deg, var(--lavender) 10%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--lavender);
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    color: var(--lavender);
  }
}

.gradient-text-hot {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-wash {
  position: relative;
  /* clip only X — never trap fixed menu / drawer */
  overflow-x: clip;
  overflow-y: visible;
  min-height: 100vh;
  background: #ffffff;
}

/* No tinted page blobs — pure white canvas on every page */
.page-wash::before,
.page-wash::after {
  content: none;
  display: none;
}

.page-wash > * {
  position: relative;
  z-index: 1;
}

/* Header + menu must sit above every page card (main also has z-index: 1) */
.page-wash > #site-header,
body > #site-header {
  z-index: 5000;
}

body > .nav-backdrop,
body > .site-drawer {
  z-index: 10000;
}
