/*
Theme Name: Pretty Wicked
Description: Two-sided jewelry shop theme — the Colorful side and the Chaotic side. Built for Pretty Wicked by Ranahan Design.
Version: 1.2.5
Author: Ranahan Design
Text Domain: pretty-wicked
*/

:root {
	--black: #000;
	--ink: #e9e7ee;
	--muted: #a7a3ae;

	/* colorful side */
	--pink: #ff2e9a;
	--violet: #9b5cff;
	--cyan: #22e4ff;
	--lime: #b6ff3b;
	--sun: #ffe53b;
	--rainbow: linear-gradient(90deg, var(--pink), var(--violet) 25%, var(--cyan) 50%, var(--lime) 75%, var(--sun));

	/* chaotic side */
	--bone: #ededed;
	--steel: #8a8f98;
	--gunmetal: #2a2c31;
	--blood: #c1121f;
	--blood-bright: #ff2a3a;
	--silver: linear-gradient(180deg, #ffffff 0%, #c9ccd2 35%, #6f737b 52%, #e9ebee 70%, #9a9ea6 100%);

	--script: "Yellowtail", cursive;
	--gothic: "Pirata One", "UnifrakturMaguntia", serif;
	--body: "Jost", system-ui, sans-serif;

	--gutter: clamp(20px, 5vw, 64px);
	--max: 1240px;
	--frame: 1360px;
	/* side padding that keeps content inside a centred column with black on both sides */
	--edge: max(var(--gutter), calc((100% - var(--max)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; background: var(--black); color: var(--ink);
	font: 400 1.0625rem/1.6 var(--body);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.side-chaotic :focus-visible, .half-chaotic:focus-visible { outline-color: var(--blood-bright); }
button { font: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 16px;
	padding: 10px var(--edge);
	background: rgba(0,0,0,.86); backdrop-filter: blur(8px);
	border-bottom: 1px solid #1c1c1f;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; mix-blend-mode: lighten; }
.brand-word { font-size: 1.9rem; line-height: 1; white-space: nowrap; }
.bw-pretty { font-family: var(--script); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.bw-wicked { font-family: var(--gothic); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.6vw, 36px); }
.site-nav li { display: flex; align-items: center; }
.site-nav a { display: inline-block; line-height: 1.2; text-decoration: none; font-weight: 500; font-size: 1.4rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav .nav-colorful a { font-family: var(--script); font-weight: 400; font-size: 1.5rem; color: var(--pink); }
.site-nav .nav-chaotic a { font-family: var(--gothic); font-weight: 400; font-size: 1.45rem; color: var(--bone); }
.site-nav .nav-chaotic a:hover { color: var(--blood-bright); }
.nav-toggle { display: none; background: none; border: 1px solid #3a3a40; color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; }

@media (max-width: 760px) {
	.brand-word { font-size: 1.5rem; }
	.brand img { width: 42px; height: 42px; }
	.nav-toggle { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #000; border-bottom: 1px solid #1c1c1f; display: none; }
	.site-nav.open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--edge) 16px; }
	.site-nav li a { display: block; padding: 10px 0; }
}

/* ---------- Hero: the two halves ---------- */
.hero {
	position: relative;
	display: flex;
	width: min(var(--frame), calc(100% - 2 * var(--gutter)));
	margin: clamp(20px, 3vw, 40px) auto 0;
	min-height: min(82vh, 820px);
	border: 1px solid #1f1f23;
	border-radius: 28px;
	overflow: hidden;
}
.half {
	position: relative; flex: 1 1 50%;
	display: flex; align-items: flex-end;
	text-decoration: none; overflow: hidden;
	padding: clamp(28px, 4.5vw, 64px);
	transition: flex-grow .6s cubic-bezier(.2,.7,.2,1);
}
.half::before { content: ""; position: absolute; inset: 0; z-index: 0; transition: opacity .6s; }
.half-colorful::before {
	background:
		radial-gradient(circle at 18% 22%, rgba(255,46,154,.55), transparent 32%),
		radial-gradient(circle at 70% 12%, rgba(255,229,59,.35), transparent 26%),
		radial-gradient(circle at 30% 70%, rgba(34,228,255,.40), transparent 30%),
		radial-gradient(circle at 82% 60%, rgba(155,92,255,.55), transparent 34%),
		radial-gradient(circle at 55% 95%, rgba(182,255,59,.30), transparent 28%);
	opacity: .55;
}
.half-chaotic::before {
	background:
		radial-gradient(ellipse at 75% 20%, rgba(237,237,237,.16), transparent 45%),
		radial-gradient(ellipse at 30% 60%, rgba(138,143,152,.22), transparent 40%),
		radial-gradient(ellipse at 80% 90%, rgba(193,18,31,.55), transparent 38%),
		repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
	opacity: .7;
}
.half:hover::before, .half:focus-visible::before { opacity: 1; }
.half-chaotic { justify-content: flex-end; text-align: right; border-left: 1px solid #2a2c31; }
.half-inner { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 26ch; }
.half-chaotic .half-inner { justify-items: end; }
.half-title { font-size: clamp(3.4rem, 6.4vw, 6.6rem); line-height: .9; }
.half-colorful .half-title { font-family: var(--script); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .1em .15em .15em 0; filter: drop-shadow(0 0 18px rgba(255,46,154,.45)); }
.half-chaotic .half-title { padding-right: .06em; font-family: var(--gothic); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 var(--blood)); }
.half-text { font-size: 1.1rem; color: var(--ink); }
.half-cta { justify-self: start; margin-top: 8px; padding: 10px 20px; font-weight: 600; }
.half-cta { transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.half-colorful .half-cta { border: 1px solid var(--pink); color: var(--pink); border-radius: 999px; }
.half-colorful:hover .half-cta, .half-colorful:focus-visible .half-cta { background: var(--pink); color: #000; box-shadow: 0 0 22px rgba(255,46,154,.6); }
.half-chaotic .half-cta { justify-self: end; border: 1px solid var(--bone); color: var(--bone); }
.half-chaotic:hover .half-cta, .half-chaotic:focus-visible .half-cta { background: var(--blood); border-color: var(--blood); color: #fff; }

.hero-logo {
	position: absolute; z-index: 2; left: 50%; top: 40%;
	width: clamp(240px, 31%, 440px);
	translate: -50% -50%;
	pointer-events: none;
	mix-blend-mode: lighten;
}

@media (hover: hover) and (min-width: 901px) {
	.hero:has(.half-colorful:hover) .half-colorful,
	.hero:has(.half-chaotic:hover) .half-chaotic { flex-grow: 1.5; }
}

@media (max-width: 900px) {
	.hero { flex-direction: column; min-height: 0; border-radius: 22px; }
	.hero-logo { position: relative; left: auto; top: auto; translate: none; margin: 28px auto 0; width: min(78vw, 420px); order: -1; }
	.half { min-height: 320px; }
	.half-chaotic { border-left: 0; border-top: 1px solid #2a2c31; }
	.half-title { font-size: clamp(3.4rem, 15vw, 5.5rem); }
}

/* ---------- Sections ---------- */
.intro { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 8px; text-align: center; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink); }
.block { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.block-sub { flex-basis: 100%; margin: -8px 0 0; color: var(--muted); max-width: 52ch; }

.split-heading { margin: 0 0 4px; font-weight: 400; line-height: 1; font-size: clamp(2.6rem, 5.5vw, 4rem); }
.split-heading.big { font-size: clamp(3rem, 8vw, 5.5rem); }
.sh-c { font-family: var(--script); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em .12em 0; }
.sh-k { font-family: var(--gothic); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* filter toggle */
.filter { display: inline-flex; border: 1px solid #2f2f35; border-radius: 999px; padding: 4px; gap: 4px; }
.filter button { background: none; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.filter button[aria-pressed="true"] { background: #fff; color: #000; }
.filter .f-colorful[aria-pressed="true"] { background: var(--pink); color: #000; box-shadow: 0 0 18px rgba(255,46,154,.5); }
.filter .f-chaotic[aria-pressed="true"] { background: var(--blood); color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card-link { display: block; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 1; background: #0a0a0a; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 4px 4px; }
.card-title { margin: 0; font-weight: 400; line-height: 1.1; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.price { font-weight: 600; }
.pill { position: absolute; left: 12px; top: 12px; font-size: .82rem; font-weight: 600; padding: 4px 12px; }

/* colorful cards: soft, round, neon edge */
.card.side-colorful .card-link,
.card.side-both .card-link { border-radius: 24px; padding: 8px; background: linear-gradient(#050505, #050505) padding-box, var(--rainbow) border-box; border: 2px solid transparent; }
.card.side-colorful .card-media, .card.side-both .card-media { border-radius: 18px; }
.card.side-colorful .card-link:hover { box-shadow: 0 0 28px rgba(155,92,255,.45); }
.card.side-colorful .card-title { font-family: var(--script); font-size: 1.9rem; color: #fff; }
.card.side-colorful .price { color: var(--lime); }
.card.side-colorful .pill { background: var(--sun); color: #000; border-radius: 999px; }

/* chaotic cards: hard edges, steel frame, blood line */
.card.side-chaotic .card-link { border: 1px solid #34363c; border-top: 3px solid var(--blood); padding: 8px; background: #050505; }
.card.side-chaotic .card-link:hover { border-color: var(--steel); border-top-color: var(--blood-bright); }
.card.side-chaotic .card-title { font-family: var(--gothic); font-size: 1.75rem; color: var(--bone); letter-spacing: .01em; }
.card.side-chaotic .price { color: var(--blood-bright); }
.card.side-chaotic .pill { background: #000; color: var(--bone); border: 1px solid var(--steel); }

/* both sides: rainbow border with a gothic title */
.card.side-both .card-link { background: linear-gradient(#050505, #050505) padding-box, linear-gradient(90deg, var(--pink), var(--violet) 45%, var(--steel) 55%, var(--blood)) border-box; }
.card.side-both .card-title { font-family: var(--gothic); font-size: 1.75rem; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card.side-both .price { color: var(--cyan); }
.card.side-both .pill { background: #fff; color: #000; border-radius: 999px; }

.card.status-sold-out .card-media img { filter: grayscale(.85) brightness(.55); }
.card.status-sold-out .pill { background: var(--blood) !important; color: #fff !important; border: 1px solid var(--blood) !important; }
.item.status-sold-out .item-buy .pill { background: var(--blood); color: #fff; border-color: var(--blood); }
.card.status-coming-soon .pill { background: #000 !important; color: #fff !important; border: 1px dashed #777; }
.card.status-mystery .pill { background: var(--violet) !important; color: #fff !important; border: 0; }

.empty, .empty-filter { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.more, .crossover { margin-top: 36px; text-align: center; }
.btn { display: inline-block; padding: 12px 24px; border: 1px solid #fff; color: #fff; text-decoration: none; font-weight: 500; border-radius: 999px; }
.btn:hover { background: #fff; color: #000; }
.btn-colorful { border-color: var(--pink); color: var(--pink); font-family: var(--script); font-size: 1.5rem; padding: 6px 28px 10px; }
.btn-colorful:hover { background: var(--pink); color: #000; }
.btn-chaotic { border-radius: 0; border-color: var(--bone); color: var(--bone); font-family: var(--gothic); font-size: 1.4rem; padding: 6px 28px; }
.btn-chaotic:hover { background: var(--blood); border-color: var(--blood); color: #fff; }

/* mystery */
.mystery { position: relative; }
.mystery::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; margin: 0 var(--gutter); background: linear-gradient(90deg, transparent, var(--violet), var(--blood), transparent); }

/* what we make */
.makers .split-heading { margin-bottom: 28px; }
.maker-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid #222; }
.maker { display: grid; gap: 6px; align-content: start; padding: 24px 20px 28px 0; text-decoration: none; border-bottom: 1px solid #222; }
.maker-name { font-family: var(--gothic); font-size: 2rem; line-height: 1; color: var(--bone); }
.maker:nth-child(odd) .maker-name { font-family: var(--script); font-size: 2.3rem; color: var(--cyan); }
.maker-text { color: var(--muted); max-width: 30ch; }
.maker:hover .maker-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.maker.is-soon .maker-name { opacity: .55; }

/* ---------- Side pages ---------- */
.side-hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) 8px; }
.side-title { margin: 0; font-weight: 400; line-height: .95; font-size: clamp(3.4rem, 10vw, 7.5rem); }
.side-intro { max-width: 52ch; font-size: 1.2rem; margin: 18px 0 0; }
.side-hero .filter { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips a { text-decoration: none; padding: 8px 18px; border: 1px solid #333; font-weight: 500; }
.chips a[aria-current="page"] { color: #000; }

body.side-colorful { background-image: radial-gradient(circle at 10% 0%, rgba(255,46,154,.22), transparent 40%), radial-gradient(circle at 95% 10%, rgba(34,228,255,.16), transparent 35%); background-repeat: no-repeat; }
.side-colorful .side-title { font-family: var(--script); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em .15em .15em 0; filter: drop-shadow(0 0 22px rgba(255,46,154,.4)); }
.side-colorful .chips a { border-radius: 999px; border-color: var(--violet); }
.side-colorful .chips a:hover { border-color: var(--pink); color: var(--pink); }
.side-colorful .chips a[aria-current="page"] { background: var(--pink); border-color: var(--pink); color: #000; }

body.side-chaotic { background-image: radial-gradient(ellipse at 90% 0%, rgba(193,18,31,.28), transparent 40%), radial-gradient(ellipse at 0% 20%, rgba(138,143,152,.14), transparent 40%); background-repeat: no-repeat; }
.side-chaotic .side-title { font-family: var(--gothic); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--blood)); }
.side-chaotic .side-intro { color: var(--bone); }
.side-chaotic .chips a { border-color: #44474e; color: var(--bone); }
.side-chaotic .chips a:hover { border-color: var(--blood-bright); }
.side-chaotic .chips a[aria-current="page"] { background: var(--bone); border-color: var(--bone); color: #000; }

/* ---------- Single item ---------- */
.item { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .item { grid-template-columns: 1fr; } }
.item-media img { width: 100%; }
.item.side-colorful .item-media img, .item.side-both .item-media img { border-radius: 28px; box-shadow: 0 0 0 2px var(--violet), 0 0 50px rgba(255,46,154,.35); }
.item.side-chaotic .item-media img { border: 1px solid #34363c; border-top: 4px solid var(--blood); }
.item-crumbs { display: flex; gap: 14px; margin: 0 0 10px; font-size: .95rem; }
.item-crumbs a { color: var(--muted); }
.item-crumbs .crumb-colorful { color: var(--pink); }
.item-crumbs .crumb-chaotic { color: var(--blood-bright); }
.item-title { margin: 0; font-weight: 400; line-height: 1; font-size: clamp(3rem, 6vw, 4.6rem); }
.item.side-colorful .item-title { font-family: var(--script); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em .15em .12em 0; }
.item.side-chaotic .item-title, .item.side-both .item-title { font-family: var(--gothic); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.item-buy { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.item-buy .price { font-size: 1.6rem; }
.item.side-colorful .price { color: var(--lime); }
.item.side-chaotic .price { color: var(--blood-bright); }
.item.side-both .price { color: var(--cyan); }
.item-buy .pill { position: static; border: 1px solid currentColor; border-radius: 999px; }
.item.side-chaotic .item-buy .pill { border-radius: 0; }
.item-desc { max-width: 56ch; font-size: 1.1rem; }
.item-maker { color: var(--muted); }
.item-order { margin-top: 32px; padding-top: 24px; border-top: 1px solid #262629; max-width: 56ch; }
.item-order h2 { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.item-order p { margin: 0; color: var(--muted); }

/* ---------- Pages ---------- */
.page-body { max-width: 46rem; }
.prose a { color: var(--cyan); }
.prose h2 { font-family: var(--gothic); font-weight: 400; font-size: 2.2rem; color: var(--bone); margin: 1.6em 0 .3em; }
.prose h3 { font-family: var(--script); font-weight: 400; font-size: 2rem; color: var(--pink); margin: 1.4em 0 .2em; }

.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 36px; }
.nav-links .page-numbers { padding: 6px 14px; border: 1px solid #333; text-decoration: none; }
.nav-links .current { background: #fff; color: #000; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid #1c1c1f; padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 12px; max-width: 220px; }
.footer-brand img { width: 140px; mix-blend-mode: lighten; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .95rem; }
.footer-order { max-width: 52ch; }
.footer-order h2 { margin: 0 0 8px; font-family: var(--gothic); font-weight: 400; font-size: 2rem; color: var(--bone); }
.footer-order p { margin: 0; }
.socials { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-block; padding: 8px 18px; border: 1px solid #3a3a40; border-radius: 999px; text-decoration: none; font-weight: 500; }
.socials a:hover { border-color: var(--pink); color: var(--pink); }
.copyright { max-width: var(--max); margin: 40px auto 0; color: #6b6870; font-size: .85rem; }

/* In stock pill: same yellow on every side (shape still follows the side) */
.card.status-in-stock .pill { background: var(--sun) !important; color: #000 !important; border: 1px solid var(--sun) !important; }
.item.status-in-stock .item-buy .pill { background: var(--sun); color: #000; border-color: var(--sun); }
