/* Section: Global reset & variables */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.4; }
:root {
  --bg: #0b0b14;
  --bg-2: #1b1020;
  --text: #f7f7fb;
  --muted: #d8d0e6;
  --accent: #ffd76a;      /* pastel yellow */
  --accent-2: #ffb6d9;    /* pastel pink */
  --card: rgba(255,255,255,.08);
  --card-strong: rgba(255,255,255,.16);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --focus: 0 0 0 3px rgba(255,214,92,.9);
}
html, body { margin: 0; padding: 0; color: var(--text);
  background: linear-gradient(135deg, rgba(255,180,200,.18) 0%, rgba(255,235,170,.15) 60%, rgba(180,210,255,.12) 100%),
              radial-gradient(circle at 20% -10%, rgba(255,105,180,.15), transparent 40%),
              var(--bg);
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(14px, 0.9vw + 12px, 16px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
  opacity: .28;
  pointer-events: none;
}
/* Section: Layout primitives */
.container { width: min(1100px, 92%); margin: 0 auto; padding: 0 0.5rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; color: var(--text);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }

/* Section: Typography & utilities */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; letter-spacing: -0.2px; }
p { margin: .5rem 0; color: var(--muted); }
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Section: Structural selectors (targeted) */
html, body, header, nav, main, article, footer, aside {
  display: block;
}
header { width: min(1120px, 92%); margin: 1.5rem auto; padding: 1rem 1rem; border-radius: calc(var(--radius) + 2px);
  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 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem); margin: .25rem 0 .5rem; line-height: 1.05; }
nav { display: inline-block; margin-top: .25rem; }
nav a { color: var(--text); text-decoration: none; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(0,0,0,.12); border: 1px solid rgba(255,255,255,.25); }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Section: Hero content area */
main { display: grid; place-items: center; padding: 1rem 0 2rem; }
.image-frame { width: min(90vw, 720px); aspect-ratio: 16/9; border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.35);
  background: #111; box-shadow: inset 0 0 12px rgba(0,0,0,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fallback if backdrop-filter isn't supported */
@supports not (backdrop-filter: blur(8px)) {
  .image-frame { background: rgba(255,255,255,.18); }
}
.content { max-width: 860px; margin: 0 auto; padding: 0 1rem; text-align: left; }

/* Section: interactive elements (buttons/links) */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
.btn, .cta { display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(135deg, rgba(255,215,106,.95), rgba(255,215,106,.75));
  color: #1a140b; font-weight: 700; text-shadow: none; transition: transform .2s ease, box-shadow .2s ease;
}
.btn.secondary { background: rgba(255,255,255,.14); color: var(--text); border-color: rgba(255,255,255,.4); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,215,106,.4); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--focus); }

/* Section: product-ad blocks (footer) */
.product-ad, .sponsored-page { display: block; margin: 1rem auto; padding: .75rem; width: min(720px, 92%);
  text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px; }
.product-ad a, .sponsored-page a { color: var(--text); font-weight: 600; }

/* Section: responsive utilities */
@media (min-width: 740px) {
  main { padding: 1.5rem 0 2.5rem; }
  .container { padding: 0 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: print styles */
@media print {
  body { background: white; color: black; }
  a, button { text-decoration: underline; color: black; }
}
