/* Storefront — local preview only. No third-party scripts, fonts, or analytics. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #f6f0e6;
  --sand-dark: #ece3d4;
  --ink: #2b2a28;
  --muted: #5c574e;
  --line: #d9d0c2;
  --paper: #fffdf9;
  --max: 72rem;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(43, 42, 40, 0.07);

  /* Dos Crayones */
  --dc-cream: #fff8e7;
  --dc-paper: #fffcf5;
  --dc-blue: #1f52d6;
  --dc-blue-ink: #173fa8;
  --dc-red: #e63946;
  --dc-navy: #283454;
  --dc-green: #1f855a;
  --dc-font: "Fredoka", "Segoe UI", system-ui, sans-serif;

  /* Miss Maya Publishing */
  --mm-bg: #f3f6f1;
  --mm-paper: #fbf8f2;
  --mm-forest: #2c5a4a;
  --mm-forest-deep: #1d3f34;
  --mm-sage: #7a9e8a;
  --mm-rose: #b15a56;
  --mm-sky: #5b87a8;
  --mm-gold: #b0893a;
  --mm-font: "Literata", Georgia, "Palatino Linotype", Palatino, serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--dc-blue); }
a:hover { color: var(--dc-blue-ink); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Header (shared, neutral) ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-row img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand-row .marks {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wordmark strong {
  font-family: var(--dc-font);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}

.wordmark span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.25;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

nav a:hover, nav a[aria-current="page"] { color: var(--dc-blue-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 1.75rem 0 2rem;
}

.hero h1 {
  font-family: var(--dc-font);
  font-weight: 650;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--dc-navy);
  overflow-wrap: anywhere;
}

.hero p { margin: 0 0 0.8rem; max-width: 44rem; color: var(--muted); }
.hero .es { color: var(--ink); }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip:hover { color: var(--ink); border-color: #c8bdab; }
.chip-dc { background: var(--dc-cream); border-color: #ead9a8; color: var(--dc-navy); }
.chip-mm { background: var(--mm-bg); border-color: #c9d6cc; color: var(--mm-forest-deep); }
.chip-finds { background: #fff; }

/* ---------- Shared product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 1 / 1;
  background: #f3eee4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.card-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.price {
  font-weight: 750;
  font-size: 1.1rem;
}

.ages {
  font-size: 0.88rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 0;
}

.btn:hover { filter: brightness(0.95); }

.btn-amazon-dc {
  background: var(--dc-blue);
  color: #fff;
}
.btn-amazon-dc:hover { color: #fff; background: var(--dc-blue-ink); }

.btn-amazon-mm {
  background: var(--mm-forest);
  color: #fff;
}
.btn-amazon-mm:hover { color: #fff; background: var(--mm-forest-deep); }

.btn-etsy {
  background: #c45500;
  color: #fff;
}
.btn-etsy:hover { color: #fff; background: #9a4200; }

.coming {
  margin-top: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--sand-dark);
  color: var(--muted);
}

/* ---------- Dos Crayones section ---------- */
.section-dc {
  background:
    radial-gradient(circle at 1.2rem 1.2rem, rgba(230, 57, 70, 0.11) 0 0.38rem, transparent 0.42rem),
    radial-gradient(circle at 2.4rem 2.1rem, rgba(31, 82, 214, 0.11) 0 0.28rem, transparent 0.32rem),
    var(--dc-cream);
  background-size: 3.6rem 3.2rem, 3.6rem 3.2rem, auto;
  color: var(--dc-navy);
  padding: 2.2rem 0 2.6rem;
}

.section-dc .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.section-dc .section-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

.section-dc h2 {
  font-family: var(--dc-font);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0;
  color: var(--dc-navy);
}

.section-dc .lede {
  max-width: 42rem;
  color: #3d475c;
  margin: 0 0 1.35rem;
}

.section-dc .subhead {
  font-family: var(--dc-font);
  font-weight: 650;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--dc-blue-ink);
}

.section-dc .card-title {
  font-family: var(--dc-font);
  font-weight: 600;
  color: var(--dc-navy);
}

.section-dc .price { color: var(--dc-navy); }

/* ---------- Miss Maya section ---------- */
.section-mm {
  background:
    linear-gradient(180deg, #eef4ee 0%, var(--mm-bg) 40%, #e8efe6 100%);
  color: var(--mm-forest-deep);
  padding: 2.2rem 0 2.6rem;
}

.section-mm .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.section-mm .section-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(29, 63, 52, 0.12);
  border: 3px solid #fff;
}

.section-mm h2 {
  font-family: var(--mm-font);
  font-weight: 650;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: 0;
  color: var(--mm-forest-deep);
  letter-spacing: -0.02em;
}

.section-mm .lede {
  max-width: 42rem;
  color: #3d5248;
  margin: 0 0 1.35rem;
}

.section-mm .card {
  background: var(--mm-paper);
  border: 1px solid #e3e8df;
  box-shadow: 0 10px 24px rgba(29, 63, 52, 0.06);
  border-radius: 12px;
}

.section-mm .card-media { background: #ece7db; }

.section-mm .card-title {
  font-family: var(--mm-font);
  font-weight: 650;
  color: var(--mm-forest-deep);
}

.section-mm .price { color: var(--mm-forest); }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44rem;
}

/* ---------- Affiliate / finds ---------- */
.page-finds { background: var(--paper); }

.finds-hero {
  padding: 1.6rem 0 0.4rem;
}

.finds-hero h1 {
  font-family: var(--dc-font);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.7rem;
  color: var(--dc-navy);
}

.disclosure {
  background: #fff8d6;
  border: 1px solid #ead889;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-weight: 600;
}

.finds-hero .lede { color: var(--muted); max-width: 46rem; }

.finds-section { padding: 0.5rem 0 1.4rem; }

.finds-section h2 {
  font-family: var(--dc-font);
  font-size: 1.3rem;
  margin: 0 0 0.8rem;
  color: var(--dc-navy);
}

.finds-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .finds-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.finds-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.finds-item h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.paid { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.finds-item a.paid-link {
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.safety {
  background: #f7f1e6;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2b2a28;
  color: #ece7de;
  padding: 1.6rem 0 2rem;
  margin-top: 0;
}

.site-footer a { color: #ffd38a; }
.site-footer a:hover { color: #ffe7b8; }

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.footer-brands img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.footer-disc {
  font-weight: 600;
  margin: 0.4rem 0;
}

.footer-meta {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #c9c1b3;
}

.footer-meta a { color: #e7d7b8; }

/* Featured book: full-width horizontal card on larger screens */
@media (min-width: 800px) {
  .grid > .card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
  }
  .grid > .card.featured .card-media {
    flex: 0 0 40%;
    max-width: 24rem;
    aspect-ratio: 1 / 1;
  }
  .grid > .card.featured .card-body {
    justify-content: center;
    padding: 1.25rem 1.5rem 1.4rem;
    gap: 0.55rem;
  }
  .grid > .card.featured .card-meta { margin-top: 0.85rem; }
  .grid > .card.featured .card-title { font-size: 1.25rem; }
  .grid > .card.featured .btn { width: auto; min-width: 12rem; max-width: 18rem; }
}

/* Printables: shop-wide Etsy link */
.shop-link {
  margin: -0.55rem 0 1.35rem;
}
.shop-link a {
  font-family: var(--dc-font);
  font-weight: 650;
  color: var(--dc-blue-ink);
  text-decoration: none;
}
.shop-link a:hover,
.shop-link a:focus-visible {
  text-decoration: underline;
}
.shop-link-after {
  margin: 1.4rem 0 0;
  text-align: center;
}
