/* Tokens */
:root {
  --bg: #2a2810;
  --bg-2: #3a3510;
  --text: #f6f0d9;
  --muted: #c8b89c;
  --accent: #ff7a00;
  --accent-2: #ff9e2a;
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.14);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --focus: #ffd27a;
}

/* Section: Base */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 0.8vw + 12px, 18px);
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.15)),
    linear-gradient(to bottom right, var(--bg), var(--bg-2)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, rgba(255,255,255,0) 2px 4px),
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.05), rgba(255,255,255,0) 40%),
    radial-gradient(circle at 85% 20%, rgba(0,0,0,.04), rgba(0,0,0,0) 40%);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Section: Components */
header, main, footer, aside { display: block; }

/* Section: Typography */
h1, h2, h3, h4 { color: var(--text); }

/* Section: Glass panels (cards) */
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
.image-frame { 
  width: min(92%, 960px); 
  aspect-ratio: 16 / 9; 
  overflow: hidden; 
  border-radius: 14px; 
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.05);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content area */
.content { max-width: 720px; padding: 0 0.5rem; }

/* Section: Buttons & links */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover, button:hover, .btn:hover, .cta:hover { text-decoration: underline; }

/* Solid CTA button */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: var(--accent);
  color: #111;
}
.btn.secondary, .cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.35);
}
.btn:active, .cta:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Section: Utilities / tokens */
ul, li { margin: 0; padding: 0; list-style: none; }

/* Section: Layout primitives */
.grid { display: grid; gap: 1rem; }
.card + .card { margin-top: .5rem; }

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

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

/* Section: Print */
@media print {
  body { color: #000; background: #fff; }
}

/* Section: Layout definitions for the page structure (mobile-first defaults) */
header { padding: 2rem 0; text-align: center; }
header h1 { margin: 0; font-size: clamp(1.8rem, 3vw + 1rem, 3rem); letter-spacing: .2px; }

/* Main layout tweaks */
main { padding: 1rem 0; display: grid; place-items: center; }

/* Footer layout tweaks */
footer { padding: 1.5rem 0; display: grid; gap: 1rem; justify-items: center; }

/* Specific footer sections to reflect glass panels */
.product-ad, .sponsored-page { width: min(90%, 680px); padding: .9rem 1rem; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }

/* Subtle content alignment on larger viewports */
@media (min-width: 768px) {
  main { padding: 2rem 0; }
}