/* Section: Base, tokens & global helpers */
:root{
  --bg: #160017;
  --bg-2: #2a0030;
  --text: #f8eaff;
  --muted: #d6b9c9;
  --accent: #ff2d8a;
  --accent-2: #e30040;
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.14);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --focus-ring: 3px solid rgba(255,255,255,.95);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255,0,120,.25) 0%, rgba(214,0,80,.25) 60%, rgba(180,0,70,.25) 100%),
    radial-gradient(circle at 20% -10%, rgba(255,0,120,.15), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-color: #120018;
  background-blend-mode: screen, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(680px, 90vw, 1120px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Utilities & components */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }

/* Section: Glassy surfaces (fallback and backdrop-filter) */
header, main, footer, aside { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
header nav { display: inline-flex; gap: .5rem; margin-top: .25rem; }
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content typography & structures */
h1, h2, h3 { margin: 0.25rem 0; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 3.5vw, 3.25rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
p { margin: .75rem 0; color: color-mix(in oklab, white, black 20%); }

blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: rgba(255,255,255,.05); border-radius: 6px; }

/* Section: Forms (basic) */
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea, select {
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  padding: .5rem .6rem;
  border-radius: 6px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,120,.25); }
button, .btn, .cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; border: none; cursor: pointer; padding: .62rem 1rem; background: var(--accent); color: #fff; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn { background: var(--accent); border: 1px solid rgba(255,255,255,.4); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.6); }
button:hover:not(:disabled), .btn:hover, .cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* Section: Print & motion preferences */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
  header, main, footer, aside { background: transparent; border: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout primitives for responsiveness */
main { padding: 1rem; }
header { padding: 1.25rem; text-align: center; }
footer { padding: 1rem; text-align: center; margin-top: 1rem; }

/* Section: Specific selectors housekeeping (ensuring required elements exist) */
.content { max-width: 60ch; margin: 0 auto; padding: 0 1rem; }
.product-ad { margin: 1rem 0; }

/* Utility: visually hidden (for accessibility if needed) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }