:root {
  --bg: #0b0b10;
  --bg-2: #14141a;
  --text: #f7f7f7;
  --muted: #c9c9c9;
  --accent: #a01224;
  --accent-2: #ff5c6a;
  --panel: rgba(255,255,255,.08);
  --panel-2: rgba(255,255,255,.15);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", sans-serif; font-size: clamp(14px, 1vw + 10px, 18px); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  line-height: 1.5;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 4px; }
:focus { outline: none; }

.container { max-width: clamp(720px, 90vw, 1100px); padding-inline: 1rem; margin: 0 auto; }

header, nav, main, article, aside, footer { display: block; }

/* Header / hero */
header {
  padding: 1rem;
  margin: 1rem auto;
  width: min(100%, 1100px);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 { margin: 0; font-size: clamp(1.6rem, 2.6vw + .4rem, 2.8rem); color: var(--text); }

/* Main content */
main { padding: 0 1rem; }

/* Image frame with aspect ratio, glow, border */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  margin: 1rem auto;
  background: #000;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-frame:hover { transform: translateY(-2px); }

/* Glass panel utility */
.card, .panel, .glass { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; }

/* Simple content helpers */
.content { padding: 1rem 0; }

/* Lists */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Utilities */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; }

/* Tags */
.tag { display: inline-block; padding: .15rem .5rem; font-size: .75rem; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: var(--text); }

/* Buttons / CTAs */
.btn, .cta, a.btn {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(to bottom right, var(--accent), #7a0f1e);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--accent); border-color: rgba(160,0,0,.4); }
.btn:focus-visible, a.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Forms (basic) */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}
input, textarea, select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  border-radius: 6px;
  padding: .5rem;
}
button { cursor: pointer; }

/* Footer / product ads */
footer { padding: 1rem; }
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  margin: .5rem auto;
  width: min(100%, 640px);
  text-align: center;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.product-ad a, .sponsored-page a { color: var(--accent); font-weight: 600; display: inline-block; padding: .25rem .5rem; border-radius: 6px; text-decoration: none; }

/* Footer text */
footer p { text-align: center; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }

/* Layout helpers (optional) */
@media (min-width: 760px) {
  .container { padding-inline: 0; }
}

/* Dark mode: provide light-mode variants for legibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f5f3;
    --bg-2: #fff;
    --text: #111;
    --muted: #555;
    --accent: #8b1a2b;
    --accent-2: #b01a2d;
    --panel: rgba(0,0,0,.04);
    --border: rgba(0,0,0,.08);
  }
  body {
    background: var(--bg);
    background-image: none;
  }
  header {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(0,0,0,.08);
  }
  .image-frame { border-color: rgba(0,0,0,.15); }
  a { color: var(--accent); }
}

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

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}