/* base.css — reset, defaults, typography scale, layout utilities (Bento 2026) */

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

/* No glassmorphism anywhere on the site — blanket ban, independent of any
   individual selector that might otherwise set a blur value. */
* {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* <em> is used sitewide as a plain styling wrapper, not semantic emphasis —
   flatten the browser's default italic; individual components opt back in. */
em { font-style: normal; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bento-white);
  color: var(--bento-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bento-ink);
  margin: 0 0 var(--sp-3);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 1.55rem + 1.8vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); letter-spacing: -0.018em; }
h4 { font-size: 1.125rem; letter-spacing: -0.012em; }

p { margin: 0 0 var(--sp-3); color: var(--bento-ink-soft); }
small { font-size: 0.8125rem; color: var(--bento-ink-soft); }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; }

::selection { background: var(--bento-tan-200); color: var(--bento-ink); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

.icon-xs { width: 13px; height: 13px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

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

:focus-visible {
  outline: 2px solid var(--bento-tan-300);
  outline-offset: 2px;
  border-radius: 4px;
}

/* No page in the redesigned journey should ever scroll horizontally */
html, body { max-width: 100%; }

/* Page-enter fade, mirrors the loader hand-off so content doesn't pop in */
@keyframes page-content-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#main-content {
  animation: page-content-in 0.35s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  #main-content { animation: none; }
}
