:root {
  --bg: #0b0b0f;
  --bg-2: #1a1414;
  --text: #f8f4e8;
  --muted: #e6d7a9;
  --accent: #ffd76a;
  --accent-2: #d69a3a;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --focus: #ffd166;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --container-max: 1100px;
}

/* Base / Layout */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body { margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255,243,180,.95) 0%, rgba(246,210,120,.95) 60%, rgba(214,174,91,.95) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px, transparent 1px, transparent 4px);
  min-height: 100%;
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Section: Tokens & Utilities */
:root { }

/* Section: Typography & Core Elements */
h1, h2, h3 { margin: .25rem 0; font-weight: 700; }
p { margin: .5rem 0; }
ul { margin: .25rem 0 1rem; padding: 0 0 0 1.15rem; list-style: disc; }
li { margin: .25rem 0; }

/* Wrapper helpers */
.container { width: min(92%, var(--container-max)); margin-inline: auto; padding: 0 1rem; }

/* Header / Hero */
header {
  display: block;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 14px;
  max-width: clamp(320px, 90%, 1200px);
  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);
}
header h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 3rem); line-height: 1.08; margin: 0 0 .25rem; color: #fff; }
header .meta { font-size: .8rem; color: #f7eec8; opacity: .95; }

/* Navigation */
nav { margin-top: .25rem; }
nav a { color: var(--accent); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover, nav a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }

/* Main / Content */
main { padding: 1rem 0; }
article { max-width: clamp(520px, 90%, 900px); margin: 0 auto; padding: .5rem 0 1rem; }

/* Image frame */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); background: #111; margin: 0.25rem 0 1rem; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Headings & text */
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); color: #fff; margin: .25rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; color: #fff; }
p, li { color: #f7f3e0; }

/* Glass panels (frosted glass) */
.card, .glass, header, .product-ad, .sponsored-page, footer { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }

/* Product Ad / Sponsored blocks in footer */
.product-ad, .sponsored-page { text-align: center; padding: .75rem; }
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: block; padding: .25rem; }

/* Footer layout */
footer { padding: 1rem 0; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 0 1rem; }

/* Utility: tag pill */
.tag { display: inline-block; padding: .15em .5em; border-radius: 999px; font-size: .75rem; background: rgba(255,255,255,.15); color: #fff; }

/* Buttons & links (interactive states) */
a, button, .btn, .cta {
  text-decoration: none; color: inherit; cursor: pointer;
}
button, .btn, .cta { display: inline-block; padding: .6rem .9rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
button:hover, .btn:hover, .cta:hover { background: rgba(255,255,255,.18); }
button:active, .btn:active, .cta:active { transform: translateY(1px) scale(0.99); }
a:hover, a:focus { text-decoration: underline; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: rgba(255,255,255,.8);
}

/* Responsive utilities */
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  main { padding: 2rem 0; }
  article { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}

/* Section: Section headers for readability in CSS (no impact on output) */
.header-section { }

/* Section: Size helpers (compact tokens for layout tweaks) */
.small { font-size: .9rem; }
.medium { font-size: 1rem; }

/* Section: Accessibility helpers (contrast tweaks if needed) */
.contrast-inv { color: #fff; background: rgba(0,0,0,.25); padding: .25rem .5rem; border-radius: 6px; }
