:root {
  --bg: #ffdbe7;
  --bg-2: #0a2f6f;
  --text: #eaf5ff;
  --muted: #cbd9f0;
  --accent: #0b6bdc;
  --accent-2: #ff4fb5;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid #fff;
  --focus-offset: 2px;
}

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

html, body { height: 100%; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(255,255,255,.09), transparent 40%),
    linear-gradient(135deg, rgba(255,0,140,.18), rgba(0,108,220,.18) 60%, rgba(0,0,0,.0)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(#ffd6e9, #fbd7e6 40%, #f3e7f0 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  padding: 0;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

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

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}

.content { padding: 1rem 0; }

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Structural elements */
header, nav, main, article, footer, aside { display: block; }

/* Glass panels (with fallback) */
header {
  padding: 1.75rem 1rem;
  margin: 1rem auto;
  width: min(100%, 1100px);
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
header h1 { margin: 0.25rem 0 0.25rem; font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: .2px; color: var(--text); }
header .meta { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas; color: var(--muted); font-size: .85rem; margin-top: .25rem; }
header nav { margin-top: .5rem; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
header nav a { color: var(--text); text-decoration: none; padding: .4rem .75rem; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.25); }
header nav a:hover { background: rgba(255,255,255,.14); }

/* Typography & content flow */
main { padding: 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--text); margin: .75rem 0; }
p { color: rgba(234,243,255,.95); margin: .5rem 0 1rem; }
blockquote {
  margin: .5rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  color: rgba(235,245,255,.95);
  background: rgba(0,0,0,.18);
  border-radius: 6px;
}

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0 1rem; color: rgba(234,243,255,.95); }
li { margin: .25rem 0; }

/* Anchor and button styling (accessible focus) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Button variants */
.btn, .cta {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0,0,0,.35); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid #fff; outline-offset: var(--focus-offset); }

/* Primary/outline helpers (utility-like) */
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #0a5fbf 100%);
  border: none;
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
}
.cta { padding: .65rem 1.2rem; }

/* Sections in footer */
footer { padding: 1rem; text-align: center; color: var(--muted); }

.product-ad, .sponsored-page {
  margin: .25rem 0;
}
.product-ad a, .sponsored-page a {
  display: block; padding: .9rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; text-align: center; text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { background: rgba(255,255,255,.16); }

/* Print styles (readable) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, footer { background: transparent; box-shadow: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}