/* Shared pieces used on every section: width, buttons, labels */

.wrap {
  width: min(var(--content-wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--color-primary);
  color: #151515;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--color-primary-hover);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: oklch(1 0 0 / 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: oklch(1 0 0 / 0.08);
}

.btn-white {
  background: #ffffff;
  color: #151515;
}

.btn-white:hover,
.btn-white:focus-visible {
  background: #f3eee4;
}

.btn-ink {
  background: var(--color-ink);
  color: #f8f4ec;
}

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

.img-fallback {
  display: grid;
  place-items: center;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  min-height: 200px;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
  }
}
