/* 01. Theme Variables (root tokens) */
:root {
  --bg: #0b0a0f;
  --bg-2: #231016;
  --text: #fbe9f2;
  --muted: #e5cbd6;
  --accent: #ffb1c7;      /* pastel pink */
  --accent-2: #ffd6e2;    /* lighter pink for accents */
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.16);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --shadow-soft: 0 6px 14px rgba(0,0,0,.18);
  --radius: 12px;
  --focus-ring: 3px solid rgba(255, 180, 210, 0.95);
  --focus-outline: 4px solid rgba(255,180,210,.85);
}

/* 02. Base & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255, 240, 235, 0.15), rgba(243, 210, 210, 0.15)),
    linear-gradient(135deg, #1b0b0f 0%, #261017 60%, #1a0a0f 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle peach marble texture (pure CSS layered noise/scanlines) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,210,200,.18) 0 20%, transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 4px),
    linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 4px);
  background-size: 120px 120px, 6px 6px, 6px 6px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  filter: saturate(105%);
}

/* 03. Structural helpers (containers, grids, cards, tags) */
.container { width: min(92vw, 1200px); margin-inline: auto; padding-inline: 1rem; }

/* Responsive grid utility */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass card primitive (fallback if backdrop-filter unsupported) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.12); }
}

/* Simple tag pill */
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: rgba(255, 170, 199, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: none;
}

/* 04. Typography & helpers */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: .2px; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.4vw + .75rem, 1.6rem); }
p { margin: 0 0 1rem; color: var(--muted); }
blockquote { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 4px solid rgba(255,180,210,.8); background: rgba(255,255,255,.04); border-radius: 6px; color: #ffdbe5; }

/* 05. Header, main, footer basics */
header, main, footer { width: 100%; }

header {
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(15, 5, 8, 0.6);
  border-bottom: 1px solid rgba(255,255,255,.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
header h1 { margin-bottom: .25rem; }
header .meta { font-size: .9rem; color: var(--muted); }

/* Subtle glass for header content on top of background */
header, .content { background: rgba(0,0,0,.15); border-radius: 0; }

/* Main article area */
main { padding: 2rem 0 3rem; }
article { max-width: clamp(640px, 85vw, 980px); margin-inline: auto; padding: 0 1rem; }

/* Featured image container (supports .image-frame styling if used) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .25s ease;
}
.image-frame:hover img {
  transform: scale(1.04);
}

/* 06. Interactive elements (links, buttons, CTAs) */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,180,210,.9);
  outline-offset: 2px;
}
.btn {
  display: inline-block;
  padding: .75rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.16);
  color: var(--text);
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, rgba(255, 140, 190, 0.95), rgba(255, 170, 200, 0.95));
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
}
.cta { display:inline-flex; align-items:center; gap:.5rem; padding:.6rem .9rem; border-radius:999px; border:1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: var(--text); }
.cta:hover { background: rgba(0,0,0,.32); }

/* 07. Content blocks & lists */
.content { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); padding: 1rem; border-radius: var(--radius); }

/* Unordered/ordered lists styling */
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; color: var(--muted); }
li { margin: .25rem 0; }

/* 08. Footer & ad sections */
footer { padding: 1.5rem; text-align: center; color: var(--muted); }
.product-ad, .sponsored-page { display: inline-block; margin: .25rem 1rem 0; padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }
.product-ad a, .sponsored-page a { color: var(--text); }
.product-ad:hover, .sponsored-page:hover { background: rgba(255,255,255,.18); }

/* 09. Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
  .image-frame { page-break-inside: avoid; }
}

/* 10. Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}