/* Section: Variables */
:root {
  --bg: #0a0f14;
  --bg-2: #11161c;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --text: #f7f9fb;
  --muted: #a8b3bd;
  --beige: #e6d2a2;
  --beige-2: #d0b990;
  --chrome: #a9cbdc;
  --accent: #e8d9b3;
  --accent-2: #c9b287;
  --card: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Section: Base & Layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(170,210,230,.25), transparent 40%),
    linear-gradient(135deg, #0b0f14 0%, #11161c 60%, #0b0f14 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: 100% 2px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
header, main, footer, aside { position: relative; z-index: 1; }

/* Section: Globals for typography & helpers */
a, button, .btn, .cta { font-family: inherit; text-decoration: none; color: inherit; }

/* Section: Container & grid helpers */
.container { width: 100%; max-width: clamp(720px, 92vw, 1120px); margin-inline: auto; padding: 0 1rem; }

/* Section: Glass surfaces & panels */
header, article, .card, .product-ad, .sponsored-page { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 1rem; }

/* Section: Images */
.image-frame, .image-frame img { border-radius: 10px; overflow: hidden; display: block; }
.image-frame { aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Section: Content & structure utilities */
.content { padding: 1rem; }

/* Section: Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.25); }

/* Section: Tags */
.tag { display:inline-block; padding:.25em .6em; border-radius:999px; font-size: .75rem; background: rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.35); color: var(--text); }

/* Section: Content types used in layout */
.product-ad, .sponsored-page { display: block; text-align: center; padding: .6rem; margin: .5rem 0; }

/* Section: Typography & hero pattern */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 700; letter-spacing:.2px; }
h1 { font-size: clamp(1.8rem, 4vw + 1rem, 3rem); text-align: center; }
h2 { font-size: clamp(1.4rem, 2.5vw + .8rem, 2.2rem); }

/* Section: Header/Nav/Main/Footer layout */
nav { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; padding-top: 0.25rem; }
nav a { padding: .4rem .6rem; border-radius: 8px; font-weight: 600; border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.15); color: var(--text); }

/* Section: Article typography */
article p { color: #eaf2fb; margin: .75rem 0; }
blockquote { border-left: 3px solid rgba(255,255,255,.4); padding-left: .9rem; margin: .75rem 0; color: #e9f0f9; }

/* Section: Interactive controls */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.7rem 1rem; border-radius: 9px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #141212; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Variants */
.btn.primary { background: linear-gradient(135deg, rgba(214,198,165,.98) 0%, rgba(205,180,120,.98) 100%); color: #2b1f10; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn.outline { background: transparent; border-color: rgba(246,246,238,.8); color: var(--text); }

/* CTA variant (explicit class) */
.cta { display:inline-flex; align-items:center; justify-content:center; padding:.7rem 1rem; border-radius:9px; border:1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #141212; font-weight:700; cursor:pointer; }

/* Hover/active states */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Section: Focus ring accessibility */
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Section: Print styles */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; }
  .image-frame, .content, .product-ad { border: none; box-shadow: none; background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Responsive adjustments */
@media (max-width: 700px) {
  .container { padding: 0 0.5rem; }
  .grid { grid-template-columns: 1fr; }
  header { padding: 0.75rem; }
}