/* Base reset & global styles */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-copper-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-malt);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Compound trail — signature wayfinding line on desktop */
.compound-trail {
  position: relative;
}

@media (min-width: 64rem) {
  .compound-trail::before {
    content: "";
    position: absolute;
    left: 2.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      var(--color-stone) 0,
      var(--color-stone) 8px,
      transparent 8px,
      transparent 16px
    );
    opacity: 0.6;
  }
}

/* Shared section shell */
.section {
  padding: var(--section-pad) var(--space-lg);
  background: var(--section-bg);
  color: var(--section-fg);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--section-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  max-width: var(--max-width-narrow);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: var(--max-width-narrow);
  margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-copper);
  color: var(--color-white);
  border-color: var(--color-copper);
}

.btn--primary:hover {
  background: var(--color-copper-light);
  border-color: var(--color-copper-light);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-stone);
}

.btn--secondary:hover {
  border-color: var(--color-copper);
  color: var(--color-copper);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

/* Badge */
.badge {
  display: inline-block;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-linen);
  color: var(--color-ink-muted);
}

.badge--free {
  background: var(--color-sage);
  color: var(--color-white);
}

.badge--live {
  background: var(--color-malt);
  color: var(--color-ink);
}

/* Card base */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-stone);
}

.card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: var(--space-lg);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card__meta {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.card__action {
  margin-top: var(--space-md);
}

/* Visually hidden */
.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;
}
