/* Section: Base & Palette */
:root{
  --bg: #0b0012;
  --bg-2: #230012;
  --bg-3: #1a000e;

  --text: #f9f9f9;
  --muted: #c9c9c9;

  --accent: #ff6a00;      /* orange */
  --accent-2: #ffb04a;    /* lighter orange for hover/focus */

  --glass: rgba(255,255,255,.18);
  --glass-2: rgba(255,255,255,.08);
  --border: rgba(255,140,0,.4);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px;

  --focus: 2px solid var(--accent-2);
}

/* Section: Reset & globals */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  /* Layered background: gradient + cosmic hints + subtle scanlines/noise */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255,90,0,.25) 0 20%, transparent 20%),
    radial-gradient(circle at 85% 60%, rgba(255,140,0,.25) 0 28%, transparent 28%),
    linear-gradient(135deg, rgba(12,0,0,.95) 0%, rgba(0,0,0,.95) 60%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.65)),
    linear-gradient(to bottom right, rgba(120,0,0,.25), rgba(0,0,0,0));
  background-blend-mode: screen, screen, normal, normal, overlay;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::before {
  /* subtle scanlines / noise layer (pure CSS) */
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px, 100% 2px;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

*, *::before, *::after { box-sizing: border-box; }

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Section: Core layout elements */
html, body, header, nav, main, article, footer, aside { display: block; }
header {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 3.6rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  font-weight: 800;
  letter-spacing: .4px;
  color: #fff;
  text-shadow: 0 0 14px rgba(255,90,0,.65);
}
header .meta {
  color: var(--muted);
  font-size: clamp(.9rem, .5vw + .8rem, 1.05rem);
}
nav { margin-top:.5rem; }
nav a {
  color: #ffd8bf; text-decoration: none;
  padding: .4rem .6rem; border-radius: 6px;
  border: 1px solid rgba(255,140,0,.3);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Section: content typography & glass panels */
.content, article { /* glassy wrapper for readability */ }
.content {
  background: rgba(12,12,20,.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  margin: .75rem 0;
  /* subtle frosted look with fallback */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(8px)) {
  .content { background: rgba(12,12,20,.54); }
}
main { padding: 1rem 0; }
article { max-width: 700px; margin: 0 auto; }

/* Section: images */
.image-frame, .featured-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,140,0,.4);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame { aspect-ratio: 16/9; display: block; }
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
}
.featured-image { display:block; }

/* Section: content styling for headings and lists */
h2 {
  font-size: clamp(1.25rem, 0.9vw + 1rem, 1.75rem);
  margin: 1rem 0 .5rem;
  color: #fff;
}
p { color: #f5f5f5; margin: .6rem 0; }
blockquote {
  padding: .75rem 1rem;
  margin: .75rem 0;
  border-left: 4px solid rgba(255,140,0,.75);
  color: #f6f6f6;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .5rem 0; color: #e8e8e8; }
li { margin: .25rem 0; }

/* Section: utility classes (required) */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255, 140, 0, .28);
  border: 1px solid rgba(255,140,0,.5);
  color: #fff;
}
.btn, .cta, button {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline, .outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}
.cta { background: linear-gradient(135deg, rgba(255,106,0,.9), rgba(255,128,0,.9)); color: #111; padding-inline: 1rem; }

/* Section: product-ad & footer links */
.product-ad { display: grid; place-items: center; padding: .5rem 0; }
.product-ad a {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: rgba(255,140,0,.28);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,140,0,.5);
}
.product-ad a:hover { background: rgba(255,140,0,.42); }
footer { padding: 1rem 0 2rem; text-align: center; color: var(--muted); }

/* Section: form controls (baseline) */
input, textarea, select {
  font: inherit;
  color: var(--text);
  padding: .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: none;
  outline: var(--focus);
  outline-offset: 3px;
}

/* Section: responsiveness & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn, .cta { transform: none !important; }
}
@media (max-width: 600px) {
  header { padding: 1.5rem 1rem; }
  .container { padding-inline: .75rem; }
  .grid { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .content, .card { background: #fff; border: none; box-shadow: none; }
}
