/* ARETAVA LIMITED - Global Styling & Typography */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Manrope:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

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

/*
  Cross-browser page scroll rules:
  - Never set overflow-x on both html and body.
  - Never pair overflow-x with overflow-y:auto on html.
  - Keep the document scrolling on the viewport.
*/
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  background-color: var(--color-ivory);
  color: var(--color-navy);
  height: auto;
  max-width: 100%;
  /* Only the root clips sideways overflow. Body stays overflow:visible so the viewport can scroll. */
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow: visible;
  position: relative;
}

body.menu-locked {
  overflow: hidden !important;
  touch-action: none;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: var(--color-champagne);
  color: var(--color-navy);
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-body);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
