/*
Theme Name: Sassy 3D Prints
Description: Paisley's shop. Kid Made Prints. Sass Always Included.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sassy
*/

:root {
  --ink: #120d14;
  --ink-2: #1e1622;
  --white: #fff;
  --paper: #fff7fd;
  --pink: #ff2fd0;        /* neon pink: accents, text on dark */
  --pink-btn: #d4108f;    /* button fill: white text passes AA */
  --pink-btn-hover: #b80c7b;
  --purple: #6d3bd1;
  --purple-soft: #f1eaff;
  --text: #2a2130;
  --muted: #5d5166;
  --radius: 22px;
  --head: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pacifico", cursive;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 10px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: 56px 0; }
.section--tint { background: var(--paper); }
.section--purple { background: var(--purple-soft); }
.section--dark { background: var(--ink); color: #f3e9f5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.eyebrow { font-family: var(--head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; color: var(--purple); margin: 0 0 .3em; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--pink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.center .lede { margin-inline: auto; }
.script { font-family: var(--script); color: var(--pink-btn); font-weight: 400; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 12px 30px; border: 0; border-radius: 999px; background: var(--pink-btn); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.1; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #8a0a5d, 0 10px 24px rgba(255, 47, 208, .35); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--pink-btn-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #8a0a5d; }
.btn--small { min-height: 48px; font-size: 1.1rem; padding: 8px 22px; box-shadow: 0 4px 0 #8a0a5d; }
.btn--block { width: 100%; }
.btn--purple { background: var(--purple); box-shadow: 0 6px 0 #45218f; }
.btn--purple:hover { background: #5a2dbb; }

/* Header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.site-logo img { height: 52px; width: auto; }
.menu-toggle { background: none; border: 2px solid #fff; color: #fff; border-radius: 12px; min-width: 48px; min-height: 48px; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: 0 14px; cursor: pointer; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 8px 16px 20px; border-top: 1px solid #3a2c40; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.15rem; padding: 0 8px; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pink); }
.site-nav .nav-cta a { background: var(--pink-btn); justify-content: center; border-radius: 999px; margin-top: 8px; }
.site-nav .nav-cta a:hover { color: #fff; background: var(--pink-btn-hover); }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; }
.hero picture img { width: 100%; aspect-ratio: 1086 / 1448; object-fit: cover; object-position: 50% 25%; }
.hero__text { position: relative; margin-top: -90px; padding: 90px 0 40px; background: linear-gradient(180deg, rgba(18, 13, 20, 0) 0, rgba(18, 13, 20, .92) 80px, var(--ink) 130px); }
.hero h1 { color: #fff; margin-bottom: .2em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.hero h1 span { display: block; }
.hero h1 .sass { color: var(--pink); }
.hero p { font-size: 1.15rem; max-width: 34ch; margin-bottom: 1.2em; color: #f5eaf7; }

/* Backdrop stage (featured blocks, shop top) */
.stage { position: relative; background: var(--ink) center 30% / cover no-repeat; color: #fff; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 13, 20, .78), rgba(18, 13, 20, .55) 45%, rgba(18, 13, 20, .8)); }
.stage > .wrap { position: relative; }
.stage h1, .stage h2 { color: #fff; }
.stage .lede { color: #f1e4f4; }

/* Jesus first */
.feature { display: grid; gap: 28px; align-items: center; }
.feature__photo { border-radius: var(--radius); overflow: hidden; border: 4px solid var(--pink); box-shadow: 0 0 40px rgba(255, 47, 208, .45); background: var(--ink-2); }
.feature__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature__price { font-family: var(--head); font-weight: 700; font-size: 1.6rem; margin: 0 0 .6em; }
.coming { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

/* Placeholder cards */
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 120px; padding: 16px; border: 3px dashed var(--pink); border-radius: var(--radius); background: rgba(255, 47, 208, .1); font-family: var(--head); font-weight: 700; color: inherit; }
.placeholder--light { border-color: var(--purple); background: var(--purple-soft); color: var(--ink); }
.placeholder--photo { aspect-ratio: 4 / 3; min-height: 0; font-size: 1.2rem; }
.placeholder svg { width: 40px; height: 40px; }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; background: #fff; color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(40, 10, 50, .14); height: 100%; }
.card__photo { display: block; background: var(--ink-2); }
.card__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card__photo .placeholder { aspect-ratio: 1; border-radius: 0; border-width: 0 0 3px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 16px; flex: 1; }
.card__name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.card__name:hover { color: var(--purple); }
.card__price { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--purple); margin: 0 0 6px; }
.card .btn { margin-top: auto; }
.empty { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .95); color: var(--ink); text-align: center; font-family: var(--head); font-weight: 600; font-size: 1.2rem; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid #fff; font-family: var(--head); font-weight: 700; text-decoration: none; }
.chips a:hover { border-color: var(--pink); }
.chips a[aria-current="true"] { background: var(--pink-btn); border-color: var(--pink-btn); color: #fff; }

/* Christmas */
.split { display: grid; gap: 28px; align-items: center; }
.frame { border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(40, 10, 50, .2); transform: rotate(-1.5deg); background: #fff; }
.frame img { width: 100%; }
blockquote.kid { margin: 0 0 1em; padding: 0; font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1.25; color: var(--ink); }
blockquote.kid::before { content: "\201C"; color: var(--pink-btn); }
blockquote.kid::after { content: "\201D"; color: var(--pink-btn); }
.section--dark blockquote.kid { color: #fff; }
.section--dark blockquote.kid::before, .section--dark blockquote.kid::after { color: var(--pink); }

/* Hearts */
.hearts { background-color: #ffe3f6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath fill='%23ff2fd0' d='M24 34c-5-9-18-5-18 5 0 8 10 14 18 21 8-7 18-13 18-21 0-10-13-14-18-5z'/%3E%3Cpath fill='%236d3bd1' d='M72 72c-4-7-14-4-14 4 0 6 8 11 14 16 6-5 14-10 14-16 0-8-10-11-14-4z'/%3E%3C/svg%3E"); }
.hearts h2 { color: var(--ink); }

/* Club + forms */
.club { display: grid; gap: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding: 6px 0 6px 38px; position: relative; font-weight: 700; }
.ticks li::before { content: "\2665"; position: absolute; left: 6px; color: var(--pink); font-size: 1.2em; line-height: 1.3; }
.form { display: grid; gap: 14px; background: #fff; color: var(--text); padding: 22px; border-radius: var(--radius); box-shadow: 0 6px 22px rgba(40, 10, 50, .14); }
.form label { font-family: var(--head); font-weight: 700; display: grid; gap: 4px; color: var(--ink); }
.form input, .form textarea { font: inherit; padding: 12px 14px; min-height: 52px; border: 2px solid #b9a9c4; border-radius: 14px; width: 100%; background: #fff; color: var(--text); }
.form input:focus, .form textarea:focus { border-color: var(--purple); outline: 3px solid rgba(109, 59, 209, .3); }
.form .hp { position: absolute; left: -9999px; }
.form__msg { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin: 0; }
.form__msg[data-state="ok"] { color: #156b2f; }
.form__msg[data-state="err"] { color: #a3142b; }

/* About blurb */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-family: var(--head); font-weight: 700; }
.badge::before { content: "\2605"; color: var(--pink-btn); }

/* Product page */
.product { display: grid; gap: 24px; padding: 24px 0 56px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product__price { font-family: var(--head); font-weight: 700; font-size: 2rem; color: var(--purple); margin: 0 0 .4em; }
.product__buy { display: grid; gap: 14px; margin: 14px 0; }
.qty { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; }
.qty button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--purple); background: #fff; color: var(--purple); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.qty output { min-width: 2ch; text-align: center; font-size: 1.3rem; }
.note { font-size: 1rem; color: var(--muted); }
.crumbs { font-size: .95rem; padding-top: 16px; }

/* Valentine's drawing */
.draw { max-width: 760px; margin-inline: auto; }
.draw__paper { padding: 26px; border-radius: var(--radius); }
.draw canvas { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: 10px; touch-action: none; cursor: crosshair; box-shadow: 0 4px 16px rgba(40, 10, 50, .25); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 16px 0; }
.tool { min-width: 60px; min-height: 60px; padding: 0 16px; border-radius: 18px; border: 3px solid #cbbcd6; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.tool[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 4px var(--pink); }
.tool--color { width: 60px; padding: 0; border-radius: 50%; }
.wp-block-gallery, .hearts-gallery .wp-block-image { margin: 0; }
.hearts-gallery img { border-radius: 14px; }

/* Plain pages */
.page-head { background: var(--ink); color: #fff; padding: 40px 0; }
.page-head h1 { color: #fff; margin: 0; }
.prose { max-width: 68ch; padding: 36px 0 56px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.notice { background: #fff4c2; border: 2px solid #d9a400; color: #4a3800; padding: 12px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #e9dcee; padding: 48px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 { font-size: 1.2rem; color: var(--pink); margin-bottom: .3em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-logo img { width: 200px; }
.footer-legal { border-top: 1px solid #3a2c40; margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; align-items: center; }
.footer-legal p { margin: 0; }

/* Gentle fade in */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card__body { padding: 16px 16px 20px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .site-header .wrap { min-height: 84px; }
  .site-logo img { height: 68px; }
  .hero picture img { aspect-ratio: 1672 / 941; object-position: 50% 30%; max-height: 82vh; }
  .hero__text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 120px 0 44px; background: linear-gradient(180deg, rgba(18, 13, 20, 0), rgba(18, 13, 20, .85) 60%, rgba(18, 13, 20, .95)); }
  .hero__text .wrap > * { max-width: 520px; }
  .feature, .split, .club, .product { grid-template-columns: 1fr 1fr; gap: 48px; }
  .product { padding-top: 32px; }
  .gallery { position: sticky; top: 104px; align-self: start; }
}

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 6px; }
  .site-nav a { padding: 0 14px; }
  .site-nav .nav-cta a { margin: 0 0 0 8px; padding: 0 24px; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.footer-legal nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.hearts > .wrap { background: #fff; border-radius: var(--radius); padding: 32px 20px; max-width: 640px; box-shadow: 0 8px 26px rgba(109, 59, 209, .25); border: 4px solid var(--pink); }

/* Desktop hero: keep the words on the left so they never cover the two faces */
@media (min-width: 768px) {
  .hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
  .hero__text .wrap > * { max-width: min(440px, 36vw); }
  .hero__text { background: linear-gradient(90deg, rgba(18, 13, 20, .88), rgba(18, 13, 20, .55) 34%, rgba(18, 13, 20, 0) 48%), linear-gradient(180deg, rgba(18, 13, 20, 0) 55%, rgba(18, 13, 20, .7)); top: 0; display: flex; align-items: flex-end; }
  .hero__text .wrap { width: min(100% - 32px, var(--wrap)); }
}
