/* ============================================================
   Groovy Font Archive — design tokens
   Direction: late-70s psychedelic vinyl-sleeve / concert-poster.
   ============================================================ */
:root {
  --ink: #2b1810;
  --ink-soft: #3c2416;
  --paper: #f0ddb8;
  --paper-soft: #e8d1a0;
  --sun: #e8891c;
  --rust: #b24329;
  --avocado: #6b7a3a;
  --hotpink: #d6447d;

  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --signature: 'Bungee Shade', var(--display);
  --body: 'Archivo', ui-sans-serif, system-ui, sans-serif;

  --wave-h: 48px;
  --radius-card: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--hotpink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 3.5rem 1.5rem 5rem;
  text-align: center;
}

.hero__sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 1400px;
  transform: translate(-50%, -55%);
  animation: spin 140s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes spin {
  from {
    transform: translate(-50%, -55%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -55%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__sunburst {
    animation: none;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 62rem;
  margin: 0 auto;
}

.hero__wordmark {
  font-family: var(--signature);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--sun);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 42rem;
  margin: 0 auto;
  color: var(--paper-soft);
}

.wave-divider {
  display: block;
  width: 100%;
  height: var(--wave-h);
  margin-top: -1px;
}

/* ---------- Catalog grid ---------- */
.catalog {
  max-width: 78rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, rotate 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  rotate: -1deg;
  box-shadow: 9px 10px 0 var(--rust);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-soft);
  border-bottom: 3px solid var(--ink);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avocado);
  margin: 0;
}

.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0;
}

.card__excerpt {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.card__cta {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

/* ---------- Persistent site header (all pages) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ink);
  border-bottom: 3px solid var(--sun);
  padding: 1rem 1.5rem;
}

.site-header__logo {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}

.site-header__cta {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
  background: var(--hotpink);
  color: var(--paper);
}

/* ---------- Product page ---------- */

.product {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1.5rem 4.5rem;
  overflow: hidden;
}

.product__sunburst {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translate(-50%, -30%);
  animation: spin 140s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .product__sunburst {
    animation: none;
  }
}

.product__inner {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
}

@media (min-width: 860px) {
  .product__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.product__frame {
  position: relative;
  border: 4px solid var(--paper);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 10px 10px 0 var(--rust);
}

.product__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__content .eyebrow {
  color: var(--sun);
}

.product h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
}

.product__desc {
  font-size: 1.05rem;
  color: var(--paper-soft);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.95rem 2.1rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--hotpink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--hotpink);
  color: var(--paper);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 7px 8px 0 var(--sun);
}

.back-to-all {
  margin: 1.25rem 0 0;
}

.back-to-all a {
  color: var(--paper-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-to-all a:hover,
.back-to-all a:focus-visible {
  color: var(--sun);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--paper-soft);
  border-top: 3px solid var(--ink);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.disclosure {
  max-width: 46rem;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

