/* Base: token palette & global layout */
:root{
  --copper: #b66a2f;
  --copper-dark: #8a4422;
  --turq: #22f0e0;
  --turq-2: #00e0c2;
  --bg: #0a0a0a;
  --bg-2: #1b0f0a;
  --text: #eaffff;
  --muted: #a6c1cf;
  --glass: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  --border: rgba(255,255,255,.28);
}

html, body, header, nav, main, article, aside, footer {
  padding: 0;
  margin: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 0%, rgba(184,104,34,.25), transparent 40%),
    linear-gradient(135deg, rgba(184,104,34,.15), rgba(0,0,0,0) 60%),
    linear-gradient(#0a0a0a 0 0);
  background-color: #050505;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.04) 2px 4px);
  mix-blend-mode: overlay;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 70% -10%, rgba(0, 255, 230, .08), transparent 40%),
              radial-gradient(circle at -10% 60%, rgba(255, 204, 102, .04), transparent 40%);
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(700px, 85vw, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  color: var(--text);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(15,15,25,.72); }
}
.tag {
  display:inline-block;
  padding:.15rem .6rem;
  border-radius:999px;
  border:1px solid rgba(0, 255, 230, .6);
  background: rgba(0,255,230,.08);
  color: var(--text);
  font-size: .75rem;
  line-height: 1;
}
.image-frame, .featured-image {
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 12px rgba(0,255,230,.15);
  background:#111;
}
.image-frame { aspect-ratio: 16/9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (content areas) */
.content, .product-ad {
  background: rgba(20, 20, 40, .34);
  border: 1px solid rgba(170,210,255,.40);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}
@supports not (backdrop-filter: blur(12px)) {
  .content, .product-ad { background: rgba(20,20,40,.72); }
}
.main-cta {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
}
.product-ad {
  text-align: center;
  padding: .8rem;
}
.product-ad a { color: var(--tan) }

/* Typography */
h1, h2, h3, h4 { margin: 0 0 .75rem; line-height: 1.15; }
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.25rem, 2.5vw + .5rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1.8vw + .3rem, 1.4rem); font-weight: 700; color: #eaffff; }
p { color: #e8fbff; margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; color: #e9fbff; }
li { margin: .25rem 0; }

/* Links & controls */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: var(--turq);
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
a:hover { text-decoration: underline; text-underline-position: under; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}
.btn {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,230,.9);
  background: rgba(0,0,0,.0);
  color: #eaffff;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid {
  background: var(--turq);
  color: #041414;
  border-color: rgba(0,255,230,.9);
  box-shadow: 0 6px 14px rgba(0,255,230,.42);
}
.btn--outline {
  background: transparent;
  color: var(--turq);
  border: 1px solid rgba(0,255,230,.9);
}
.cta { font-weight: 700; padding: .65rem 1rem; border-radius: 999px; }

/* Layout: header, main, footer, aside, nav */
header, main, footer, aside {
  padding: 1rem;
}
header {
  padding-top: 1.25rem;
}
header h1 { color: #eaffff; text-shadow: 0 0 12px rgba(0,255,230,.6); }
header .meta { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }

/* Sectioning helpers for content blocks */
.grid--2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.main {
  padding: 0;
}
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  footer { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .sizer { padding: 0; }
  header, main, footer { padding: 1rem 0; }
}
.product-ad { /* ensure glass panel in footer region */ }

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

/* Print styles: simple readability */
@media print {
  body { background: white; color: #000; }
  header, nav, footer { display: none; }
  article { display: block; padding: 0; }
}
