/* ============================================
   Romance Drop — Base Design Tokens
   Core reset, typography, colors, spacing.
   Imported first on every page.
   ============================================ */

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

/* ---- Design Tokens ---- */
:root {
  /* Colors — rose / berry / cream palette */
  --rose: #e11d48;
  --rose-light: #fff1f2;
  --rose-muted: rgba(225, 29, 72, 0.08);
  --berry: #9f1239;
  --berry-deep: #881337;
  --cream: #faf5f0;
  --warm-white: #faf5f0;
  --card-bg: #ffffff;
  --charcoal: #1c1917;
  --muted: #78716c;
  --muted-light: #a8a29e;
  --border: #e7e5e4;
  --border-light: #f5f0eb;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.12);
  --shadow-xl: 0 12px 36px rgba(28, 25, 23, 0.16);

  /* Radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 840px;
  --gutter: 1.25rem;

  /* Type scale (major third — 1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.5rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Transitions */
  --ease-default: 0.15s ease;
  --ease-bounce: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Base ---- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p { margin-bottom: var(--space-4); }

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--ease-default);
}

a:hover {
  color: var(--berry);
}

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

ul, ol {
  list-style: none;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-12) 0;
}

.section--alt {
  background: var(--card-bg);
}

.section--rose {
  background: var(--rose-light);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease-default), color var(--ease-default),
    box-shadow var(--ease-default), transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--rose);
  color: #fff;
}

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

.btn--ghost {
  background: transparent;
  color: var(--rose);
  border: 2px solid var(--rose);
}

.btn--ghost:hover {
  background: var(--rose);
  color: #fff;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

/* ---- Breadcrumbs ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--space-4) 0;
}

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

.breadcrumb a:hover {
  color: var(--rose);
}

.breadcrumb__sep {
  color: var(--muted-light);
  user-select: none;
}

.breadcrumb__current {
  color: var(--charcoal);
  font-weight: 500;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Page Header (subpages) ---- */
.page-header {
  text-align: center;
  padding: var(--space-12) 0 var(--space-6);
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: var(--text-md);
}

/* ---- Grid System ---- */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Pill / Tag badges ---- */
.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose);
  background: var(--rose-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--ease-default), color var(--ease-default);
}

.pill:hover {
  background: var(--rose);
  color: #fff;
}

.pill--muted {
  color: var(--muted);
  background: var(--border-light);
}

.pill--muted:hover {
  color: var(--charcoal);
  background: var(--border);
}

/* ---- Spice Meter (flame icons) ---- */
.spice-meter {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.spice-meter__flame {
  width: 16px;
  height: 16px;
  color: var(--border);
  transition: color var(--ease-default);
}

.spice-meter__flame--active {
  color: var(--rose);
}

.spice-meter--lg .spice-meter__flame {
  width: 22px;
  height: 22px;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }
.mb-4 { margin-bottom: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }

  .section { padding: var(--space-8) 0; }
  .page-header { padding: var(--space-8) 0 var(--space-4); }
}
