/* Base / Tokens */
:root {
  --bg: #0b0710;
  --bg-2: #2a1f2a;
  --text: #efe6fb;
  --muted: #cdbbd7;
  --accent: #b88df0;      /* soft lilac */
  --accent-2: #7c5a2e;     /* warm brown */
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.14);
  --radius: 14px;
  --shadow: 0 8px 26px rgba(0,0,0,.28);
  --focus-outline: 2px solid #fff;
  --focus-shadow: 0 0 0 4px rgba(140,120,210,.35);
}

/* Reset-ish, box model */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(214,205,226,.28) 0%, rgba(122,99,72,.28) 60%, rgba(14,8,14,.28) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* Layout scaffolding */
.container { max-width: clamp(320px, 86vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Glass panel helper (with fallback) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  position: relative;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.16); }
}

/* Header / hero styling */
header {
  padding: 1.25rem;
  text-align: center;
  margin: 1rem auto;
}
header h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw + 0.6rem, 1rem);
  margin: 0;
}
header nav {
  margin-top: .75rem;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  transition: transform .2s ease;
}
header nav a:hover { transform: translateY(-1px); text-decoration: underline; }

/* Featured image frame (with image) */
.featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #000;
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  margin: 0.75rem 0 1rem;
}
.featured-image img {
  width: 100%; height: auto; display: block; object-fit: cover;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Main content region */
main { padding: 0 0.5rem; }
article {
  padding: 1rem;
  margin: 0 auto 1rem;
}
article h2 {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
  margin: .25rem 0 0.5rem;
  color: #f0e7ff;
}
article p { color: #e9e0f7; margin: .5rem 0; }

/* Block quotes for atmosphere */
article blockquote {
  margin: .75rem 0;
  padding: .5rem .75rem;
  border-left: 3px solid var(--accent);
  color: #f6f2ff;
  background: rgba(124,92,46,.15);
  border-radius: 6px;
}

/* Lists */
ul { margin: .5rem 0 1rem 1.1rem; padding: 0; }
li { margin: .25rem 0; }

/* Product ad + footer sections as glass panels */
.product-ad, .sponsored-page, footer { display: block; }
.product-ad {
  margin: .75rem 0;
  text-align: center;
}
.product-ad a {
  display: inline-block;
  text-decoration: none;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0710;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }

/* Footer styling as glass panels with content rows */
footer {
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}
footer p { color: var(--muted); margin: .25rem 0; }

/* Utility / layout helpers */
.container { display: block; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-2px); }

/* Tag chips */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #0b0710;
  background: linear-gradient(135deg, #fff, #ffd6f0);
  border: 1px solid rgba(0,0,0,.1);
  line-height: 1;
}

/* Links and controls */
a, button, .btn, .cta {
  font-family: inherit;
  cursor: pointer;
  outline: none;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 4px;
  box-shadow: var(--focus-shadow);
}
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: var(--accent);
  color: #0b0710;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #a57ce5; }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn.secondary:hover { background: rgba(255,255,255,.08); }

/* Form elements (basic) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.15);
  color: var(--text);
  width: 100%;
}
input::placeholder { color: #c9b7d3; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .glass, header, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}
  
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}