/* Palette & Foundations */
:root {
  --bg: #fbd5e6;          /* pastel pink */
  --bg-2: #ffd3e8;        /* lighter pink accent */
  --text: #0b0b0f;         /* high-contrast text */
  --muted: #6b6b85;        /* secondary text */
  --accent: #e3003a;        /* crimson
  --accent-2: #b4002d;      /* deep crimson */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.30);
  --shadow: 0 8px 26px rgba(0,0,0,.14);
}

/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  color: var(--text);
  background: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  position: relative;
}
a, button, .btn, .cta { font-family: inherit; }

:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Layered background: gradient + subtle noise/scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #fff0 100%);
  background-attachment: fixed;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* subtle scanlines + gentle noise */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.08), rgba(255,255,255,.08)),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 40%);
  mix-blend-mode: overlay;
  opacity: .9;
  pointer-events: none;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.15); }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content { padding: 0.5rem 0; font-size: clamp(0.95rem, 0.9vw + 0.75rem, 1rem); line-height: 1.5; color: var(--text); }

/* Specific sections */
.image-frame, .product-ad, header, aside, main, article, footer { /* ensure proper stacking & flow */ }

.product-ad {
  display: block;
  padding: 0.6rem;
  margin: 0.5rem 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .product-ad { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
}

/* Typography tuning for headings and meta */
h1, h2, h3 { margin: 0 0 .35rem; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1vw + .8rem, 1.25rem); }

/* Header, main, footer structure (glass panels with fallbacks) */
header {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  margin: 1rem auto;
  max-width: clamp(320px, 92vw, 1120px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header .meta {
  font-size: clamp(0.8rem, 0.8vw + .3rem, 0.95rem);
  color: var(--muted);
}
nav { margin-top: .25rem; }
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus { text-decoration: underline; color: var(--accent); }

/* Link/button styling */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }
a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

button, .btn, .cta {
  font: inherit;
  cursor: pointer;
  display: inline-block;
  padding: 0.65em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.8);
  color: var(--text);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.95); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ff5a7a);
  border: none;
  color: #fff;
}
.btn.secondary {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.15);
}
.btn.ghost {
  background: transparent;
  border: 1px dashed rgba(0,0,0,.25);
  color: var(--text);
}
.cta { }

/* Lists & inline elements */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}

/* Aside styling (for optional syndication/side notes) */
aside {
  padding: .5rem;
  margin: .5rem 0;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
}

/* Print styles */
@media print {
  body::before, body::after { display: none; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}