/* ============================================================
   BASE — Reset, typography defaults, global element styles
   ============================================================ */

/* ----------------------------------------------------------
   BOX MODEL RESET
---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------
   ROOT & BODY
---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   TYPOGRAPHY — Headings
---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(40px, 5.5vw, 80px);
}

h2 {
  font-size: clamp(30px, 3.8vw, 54px);
}

h3 {
  font-size: clamp(22px, 2.4vw, 34px);
}

h4 {
  font-size: clamp(18px, 1.8vw, 24px);
}

/* Italic emphasis in headings — rendered in Cormorant italic */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
}

/* ----------------------------------------------------------
   TYPOGRAPHY — Body
---------------------------------------------------------- */
p {
  max-width: 65ch;
  color: var(--color-muted);
}

p + p {
  margin-top: 1.1em;
}

/* Full-width paragraphs (inside grid/flex cells that constrain width) */
p.wide {
  max-width: none;
}

strong {
  font-weight: 500;
  color: var(--color-dark);
}

em {
  font-style: italic;
}

/* ----------------------------------------------------------
   LINKS
---------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

/* ----------------------------------------------------------
   LISTS
---------------------------------------------------------- */
ul, ol {
  list-style: none;
}

/* ----------------------------------------------------------
   MEDIA
---------------------------------------------------------- */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

/* ----------------------------------------------------------
   FORMS
---------------------------------------------------------- */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ----------------------------------------------------------
   UTILITY — Visually hidden (accessible)
---------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   UTILITY — Text helpers
---------------------------------------------------------- */
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-taupe);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--color-taupe);
  flex-shrink: 0;
}

/* Left-aligned eyebrow (no decorative lines) */
.eyebrow--left {
  justify-content: flex-start;
}
.eyebrow--left::before,
.eyebrow--left::after {
  display: none;
}

/* ----------------------------------------------------------
   UTILITY — Spacing
---------------------------------------------------------- */
.mt-sm  { margin-top: var(--sp-2); }
.mt-md  { margin-top: var(--sp-3); }
.mt-lg  { margin-top: var(--sp-5); }
.mt-xl  { margin-top: var(--sp-7); }
