:root {
  --bg: #0b1020;
  --bg-2: #141a2b;
  --text: #eaf4ff;
  --muted: #a8b4c6;
  --surface: rgba(233, 220, 190, 0.14); /* beige glass */
  --surface-2: rgba(233, 220, 190, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --accent: #e9d8b5;      /* beige */
  --accent-2: #1b3a6b;    /* midnight blue */
  --shadow: 0 6px 20px rgba(0,0,0,.28);
  --radius: 12px;
}

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

html, body { height: 100%; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: inherit;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.5;
  color: var(--text);
  /* Layered background: gradient + beige lens flare scatter + subtle scanlines */
  background:
    radial-gradient(circle at 15% 20%, rgba(245,235,210,.25), transparent 25%),
    radial-gradient(circle at 70% 70%, rgba(245,235,210,.15), transparent 25%),
    linear-gradient(135deg, var(--bg) 0%, #0a1224 60%, #0b1b2d 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Light top-level container to center content on large screens */
.container {
  width: min(1100px, 90%);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Layout primitives */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  transition: transform .2s ease, background .3s ease;
  animation: fadeIn .6s ease-out;
}

@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba( acreage, 0, 0, 0); } /* fallback will be overridden below if needed */
}

.image-frame {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
  background: #000;
  display: block;
  width: 100%;
  animation: fadeIn .6s ease-out;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Glass panels with fallback */
.product-ad {
  display: block;
  padding: .75rem 1rem;
  border-radius: 12px;
  margin: .5rem 0;
  background: rgba(255, 246, 230, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background .3s ease;
}
@supports not (backdrop-filter: blur(8px)) {
  .product-ad { background: rgba(255, 246, 230, 0.28); }
}
.product-ad:hover { transform: translateY(-2px); }
.product-ad:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* Content blocks */
.content { color: var(--text); }

/* Text elements */
header, 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, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  color: var(--text);
  letter-spacing: .2px;
}
header .meta {
  margin-top: .25rem;
  font-size: .92rem;
  color: var(--muted);
}

/* Article styling and typographic hierarchy */
main {
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
article {
  width: min(900px, 92%);
  padding: 0.5rem;
}
article h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 1rem 0 .5rem;
  color: var(--text);
}
article p {
  color: var(--text);
  margin: .6rem 0;
  line-height: 1.6;
}
article blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(0,0,0,.12);
  border-radius: 6px;
  color: var(--text);
}
article ul {
  margin: .5rem 0 1rem 1.25rem;
  color: var(--text);
}
article li {
  margin: .25rem 0;
}

/* Links and CTAs */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
a {
  color: var(--accent-2);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
button, .btn, .cta {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #201a0f;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover, .cta:hover {
  background: #ffd;
}
.btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.btn.outline, .cta.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.4);
}
.btn:active, .cta:active {
  transform: translateY(1px) scale(0.98);
}

/* Utility primitives (layout helpers) */
} 
ul, li { margin: 0; padding: 0; list-style: disc inside; color: var(--text); }

/* Typography scale helpers for responsive rhythm */
h1, h2, h3 { font-weight: 700; letter-spacing: .2px; }

/* Responsive container helpers (already using .container above) */
@media (max-width: 720px) {
  .container { width: min(90%, 640px); }
  .image-frame { border-radius: 10px; }
}

/* Simple, GPU-friendly fade-in animation with motion respect */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .image-frame, .product-ad { page-break-inside: avoid; }
}