/* Base tokens & helpers */
:root{
  --bg: linear-gradient(135deg, #d6f0ff 0%, #a6d6ff 40%, #7bbfff 100%);
  --bg-2: rgba(255, 140, 66, 0.25);
  --text: #0b1020;
  --muted: #49556b;
  --accent: #ff8a3d;
  --accent-2: #ffd29a;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-soft: 0 6px 18px rgba(0,0,0,.14);
  --shadow-glass: 0 6px 20px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

/* Base aesthetics */
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  color: var(--text);
  min-height: 100vh;
  /* Layered background: pastel blue gradient + subtle scanlines */
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(214,240,255,.92) 0%, rgba(166,214,255,.92) 60%, rgba(123,191,255,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; text-decoration: underline; color: var(--accent-2); }
a:hover { text-decoration: underline; }

/* Layout primitives */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Page regions */
header, nav, main, aside, article, footer { display: block; }
header { padding: 2rem 1rem 1rem; text-align: center; }
header h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.8rem); font-weight: 700; margin: 0; }

/* Hero/content panels (glass) */
.content, .card, .product-ad, aside, article { border-radius: 12px; }
.card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); padding: 1rem; box-shadow: var(--shadow-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.85); }
}
.product-ad { display: inline-block; padding: .65rem 1rem; margin: .25rem 0; border-radius: 12px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); box-shadow: var(--shadow-soft); text-align: center; }
.product-ad a { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font-weight: 600; padding: .4rem .75rem; border-radius: 999px; }
.product-ad a:hover { text-decoration: underline; }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.5); background: #000; box-shadow: 0 16px 32px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

/* Typography helpers */
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .8rem; background: rgba(255,140,66,.25); color: #2b1f00; border: 1px solid rgba(255,140,66,.6); }

/* Controls (buttons/links) */
button, .btn, .cta { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; border: none; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn { background: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(255,138,61,.4); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.btn--outline:hover { background: rgba(255,255,255,.7); }
.cta { /* alias for primary action if used in markup */ }

/* Footer & misc sections */
footer { padding: 1rem; text-align: center; }

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

/* Print readability (light) */
@media print {
  body { background: #fff; color: #000; -webkit-print-color-adjust: exact; }
  header, nav, main, aside, footer { display: block; }
}