/* Homepage hero. Spacing uses the shared step scale from tokens.css (--space-1 4px ... --space-9 80px), with the pixel value as each
   fallback. Load tokens.css first. */
:root {
  --color-text: #2B2623;
  --color-surface: #F7F4EF;
  --color-surface-raised: #FFFFFF;
  --color-border: #7A736C;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

.hero {
  /* Paper grain: a seamless 1024px tile (117 KB WebP, average colour = the page colour, made by tools/make-paper-grain.py) repeated over the warm white. Ink text stays above 12:1 on its darkest pixel. */
  background-color: var(--color-surface);
  background-image: url("../images/museum-vendors-paper-grain.webp");
  background-repeat: repeat;
  background-size: 1024px 1024px;
  color: var(--color-text);
  padding: var(--space-8, 64px) var(--space-5, 24px);
}

.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Warmth for the empty right half on wide screens: the logo mark, large and quiet. Decorative only, no pointer events. */
@media (min-width: 1025px) {
  .hero__inner::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: var(--space-8, 64px);
    width: 112px;
    background: url("../images/museum-vendors-mark.svg") center / contain no-repeat;
    pointer-events: none;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 var(--space-5, 24px);
  max-width: 20ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4, 16px);
}

.hero__button {
  box-sizing: border-box; /* width: 100% on phones must include the padding */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-5, 24px);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
}

.hero__button:hover {
  background: var(--color-surface);
}

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

@media (max-width: 760px) {
  .hero {
    padding: var(--space-7, 48px) var(--space-4, 16px);
  }
  .hero__title {
    font-size: 32px;
    max-width: none;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__button {
    width: 100%;
  }
}
