/* ========================================
   CUTE BUT CRITICAL — Global Styles
    ======================================== */

:root {
  /* Core */
  --bg: #ffffff;
  --bg2: #fafafb;
  --surface: #ffffff;
  --surface2: #f7f7f9;
  --surface3: #fff5fa;
  --border: #e7e7ee;
  --border2: #d8d8e0;

  /* Text */
  --text-primary: #111117;
  --text-body: #2d2d36;
  --text-muted: #6f6f7d;
  --text-light: #8f8f9b;

  /* Accent */
  --pink: #ff007a;
  --pink-hover: #d70068;
  --pink-light: #fff0f7;

  /* Type */
  --font-body: 'Literata', Georgia, serif;
  --font-heading: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Rhythm */
  --base: 17px;
  --lh: 1.72;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(17, 17, 23, 0.05);
  --shadow-hover: 0 18px 40px rgba(17, 17, 23, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--base);
  line-height: var(--lh);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 700px at 10% 8%, rgba(255, 0, 122, 0.055), transparent 60%),
    radial-gradient(900px 650px at 90% 14%, rgba(17, 17, 23, 0.03), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
}

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

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 0, 122, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f3f3f6;
}

::-webkit-scrollbar-thumb {
  background-color: var(--pink);
  border-radius: 2px;
  border: 3px solid #f3f3f6;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

h4 {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

h1 .pink,
h2 .pink,
h3 .pink {
  color: var(--pink);
}

p {
  max-width: 68ch;
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

small {
  color: var(--text-light);
}

/* ---- LINKS ---- */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 122, 0.45);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--pink);
  text-decoration-color: rgba(255, 0, 122, 0.9);
}

/* ---- LAYOUT ---- */

.container,
.container-narrow {
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container {
  max-width: 1140px;
}

.container-narrow {
  max-width: 780px;
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ---- NAV ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 640px) {
  nav {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 18px 18px;
    gap: 12px;
    box-shadow: var(--shadow-soft);
  }

  .nav-toggle {
    display: block;
  }
}

/* ---- TAG ---- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  border: 1px solid rgba(255, 0, 122, 0.4);
  background: var(--pink-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  border: 1px solid var(--pink);
  box-shadow: 0 8px 20px rgba(255, 0, 122, 0.18);
}

.btn-primary:hover {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border2);
}

.btn-outline:hover {
  background: var(--pink-light);
  border-color: rgba(255, 0, 122, 0.45);
  color: var(--text-primary);
}

.btn-small {
  font-size: 0.62rem;
  padding: 8px 12px;
}

/* ---- HERO ---- */

.hero {
  padding: 88px 0 56px;
}

.hero h1 {
  max-width: 10ch;
}

.hero p {
  margin-top: 18px;
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* ---- CATEGORY HEADER ---- */

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 10px;
  margin-top: 56px;
  margin-bottom: 24px;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-left: 8px;
  font-weight: 400;
}

/* ---- PRODUCT GRID ---- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}

.product-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: rgba(255, 0, 122, 0.35);
  background: #fff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 12px;
  background: #f2f2f5;
}

.product-card h3 {
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.product-card p {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.product-card .btn {
  margin-top: auto;
  align-self: center;
}

/* ---- DESIGN PAGE ---- */

.design-page {
  padding: 52px 0 84px;
}

.design-page .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.design-page .breadcrumb a {
  color: var(--text-body);
  text-decoration: none;
}

.design-page .breadcrumb .sep {
  margin: 0 6px;
  color: var(--border2);
}

.design-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .design-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.design-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f2f2f5;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.design-info h1 {
  margin-bottom: 16px;
}

.design-info .body-copy {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ---- LEARN MORE SECTION ---- */

.learn-more {
  background: linear-gradient(180deg, #fff, #fcfcfd);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 48px;
  box-shadow: var(--shadow-soft);
}

.learn-more h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--pink);
}

.learn-more p {
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.learn-more-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learn-more-links li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

.learn-more-links li:first-child {
  border-top: none;
}

.learn-more-links a {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.learn-more-links .link-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
}

/* ---- RELATED ---- */

.related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

/* ---- ABOUT PAGE ---- */

.about-section {
  padding: 40px 0 0;
}

.about-section + .about-section {
  padding-top: 32px;
}

.about-section h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 12px;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---- CTA ---- */

.cta-banner {
  text-align: center;
  padding: 68px 24px;
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.cta-banner h2 {
  margin-bottom: 10px;
}

.cta-banner p {
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- FOOTER ---- */

footer {
  margin-top: 88px;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- UTILITIES ---- */

.section-spacer {
  padding: 32px 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

/* =========================
   HOMEPAGE TWEAKS
   ========================= */

.hero p:first-of-type{
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  max-width: 24ch;
  margin-top: 18px;
}

.cta-banner{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  box-shadow: var(--shadow-soft);
  margin-bottom: 72px;
}

.cta-banner p{
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 18px;
}

.product-card[href] h3{
  font-size: 0.88rem;
}
