:root {
  /* Palette (jade rain + mustard accents) */
  --bg: #0b0f14;
  --bg-2: #0e1620;
  --text: #e9f8ff;
  --muted: #b7cbd8;
  --accent: #D4AF37;        /* mustard */
  --accent-2: #2EC4B6;       /* jade */
  --glass: rgba(255,255,255,0.08);
  --glass-2: rgba(255,255,255,0.16);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --radius: 14px;
  --focus: 2px solid var(--accent-2);
  --focus-offset: 2px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(7,12,18,.95), rgba(6,12,18,.98)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Baseline sections (semantic) */
header, main, article, aside, nav, footer {
  /* subtle glassy panels with fallback */
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 0.75rem auto;
}

header { text-align: center; padding: 1.25rem 1rem; }
main { padding: 0.5rem 1rem; }
article { padding: 1rem; }

/* Featured image frame (image-frame) - glassy frame with glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content typography & structure */
.container { width: min(100%, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.content { max-width: 62ch; margin: 0 auto; padding: 0 0.25rem; color: var(--text); }
a, button, .btn, .cta { text-decoration: none; color: inherit; font: inherit; }

/* Headings & typography scale (responsive) */
h1, h2, h3 { color: #fff; margin: .25rem 0 0.5rem; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 3.25rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.4rem); }

/* Lists & quotes */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Tags (utility) */
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(46,196,184,.25);
  color: #eafff9;
  border: 1px solid rgba(46,196,184,.6);
}

/* Product ad (glass panel) */
.product-ad { display: inline-block; padding: .75rem; text-align: left; }
.product-ad h3 { margin: .25rem 0 0.5rem; font-size: 1.05rem; }
.product-ad a { display: inline-block; width: auto; }

/* Image & media frame utility */
.image-frame + .image-frame { margin-top: .75rem; }

/* Button variants (solid + outline) */
.btn, .cta {
  border-radius: 999px;
  padding: .65em 1em;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn { background: var(--accent); color: #0b0f14; }
.btn:hover { transform: translateY(-1px); background: #e0c24a; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,.6); outline-offset: var(--focus-offset); }

/* Outline variant */
.btn--outline {
  background: transparent;
  color: #e8f6ff;
  border: 1px solid rgba(212,175,55,.95);
}
.btn--outline:hover { background: rgba(255,255,255,.08); }

/* Primary CTA (standout) */
.cta {
  background: linear-gradient(135deg, rgba(212,175,55,.95), rgba(46,196,184,.95));
  color: #0b0f14;
  border: none;
}
.cta:hover { filter: brightness(1.04); }

/* Links enhancements (focus/hover) for accessibility */
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Focus states for interactive elements (global) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Layout helpers (responsive) */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 900px) {
  .content { font-size: clamp(16px, 1.8vw, 18px); }
}

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

/* Print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, main, article, aside, footer { background: transparent; border: none; box-shadow: none; padding: 0; }
  .container { width: 100%; padding: 0; }
}
