/* Nav bar */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 3px dashed #1E8FA6;
}
.nav {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.brand {
  margin-right: auto; text-decoration: none;
  font-weight: 700; font-size: 26px; color: #13707E;
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 17px; color: #2B2924;
}
.nav-links a:hover { background: #E3F3F5; color: #0E5560; }
.nav-links a[aria-current="page"] { background: #13707E; color: #FFFFFF; }
.nav-links a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid #E07A12; outline-offset: 2px; }

.nav-toggle {
  display: none; min-height: 44px; padding: 8px 14px; cursor: pointer;
  background: none; border: 2px solid #1E8FA6; border-radius: 10px;
  font: 600 16px 'Fredoka', system-ui, sans-serif; color: #13707E;
}

/* Phones: links collapse behind the Menu button */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 12px; padding: 12px 14px; }
  .brand { font-size: 22px; }
}

/* Main section: about Jacob's Crafts */
body { background: #FFFBF4; color: #2B2924; }
main { max-width: 1120px; margin: 0 auto; padding: 40px 20px 56px; }
.about {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px;
}
.about-logo {
  width: min(320px, 75vw); height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12));
}
.about-text {
  flex: 1 1 340px; min-width: 0; max-width: 560px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif; font-size: 19px; line-height: 1.6;
}
.about-text h1 {
  margin: 0; font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  font-size: clamp(34px, 6vw, 52px); line-height: 1.1; color: #13707E;
}
.about-text p { margin: 0; }
.about-text .giving {
  background: #FFF0E0; color: #8A4108; border-radius: 16px; padding: 14px 18px;
}
.about-text .giving strong { color: #C25E0B; }
@media (max-width: 760px) {
  main { padding-top: 28px; }
  .about-text { text-align: center; }
}

/* Categories section */
.categories { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.categories h2 {
  margin: 0; font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  font-size: clamp(30px, 5vw, 40px); color: #13707E; text-align: center;
}
.categories-hint {
  margin: 0; text-align: center; color: #615B51;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif; font-size: 17px;
}
.category-buttons {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 8px;
}
.category-btn {
  min-height: 64px; padding: 14px 16px; cursor: pointer;
  background: #FFFFFF; border: 3px dashed #1E8FA6; border-radius: 20px;
  font: 600 20px 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; color: #13707E;
  transition: background .15s ease, transform .15s ease;
}
.category-btn:hover { background: #E3F3F5; transform: translateY(-2px); }
.category-btn[aria-expanded="true"] { background: #13707E; border-style: solid; border-color: #13707E; color: #FFFFFF; }
.category-btn:focus-visible, .theme-btn:focus-visible { outline: 3px solid #E07A12; outline-offset: 2px; }

.category-panel {
  margin-top: 8px; padding: 24px; background: #FFFFFF; border-radius: 24px;
  border: 3px solid #13707E; display: flex; flex-direction: column; gap: 18px;
  scroll-margin-top: 90px;
}
.category-panel h3 {
  margin: 0; font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; font-size: 30px; color: #13707E;
}
.theme-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-btn {
  min-height: 44px; padding: 8px 16px; cursor: pointer; border-radius: 999px;
  background: #FFF0E0; border: 2px solid transparent; color: #8A4108;
  font: 700 16px 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.theme-btn:hover { border-color: #E07A12; }
.theme-btn[aria-pressed="true"] { background: #C25E0B; color: #FFFFFF; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
@media (max-width: 420px) { .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.design { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.design img {
  width: 100%; height: auto; aspect-ratio: 27 / 37; object-fit: cover;
  background: #F3EFE8; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.design figcaption {
  text-align: center; font: 700 15px 'Nunito', 'Segoe UI', system-ui, sans-serif; color: #2B2924;
}
.empty-note {
  margin: 0; padding: 28px 16px; text-align: center; border-radius: 16px;
  background: #F3EFE8; color: #615B51; font: 700 17px 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.categories { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: reduce) { .category-btn { transition: none; } }
.category-panel[hidden], .design[hidden], .empty-note[hidden] { display: none; }

/* Design numbers for ordering */
.design-num {
  display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px;
  background: #13707E; color: #FFFFFF; font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.order-note {
  margin: 0; padding: 12px 16px; border-radius: 14px; background: #E3F3F5; color: #2B2924;
  font: 600 16px 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.order-note a { color: #13707E; font-weight: 800; overflow-wrap: anywhere; }

/* Stickers: show the whole sticker on a light background */
.design.sticker img {
  aspect-ratio: 1 / 1; object-fit: contain; padding: 12px;
  background: #FFFFFF; border: 1px solid #E6DDD0; box-shadow: none;
}

/* Prices inside a category */
.price-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px;
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.price-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 16px;
  background: #FFF0E0; border-radius: 14px; font-size: 17px; font-weight: 700; color: #2B2924;
}
.price-list strong { color: #C25E0B; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tax-note { margin: -8px 0 0; font: 600 15px 'Nunito', 'Segoe UI', system-ui, sans-serif; color: #615B51; }

/* Color swatches */
.sub-head { margin: 0; font: 600 20px 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; color: #13707E; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font: 700 14px 'Nunito', 'Segoe UI', system-ui, sans-serif; color: #2B2924;
}
.swatch span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #8A8478; }

/* Your Name */
.name-example { margin: 0; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.name-example img { width: 100%; height: auto; border-radius: 16px; }
.name-example figcaption { font: 700 15px 'Nunito', 'Segoe UI', system-ui, sans-serif; color: #615B51; }
.layers {
  margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px;
  font: 600 17px 'Nunito', 'Segoe UI', system-ui, sans-serif; color: #2B2924;
}
.layers strong { color: #13707E; }
.cross-example { max-width: 300px; } 
/* Products inside a category (Paper Crafts) */
.product {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 22px; border-top: 2px dashed #CFE6EA; scroll-margin-top: 90px;
}
.category-panel > h3 + .product, .product-jump + .product { border-top: 0; padding-top: 0; }
.product-title {
  margin: 0; font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; font-size: 26px; font-weight: 600; color: #C25E0B;
}
.product-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.product-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: #E3F3F5; color: #0E5560; text-decoration: none;
  font: 700 16px 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.product-jump a:hover { background: #CFE6EA; }
