/* Design tokens + base reset — the "gallery walls" palette. */

:root {
  --color-bg: #121110;
  --color-wall: #171512;
  --color-wall-raised: #1c1b17;
  --color-text: #f3efe6;
  --color-text-dim: #b6b0a2;
  --color-text-faint: #7d786d;
  --color-accent: #c9a961;
  --color-accent-dim: #8a7642;
  --color-border: rgba(243, 239, 230, 0.12);
  --color-border-strong: rgba(243, 239, 230, 0.22);
  --color-scrim: rgba(10, 9, 8, 0.55);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container-width: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-gallery: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3, blockquote, p, figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.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;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Reveal-on-scroll: main.js itself applies the initial hidden state (via
   .reveal-init) right before observing, then adds .is-visible when a section
   scrolls into view. Content stays fully visible if JS never runs. */
[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-gallery), transform 0.9s var(--ease-gallery);
}

[data-reveal].reveal-init.is-visible {
  opacity: 1;
  transform: none;
}
