/* Mojoe Creations hub — mobile-first, no framework */
:root {
  --navy: #133249;
  --navy-deep: #0c2230;
  --gold: #bd9f66;
  --gold-lite: #d4b57a;
  --cream: #fbfbf6;
  --cream-dark: #f0ebe0;
  --ink: #133249;
  --muted: #4a6170;
  --holly: #7a2e32;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(19, 50, 73, 0.08);
  --radius: 1rem;
  --max: 42rem;
  --max-wide: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }

a:hover, a:focus-visible { color: var(--holly); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

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

/* Header / hero */
.hero {
  padding: 1.75rem 0 1.25rem;
  text-align: center;
}

.logo {
  width: min(100%, 28rem);
  margin: 0 auto 1rem;
}

.tag {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: var(--navy-deep);
}

.intro {
  margin: 0 auto 0.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.byline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy);
}

.byline strong { font-weight: 650; }

.rule {
  border: 0;
  height: 0;
  margin: 1.25rem auto 0;
  width: min(16rem, 70%);
  border-top: 2px solid var(--navy);
  border-bottom: 4px solid var(--gold);
  background: none;
}

/* Sections */
section {
  padding: 1.75rem 0 0.5rem;
}

.section-title {
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.45rem;
  text-align: center;
  margin: 0 0 0.35rem;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}

/* Store buttons — Linktree-style */
.stores {
  display: grid;
  gap: 0.7rem;
}

.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.85rem 1.2rem 0.8rem;
  min-height: 3.4rem;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover,
.store-btn:focus-visible {
  background: var(--navy-deep);
  color: var(--cream);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.store-btn .name {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.store-btn .blurb {
  font-size: 0.85rem;
  color: var(--gold-lite);
  font-weight: 500;
}

/* Books */
.books {
  display: grid;
  gap: 0.75rem;
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.book-card:hover,
.book-card:focus-visible {
  border-color: var(--gold);
  color: inherit;
}

.book-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.book-card .where {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Christmas grid */
.xmas-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--holly);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.grid .card {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.4rem);
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--cream-dark);
}

.card figcaption,
.card .caption {
  padding: 0.55rem 0.6rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
}

.more-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

/* Footer */
footer {
  margin-top: 2.25rem;
  padding: 1.75rem 0 2.25rem;
  background: var(--navy-deep);
  color: var(--cream);
}

footer a { color: var(--gold-lite); }

footer a:hover, footer a:focus-visible { color: #fff; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-weight: 650;
}

.contact, .copy {
  text-align: center;
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: #d7dde2;
}

.contact a { font-weight: 650; }

@media (min-width: 640px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
  .wrap-wide { width: min(100% - 2rem, var(--max-wide)); }
  .grid { gap: 1rem; }
  .grid .card { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 0.7rem); }
  .books { grid-template-columns: 1fr; }
  .hero { padding-top: 2.25rem; }
}

@media (min-width: 900px) {
  .grid .card { flex-basis: calc(25% - 1rem); max-width: calc(25% - 0.8rem); }
  /* Keep store buttons in a comfortable single column, Linktree-style */
  .stores { width: min(100%, 36rem); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-btn, .card { transition: none; }
}
