/* base.css */

/* 1. CSS variables – tweak these to change the whole look */
:root {
  --color-bg: #0f1014;
  --color-surface: #181920;
  --color-paper: #f4f0e6;
  --color-ink: #16141b;
  --color-accent: #c67bdc;      /* soft cosmic plum */
  --color-accent-soft: #5d7ca6; /* desaturated teal/steel blue */
  --color-gold: #c9a46c;
  --color-muted: #a4a7b2;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

/* 2. Reset-ish baseline */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #1e2130 0, #06070b 55%);
  color: var(--color-paper);
}

/* 3. Layout helpers */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Container matches your current HTML `.container` */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section header pattern used in Collections / Featured / etc. */
.section-header {
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.section-header p {
  margin: 0;
}

/* 4. Typography */

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.4rem, 3vw + 1.5rem, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 1.7vw + 1.1rem, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* 5. Links & inline link style */

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Inline text links like "See featured ornaments →" */
.link-inline {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 6. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(198, 123, 220, 0.12),
    rgba(93, 124, 166, 0.05)
  );
  color: var(--color-paper);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.12s ease;
}

.btn:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Hero main CTA */
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(198, 123, 220, 0.3),
    rgba(93, 124, 166, 0.25)
  );
}

/* Ghost / secondary button */
.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Small variant for product cards */
.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

/* Disabled state – used on "Direct checkout coming soon" */
.btn.btn-disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* 7. Card utility for product / collection tiles */

.card {
  background: radial-gradient(circle at top left, #2b2535 0, #15151b 55%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* 8. Accessibility helpers */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}