/*
Theme Name: Codex Starter
Theme URI: http://localhost/wordpress/
Author: Codex
Description: A bold candy storefront theme for Kinney Kids.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: codex-starter
*/

:root {
  --ink: #141026;
  --navy: #071b5f;
  --blue: #00a6ff;
  --pink: #ff2f93;
  --yellow: #ffe12b;
  --lime: #8bdc28;
  --orange: #ff7a1a;
  --paper: #fffdf7;
  --cream: #fff2b8;
  --line: rgba(20, 16, 38, 0.15);
  --shadow: 0 24px 60px rgba(20, 16, 38, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: var(--navy);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(1160px, calc(100% - 34px));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow), var(--pink) 58%, var(--blue));
  color: #ffffff;
  font-weight: 950;
  text-shadow: 2px 2px 0 var(--ink);
}

.brand__text {
  display: grid;
  line-height: 1.08;
}

.brand__name {
  font-size: 1.18rem;
  font-weight: 950;
}

.brand__tagline {
  color: #514b67;
  font-size: 0.82rem;
  font-weight: 750;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav ul,
.site-nav .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li,
.site-nav .menu-item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li::marker,
.site-nav .menu-item::marker {
  content: "";
}

.site-nav a,
.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
  padding: 0 12px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--yellow);
}

.header-cta {
  border: 2px solid var(--ink);
  background: var(--pink);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 950;
  text-decoration: none;
  padding: 0 18px;
  cursor: pointer;
}

.button--light {
  background: #ffffff;
}

.mini-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  padding: 0 13px;
}

.hero {
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 11% 12%, rgba(255, 47, 147, 0.72), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(255, 225, 43, 0.82), transparent 22%),
    radial-gradient(circle at 76% 80%, rgba(0, 166, 255, 0.68), transparent 24%),
    linear-gradient(135deg, #0a1450 0%, #43117a 42%, #ff4f96 100%);
  color: #ffffff;
}

.hero__inner {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: 54px;
  padding: 54px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.65rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-product {
  position: relative;
  width: min(100%, 470px);
  justify-self: center;
  transform: rotate(3deg);
}

.hero-product img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 4px solid #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-product__label {
  position: absolute;
  right: -20px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  min-width: 178px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  padding: 14px 16px;
  transform: rotate(-6deg);
  box-shadow: 6px 6px 0 var(--pink);
}

.hero-product__label span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-product__label strong {
  font-size: 1.8rem;
  line-height: 1;
}

.section {
  padding: 78px 0;
}

.section--cream {
  background: var(--cream);
}

.section--electric {
  background:
    linear-gradient(90deg, rgba(255, 47, 147, 0.12) 0 25%, transparent 25% 50%, rgba(0, 166, 255, 0.13) 50% 75%, transparent 75%),
    #ffffff;
  border-block: 3px solid var(--ink);
}

.section__heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 34px;
}

.section__heading h2,
.entry-content h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section__heading p {
  margin: 0;
  color: #514b67;
  font-weight: 650;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 8px 8px 0 rgba(20, 16, 38, 0.12);
}

.product-card__image {
  display: block;
  background: var(--yellow);
}

.product-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
}

.product-card:nth-child(2n) .pill {
  background: var(--pink);
}

.product-card:nth-child(3n) .pill {
  background: var(--orange);
}

.product-card h3,
.feature h3,
.info-panel h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
}

.product-card p,
.feature p,
.info-panel p {
  margin: 0;
  color: #514b67;
}

.product-card__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.product-card__buy strong {
  font-size: 1.25rem;
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature,
.info-panel {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 24px;
}

.feature {
  display: grid;
  gap: 12px;
}

.feature__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
}

.feature:nth-child(2) .feature__icon {
  background: var(--pink);
  color: #ffffff;
}

.feature:nth-child(3) .feature__icon {
  background: var(--lime);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 52px;
}

.callout {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 12px 12px 0 var(--pink);
  padding: 32px;
}

.callout h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.03;
}

.callout p {
  color: #514b67;
  font-weight: 650;
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 38px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
}

.page-hero {
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(circle at 12% 25%, rgba(255, 225, 43, 0.9), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(255, 47, 147, 0.55), transparent 24%),
    linear-gradient(135deg, #e7fbff 0%, #fff2b8 100%);
  padding: 70px 0;
}

.entry-content {
  width: min(900px, calc(100% - 34px));
  margin: 0 auto;
  padding: 62px 0 82px;
}

.entry-content > * {
  margin-top: 0;
}

.entry-content p {
  color: #514b67;
}

.entry-content .wp-block-columns {
  gap: 24px;
}

.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding: 42px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 920px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding: 14px 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-nav ul,
  .site-nav .menu {
    justify-content: flex-start;
  }

  .hero__inner,
  .split,
  .product-grid,
  .feature-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    gap: 34px;
    padding-top: 46px;
  }

  .hero-product {
    width: min(100%, 430px);
    justify-self: start;
  }

  .hero-product__label {
    right: 10px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
