/* Base & Globals */
:root {
  --mustard: #D4A017;
  --mustard-dark: #b58a0f;
  --blue: #8bd6ff;
  --blue-soft: #bfe4ff;
  --bg: #0a0a0f;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --surface-3: rgba(255,255,255,.22);
  --text: #0b1020;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus-ring: 2px solid #fff;
  --glass-border: rgba(255,255,255,.28);
  --glass-bg: rgba(255,255,255,.08);
  --maxw: 1100px;
}

/* Section: Layered Background & Typography */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 0%, rgba(212,160,23,.25), transparent 40%),
    linear-gradient(135deg, rgba(212,160,23,.20) 0%, rgba(11,14,32,.25) 60%, rgba(0,0,0,.0) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

/* Section: Layout Helpers */
.container { max-width: min(var(--maxw), 92vw); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Typography scale */
h1, h2, h3 { color: #fff; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: .2px; }
h2 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p, li { color: rgba(255,255,255,.92); }
ul, ol { padding-left: 1.25rem; margin: .75rem 0 1rem; }
li { margin: .25rem 0; }

/* Section: Anchor, Button & Interaction Styles */
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

button, .btn, .cta { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); padding: .65rem 1.1rem; background: rgba(0,0,0,.15); color: #fff; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn { background: rgba(139,213,255,.95); color: #042033; border: 1px solid rgba(255,255,255,.9); }
.btn:hover { transform: translateY(-1px); background: rgba(139,213,255,1); }
.btn:active { transform: translateY(0); }

.btn-outline { background: transparent; color: #eaffff; border: 1px solid rgba(139,213,255,.9); }
.btn-outline:hover { background: rgba(139,213,255,.15); color: #fff; }

/* Section: Image framing & media */
.image-frame { width: 100%; max-width: 720px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }

/* Section: Content & Glass Panels (Frosted Glass) */
.content { padding: 1rem; }
header, nav, main, article, aside, footer { /* glass panels where applicable */ }
header, main, footer { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 0.9rem 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Fallback for environments without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer { background: rgba(255,255,255,.18); }
}

/* Section: Page Structure */
header { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; gap: .5rem; width: min(100%, 1120px); margin: 1rem auto; }
header h1 { font-weight: 700; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
header .meta { color: rgba(255,255,255,.9); font-size: .9rem; opacity: .95; }

/* Back navigation styling inside header */
nav { margin-top: .25rem; }
nav a { padding: .35rem .6rem; border-radius: 6px; background: rgba(255,255,255,.14); color: #e9f2ff; border: 1px solid rgba(255,255,255,.28); }

/* Main content */
main { padding: 1rem; display: block; }
article { max-width: min(840px, 100%); margin: 0 auto; padding: 0; }

/* Featured image container alignment (supporting .image-frame rules) */
.featured-image { display: grid; place-items: center; padding: .5rem 0; }

/* Footer with product-ad blocks */
footer { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem; align-items: center; justify-items: center; }

/* Section: Utilities */
.tag { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .75rem; background: rgba(139,211,255,.25); color: #eaffff; border: 1px solid rgba(139,211,255,.5); }

/* Responsive: grid utilities */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 900px) {
  header { padding: 1.5rem; }
  main { padding: 1.25rem 0; }
  article { padding: 0 0.25rem; }
  footer { grid-template-columns: 1fr 1fr; }
}

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

/* Section: Print */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: block; }
  a { text-decoration: underline; }
}