/* ==========================================================================
   STILLHOUSE — base styles and text styles
   Breakpoints (STILLHOUSE.md §3.3): desktop 1200 · tablet 810 · mobile 390.
   Base = desktop. max-width 1199px = tablet. max-width 809px = mobile.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500&display=swap");

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

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;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);          /* explicit background, always */
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, picture, video { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius-image); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --- Layout primitives (Framer stacks) ----------------------------------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: max(20px, var(--gutter));
}
.section {
  padding-block: var(--section-y);
}
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* --- Text styles (names = Framer text styles) ---------------------------- */
.t-display-xl,
.t-display-l,
.t-h2,
.t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.t-display-xl {
  font-size: var(--display-xl-size);
  line-height: var(--display-xl-lh);
  letter-spacing: var(--display-xl-track);
}
.t-display-l {
  font-size: var(--display-l-size);
  line-height: var(--display-l-lh);
}
.t-h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
}
.t-h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: 600;
}
.t-italic { font-style: italic; color: var(--accent); }

.t-body-l {
  font-size: var(--body-l-size);
  line-height: var(--body-l-lh);
  margin: 0;
}
.t-body-m {
  font-size: var(--body-m-size);
  line-height: var(--body-m-lh);
  margin: 0;
}
.t-muted { color: var(--text-muted); }

/* Label: Manrope 500, uppercase, tracking 12%. Used for "N° 04 — THE GARDEN" */
.t-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--label-size);
  line-height: 1.4;
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* Time-of-day marginalia: 07:30, 13:00, 19:45 */
.t-time {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* --- Tablet (810–1199) ---------------------------------------------------- */
@media (max-width: 1199px) {
  :root {
    --display-xl-size: 112px;
    --display-l-size: 76px;
    --h2-size: 52px;
    --h3-size: 28px;
    --body-l-size: 18px;
    --section-y: 120px;
  }
}

/* --- Mobile (0–809) -------------------------------------------------------- */
@media (max-width: 809px) {
  :root {
    --display-xl-size: 64px;
    --display-l-size: 48px;
    --h2-size: 38px;
    --h3-size: 24px;
    --body-l-size: 17px;
    --section-y: 88px;
    --gutter: 20px;
  }
  .t-display-xl { --display-xl-lh: 0.95; }
}
