:root {
  --bg: #0b0b0f;
  --bg-2: #141021;
  --surface: rgba(255, 107, 77, 0.22);
  --surface-2: rgba(128, 0, 0, 0.28);
  --border: rgba(255, 255, 255, 0.25);
  --text: #f9f5f3;
  --muted: #c8bdb8;
  --accent: #ff6a3d;
  --accent-2: #800000;
  --focus: 0 0 0 3px rgba(255, 214, 128, 0.8);
  --container-max: 1100px;
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.05), transparent 40%),
    linear-gradient(135deg, #2a0f0e 0%, #17070a 40%, #12080a 100%),
    repeating-linear-gradient(to bottom, rgba(255, 127, 80, 0.04) 0 2px, transparent 2px 4px);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
}

header {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
  margin: 1rem auto;
  max-width: var(--container-max);
  width: min(100%, 100%);
  border-radius: 16px;
  background: rgba(12, 6, 6, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw + 1rem, 2.75rem);
  line-height: 1.08;
  text-align: center;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

main { padding: 1rem 0 2rem; }

article {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0 1rem;
}

.image-frame {
  width: min(92%, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content {
  padding: 1rem;
  width: min(92%, 980px);
  margin: 0 auto;
}

.product-ad, .sponsored-page {
  display: grid;
  gap: .5rem;
  place-items: center;
  margin: .75rem auto;
  padding: .75rem;
  width: min(95%, 1000px);
  border-radius: 12px;
  background: rgba(128, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease;
}

.product-ad a, .sponsored-page a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 107, 60, 0.9);
}

.product-ad:hover, .sponsored-page:hover { transform: translateY(-2px); }

.product-ad:focus-within, .sponsored-page:focus-within { outline: 3px solid rgba(255,255,255,0.9); outline-offset: 2px; }

footer { padding: 1rem; }

ul, li { margin: 0; padding: 0; list-style: none; }

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

a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.9); outline-offset: 2px; }

.btn, button, .cta {
  cursor: pointer;
  border-radius: 999px;
  padding: .7em 1.2em;
  border: 1px solid rgba(255, 255, 255, .5);
  background: linear-gradient(to bottom, rgba(255,106,61,0.95), rgba(170,50,30,0.95));
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover, button:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.btn:active, button:active { transform: translateY(0); }
.btn:focus-visible, button:focus-visible { outline: 3px solid rgba(255,255,255,0.9); outline-offset: 3px; }
.btn--outline {
  background: rgba(0,0,0,0);
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
}

.card {
  background: rgba(255,255,255,0.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: 0 8px 24px rgba(0,0,0,.25);
}

.grid { display: grid; gap: 1rem; }

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

@media (min-width: 640px) {
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (prefers-color-scheme: light) {
  html, body { background: #f7f5f3; color: #1f1f1f; }
  header { background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
  header h1 { color: #1f1f1f; text-shadow: none; }
  .image-frame { border-color: rgba(0,0,0,0.08); }
  .product-ad, .sponsored-page { background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); }
  a { color: #0d47a1; }
  .btn { background: linear-gradient(to bottom, #1976d2, #0d47a1); }
  .btn--outline { color: #000; border-color: rgba(0,0,0,.2); }
}

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

@media print {
  body { background: #fff; color: #000; }
  header, footer { page-break-after: avoid; }
  .image-frame { page-break-inside: avoid; }
}