/* Base tokens and reset */
:root {
  --bg: #0a1f1a;
  --bg-2: #0b2a24;
  --text: #eaf7f1;
  --muted: #a6b8ad;
  --accent: #d4af37;
  --accent-2: #f2c84b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
  --shadow-soft: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(0, 8, 6, 0.95) 0%, rgba(9, 18, 16, 0.92) 60%, rgba(0, 8, 6, 0.95) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 2px, transparent 2px, transparent 4px),
    radial-gradient(circle at 20% -10%, rgba(180, 180, 100, .08), transparent 20px),
    rgba(3,6,4,1);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:hover { text-decoration: underline; }

/* Layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding: 0 0.5rem; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* General sections */
html, body, header, nav, main, article, aside, footer {
  /* ensure structural elements participate in layout gracefully */
}
header, main, footer { padding: 0.75rem; }

/* Hero / header styling (glass-like) */
header {
  width: min(1100px, 92vw);
  margin: 0 auto 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
header h1 {
  font-size: clamp(1.75rem, 1.2vw + 1.6rem, 3rem);
  line-height: 1.15;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: clamp(0.8rem, 0.4vw + 0.8rem, 0.95rem);
  color: var(--muted);
}

/* Main content area and article styling (glass panels) */
main {
  display: block;
  padding: 0 0.5rem;
}
article {
  width: 100%;
  max-width: clamp(28rem, 80vw, 900px);
  margin-inline: auto;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.featured-image, .image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  background: #0b1a15;
}
.featured-image img, .image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.content { /* reserved for potential wrapping sections */ }

/* Typography within article */
h2 { font-size: clamp(1.4rem, 0.9rem + 2vw, 2rem); margin: .75rem 0 .5rem; color: var(--text); }
h3 { font-size: clamp(1.1rem, 0.8rem + 1.5vw, 1.6rem); margin: .75rem 0; color: var(--text); }
p { margin: 0 0 1rem; color: #e9f6ef; }
blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--accent);
  color: #eaf7f0;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  font-style: italic;
}
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Lists & inline elements styling */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(212,175,55,0.25);
  border: 1px solid rgba(212,175,55,.5);
  color: #f9f4e0;
}

/* Image frame aliasing for compatibility with possible alternate markup */
.image-frame { display: block; }

/* Product ad (glass panel) */
.product-ad {
  padding: 1rem;
  margin: 0.5rem 0 0;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}
.product-ad h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.product-ad a {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(#f5d96a, #d6a72c);
  color: #1a140b;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration: none;
  font-weight: 600;
}
.product-ad a:hover { filter: brightness(1.05); }

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
  margin-top: 1.25rem;
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Buttons, links, and interactive controls */
button, .btn, .cta {
  font: inherit;
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.7);
  background: linear-gradient(#e6bf3b, #c99923);
  color: #1b1206;
  cursor: pointer;
  text-align: center;
}
.btn { background: linear-gradient(#f6e1a3, #e0bd54); color: #1b140a; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212,175,55,.8);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Accessibility: ensure contrast on glass
   Text on glass panels should meet WCAG AA where possible; short-circuit fallback styles apply when backdrop-filter not available. */
@supports not (backdrop-filter: blur(12px)) {
  .card, header, article, .featured-image, .product-ad {
    background: rgba(255,255,255,.12);
  }
  header { background: rgba(255,255,255,.10); }
  article { background: rgba(255,255,255,.10); }
}

/* Responsive helpers */
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .container { width: min(1100px, 92vw); }
  article { padding: 1.25rem 1.25rem; }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
 
/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, .image-frame, .product-ad { display: none; }
  article { background: #fff; border: none; box-shadow: none; max-width: none; padding: 0; }
  ul { padding-left: 1.2em; }
}