/*
Theme Name: River Kandi
Theme URI: https://riverkandi.com
Author: River Kandi
Description: A bright, playful one-page landing theme for River Kandi handmade kandi bracelets, cuffs, keychains and necklaces. Edit text and prices in Appearance → Customize → River Kandi. Anything you add to your front page in the block editor appears in the "Latest Goodies" section.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riverkandi
Tags: one-column, custom-logo, custom-menu, featured-images
*/

:root {
	--cream: #fdf7e9;
	--cream-deep: #f6ecd2;
	--ink: #3b2a22;
	--ink-soft: #6b5a50;
	--squiggle: #a39890;
	--yellow: #fbe38e;
	--peach: #f9b48d;
	--pink: #f7bad3;
	--blue: #abd5f6;
	--lilac: #cfb7f2;
	--card: #ffffff;
	--radius: 26px;
	--shadow: 0 10px 30px rgba(59, 42, 34, .10);
	--font-body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--font-script: "Caveat", "Comic Sans MS", cursive;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.rk-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.rk-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(253, 247, 233, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 2px dashed rgba(163, 152, 144, .35);
}
.rk-header .rk-wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding-block: 10px;
}
.rk-brand img { height: 52px; width: auto; }
.rk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rk-nav a {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	text-decoration: none; font-weight: 500; font-size: 16px;
	transition: background .2s;
}
.rk-nav a:hover { background: var(--pink); }

/* ---------- Buttons ---------- */
.rk-btn {
	display: inline-block; padding: 14px 28px; border-radius: 999px;
	font-weight: 600; font-size: 18px; text-decoration: none;
	border: 3px solid var(--ink); background: var(--pink);
	box-shadow: 4px 4px 0 var(--ink);
	transition: transform .15s, box-shadow .15s;
}
.rk-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.rk-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.rk-btn--alt { background: var(--yellow); }

/* ---------- Hero ---------- */
.rk-hero {
	position: relative; text-align: center;
	padding: 40px 0 70px;
	background:
		radial-gradient(circle at 12% 20%, rgba(247, 186, 211, .55), transparent 40%),
		radial-gradient(circle at 88% 25%, rgba(171, 213, 246, .55), transparent 40%),
		radial-gradient(circle at 50% 100%, rgba(251, 227, 142, .55), transparent 45%);
}
.rk-hero__logo {
	width: min(720px, 100%); margin: 0 auto;
	filter: drop-shadow(0 14px 24px rgba(59, 42, 34, .18));
	animation: rk-float 6s ease-in-out infinite;
}
.rk-hero__tagline {
	font-family: var(--font-script); font-size: clamp(34px, 6vw, 56px);
	line-height: 1.1; margin: 8px 0 6px;
}
.rk-hero__sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 26px; }
.rk-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* bead strand divider */
.rk-beads {
	display: flex; justify-content: center; gap: 8px; margin: 34px auto 0;
	flex-wrap: wrap; max-width: 100%;
}
.rk-beads span {
	width: 22px; height: 22px; border-radius: 50%;
	border: 2.5px solid var(--ink);
	box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .08), inset 3px 3px 0 rgba(255, 255, 255, .6);
}
.rk-beads span:nth-child(5n+1) { background: var(--yellow); }
.rk-beads span:nth-child(5n+2) { background: var(--peach); }
.rk-beads span:nth-child(5n+3) { background: var(--pink); }
.rk-beads span:nth-child(5n+4) { background: var(--blue); }
.rk-beads span:nth-child(5n+5) { background: var(--lilac); }

.rk-sparkle {
	position: absolute; color: var(--squiggle); opacity: .7;
	animation: rk-twinkle 3s ease-in-out infinite;
	pointer-events: none;
}

@keyframes rk-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes rk-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .7; } 50% { transform: scale(1.25) rotate(20deg); opacity: 1; } }

/* ---------- Sections ---------- */
.rk-section { padding: 80px 0; position: relative; }
.rk-section--tint { background: var(--cream-deep); }
.rk-title {
	font-family: var(--font-script); font-weight: 700;
	font-size: clamp(44px, 7vw, 68px); line-height: 1;
	text-align: center; margin: 0 0 10px;
}
.rk-lead { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 44px; }

/* wavy-border card (echoes the flyers) */
.rk-card {
	background: var(--card); border-radius: var(--radius);
	border: 4px solid var(--squiggle);
	padding: clamp(24px, 4vw, 44px);
	box-shadow: var(--shadow);
	position: relative;
}

/* About */
.rk-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rk-about__text p { font-size: 20px; margin: 0 0 16px; }
.rk-about__text .rk-sign { font-family: var(--font-script); font-size: 34px; margin-top: 10px; }
.rk-about__img img { border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(2deg); }

/* Prices */
.rk-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rk-price-card { border-color: transparent; }
.rk-price-card:nth-child(3n+1) { border-color: var(--yellow); }
.rk-price-card:nth-child(3n+2) { border-color: var(--pink); }
.rk-price-card:nth-child(3n+3) { border-color: var(--blue); }
.rk-price-card h3 { margin: 0 0 16px; font-size: 26px; font-weight: 600; }
.rk-price-card ul { list-style: none; margin: 0; padding: 0; }
.rk-price-card li {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 10px 0; border-bottom: 2px dotted rgba(163, 152, 144, .5);
}
.rk-price-card li:last-child { border-bottom: 0; }
.rk-price-card .rk-price { font-weight: 600; white-space: nowrap; }
.rk-note { text-align: center; margin-top: 30px; color: var(--ink-soft); }

/* Gallery / flyers */
.rk-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.rk-gallery figure { margin: 0; }
.rk-gallery img {
	width: 100%; border-radius: 20px; box-shadow: var(--shadow);
	transition: transform .25s;
}
.rk-gallery img:hover { transform: scale(1.03) rotate(-1deg); }
.rk-soon {
	display: grid; place-items: center; text-align: center;
	min-height: 260px; border: 4px dashed var(--squiggle); border-radius: 20px;
	font-family: var(--font-script); font-size: 34px; color: var(--ink-soft);
	background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(207, 183, 242, .15) 14px 28px);
}

/* Block editor content from front page */
.rk-content { max-width: 900px; margin: 0 auto; }
.rk-content .wp-block-image img,
.rk-content .wp-block-gallery img { border-radius: 18px; }

/* Contact */
.rk-contact { text-align: center; }
.rk-contact .rk-card { max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.rk-footer {
	text-align: center; padding: 36px 0 44px;
	background: var(--ink); color: var(--cream);
	font-size: 16px;
}
.rk-footer a { color: var(--yellow); }
.rk-footer .rk-beads span { border-color: var(--cream); }

/* Plain pages / posts */
.rk-page { padding: 60px 0; }
.rk-page h1 { font-family: var(--font-script); font-size: 56px; margin: 0 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.rk-about { grid-template-columns: 1fr; }
	.rk-about__img { max-width: 420px; margin: 0 auto; }
	.rk-prices { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.rk-nav { display: none; }
	.rk-brand img { height: 44px; }
	.rk-section { padding: 60px 0; }
	.rk-beads span { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rk-hero__logo, .rk-sparkle { animation: none; }
	html { scroll-behavior: auto; }
}
