/* ============================================================
   BASE — reset, typography defaults, global utilities
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft crossfade between pages (Chromium / Safari) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

@media (min-width: 576px) {
  html { font-size: 18px; }
}

@media (min-width: 992px) {
  html { font-size: 20px; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-header);
  background: #fefcf4;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(var(--space-5), 5vw, var(--space-8));
}

/* --- Section spacing --- */
.section {
  padding: var(--space-10) 0;
}

.section--tight {
  padding: var(--space-8) 0;
}

/* --- Type helpers --- */
.display {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  color: var(--color-header);
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  color: var(--color-header);
}
.h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-header);
}

.text-secondary { color: var(--color-text-secondary); }
.text-center    { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: 0.875rem;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-surface-sage);
  border-color: var(--color-surface-sage);
  color: var(--color-header);
}

.btn--primary:hover {
  background: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  color: var(--color-header);
  box-shadow: 0 4px 14px rgba(238, 171, 103, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-header);
  border: 2px solid var(--color-header);
}

.btn--outline:hover {
  border-color: var(--color-accent-blush);
  background: var(--color-accent-blush);
  color: var(--color-header);
}

/* --- Tag / badge --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-tan-light);
  opacity: 0.4;
  margin: 0 auto;
  max-width: var(--max-width);
}
