/* public/css/base.css */

/* ============================================================
   BASE — Reset, typography defaults, layout primitives
   Loads after tokens.css. No hardcoded values.
   ============================================================ */


/* ----------------------------------------------------------
   GOOGLE FONTS IMPORT
   Cormorant Garamond: 400, 500 (display)
   Inter: 400, 500 (sans)
   Cinzel: 400 (wordmark stand-in, v0 only)
   ---------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400&family=Cormorant+Garamond:wght@400;500&family=Inter:wght@400;500&display=swap');


/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-body-md);
  line-height: var(--leading-body);
  color: var(--color-sage);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}


/* ----------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */

.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

.t-display-md {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--leading-snug);
}

.t-body-lg {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
}

.t-body {
  font-family: var(--font-sans);
  font-size: var(--text-body-md);
  line-height: var(--leading-body);
}

.t-micro {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  line-height: var(--leading-micro);
}

.t-micro-lg {
  font-family: var(--font-sans);
  font-size: var(--text-micro-lg);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  line-height: var(--leading-micro);
}


/* ----------------------------------------------------------
   LAYOUT PRIMITIVES
   ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--gutter-desktop);
  }
}

.prose {
  max-width: var(--max-width-prose);
}


/* ----------------------------------------------------------
   SECTION DEFAULTS
   ---------------------------------------------------------- */

.section {
  padding-block: var(--space-16);
}

.section--light {
  background-color: var(--color-cream);
  color: var(--color-sage);
}

.section--dark {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

.section__label {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section__heading {
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-6);
}

.section--light .section__label {
  color: var(--color-sage);
}

.section--dark .section__label {
  color: var(--color-cream);
}

.section--light .section__heading {
  color: var(--color-forest);
}

.section--dark .section__heading {
  color: var(--color-cream);
}


/* ----------------------------------------------------------
   SCROLL REVEAL
   The one signature animation.
   Initial: clip-path hides from bottom, opacity 0
   Final: fully visible
   Respects prefers-reduced-motion.
   ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    opacity var(--transition-reveal),
    clip-path var(--transition-reveal);
}

.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 0;
    clip-path: none;
    transition: opacity 300ms ease;
  }
  .reveal.is-visible {
    opacity: 1;
  }
}


/* ----------------------------------------------------------
   FOCUS STYLES — visible keyboard navigation
   ---------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}


/* ----------------------------------------------------------
   SCREEN READER ONLY
   ---------------------------------------------------------- */

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