/* Palette & primitives */
:root {
  --bg: #0b0c10;
  --bg-2: #14161d;
  --text: #f7f7fb;
  --muted: #b8b5bd;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.28);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.38);
  --accent: #d07a66;        /* rose-gold base */
  --accent-2: #f0c29e;        /* lighter pewter rose */
  --focus: 0 0 0 3px rgba(208, 122, 102, 0.65);
  --gap: 1rem;
}

/* Base & layered background (gradient + subtle scan) */
html, body { height: auto; }
* { box-sizing: border-box; }
html {
  color-scheme: dark;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(208,122,102,0.25) 0%, rgba(240,194,158,0.25) 60%, rgba(208,122,102,0.25) 100%),
    radial-gradient(circle at 15% 0%, rgba(255,235,210,0.08), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(255,215,180,0.08), transparent 40%);
  background-blend-mode: overlay;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 2px);
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.08), transparent 25%),
              radial-gradient(circle at 100% 100%, rgba(255,255,255,0.06), transparent 25%);
  opacity: 0.15;
  pointer-events: none;
  filter: blur(0.2px);
}

/* Layout primitives */
.container { max-width: clamp(320px, 92vw, 1100px); margin: 0 auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,0.15); }
}
.image-frame { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (with fallback) */
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.45); }
}

/* Typography & helpers */
.content { padding: 0; }
h1, h2, h3 { margin: 0.5rem 0; font-weight: 600; }
h1 { font-size: clamp(1.6rem, 2.6vw + 0.6rem, 3rem); line-height: 1.1; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.8vw + 1rem, 2rem); }
h3 { font-size: clamp(1rem, 1.3vw + 0.6rem, 1.25rem); color: #eae6f0; }
p { line-height: 1.6; color: var(--text); margin: 0.75rem 0; }
blockquote { margin: 0.75rem 0; padding: .5rem 1rem; border-left: 4px solid var(--accent); background: rgba(0,0,0,.15); border-radius: 8px; color: #fff; }

/* Lists & tags */
ul, ol { padding-left: 1.25rem; margin: 0.75rem 0; }
li { margin: .25rem 0; }
.tag { display:inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; background: rgba(208,122,102,0.25); border: 1px solid rgba(208,122,102,0.5); color: #fff; }

/* Interactive elements */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.35);
  padding: .65rem 1rem;
  display: inline-block;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; transform: translateY(-1px); }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 0;
}
.btn { background: linear-gradient(135deg, #e28a72, #d07a66); border: 1px solid rgba(255,255,255,0.5); }
.btn--outline {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--text);
}
.btn + .btn { margin-left: .5rem; }

/* Header & navigation */
header { padding: 1.5rem 0 0.75rem; text-align: center; }
header h1 { color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
header .meta { color: var(--muted); font-size: 0.92rem; margin-top: .25rem; }

/* Page structure */
main { padding: 1rem 1rem; }
article { margin: 0 auto; padding: 0 0.25rem; max-width: clamp(520px, 90vw, 860px); }
.featured-image { margin: 1rem 0; }
footer { padding: 1rem 0; text-align: center; color: var(--muted); }

/* Utility sections in footer */
.product-ad, .sponsored-page { display: inline-block; margin: 0 .25rem; }
.product-ad a { display: block; padding: .7rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #8b5144, #b98768); color: #fff; }
.sponsored-page a { display: block; padding: .7rem 1rem; border-radius: 999px; background: linear-gradient(135deg, #2a2230, #4b4355); color: #fff; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .glass, .card { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}