/* ==========================================================================
   SHN Ceylon — Base / Reset / Global Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--shn-ink);
  background-color: var(--shn-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font-base);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--shn-ink);
}

p {
  margin: 0;
}

/* ---- Generic page container ----
   Mirrors the Figma frame: 1440px max width with 30px side gutters.
   On large desktop monitors (>=1440px viewport) the container grows
   fluidly alongside the viewport, capping out at 1920px so the layout
   doesn't look stranded in a fixed island on big screens. */
.shn-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (min-width: 1440px) {
  .shn-container {
    max-width: min(1920px, 100vw);
    padding-inline: clamp(30px, 4vw, 60px);
  }
}

/* ---- Focus visibility (accessibility floor) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--shn-green-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---- Section spacing rhythm ---- */
.section-pad {
  padding-block: clamp(48px, 6vw, 90px);
}

/* ---- Utility: eyebrow label ---- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shn-sage);
  margin-bottom: 12px;
}
