/* Section: Tokens */
:root{
  --bg: #0b0a0a;
  --bg-2: #1a1a14;
  --text: #f8f4e8;
  --muted: #d6c9a8;
  --accent: #ffd87a;       /* pastel yellow */
  --accent-2: #ff9f42;     /* pastel orange */
  --card: rgba(255,255,255,0.08);
  --card-2: rgba(255,255,255,0.12);
  --glass: rgba(12,18,40,0.28);
  --border: rgba(255,255,255,0.22);
  --shadow: 0 8px 28px rgba(0,0,0,0.25);
  --radius: 14px;
  --gap: 1.25rem;
  --focus: 2px solid #ffffff;
}

/* Section: Global Reset & Background (Mobile-first) */
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, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  /* Layered background: gradient + subtle noise/scanlines */
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 20%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04), transparent 25%),
    linear-gradient(135deg, rgba(253, 236, 170, .25), rgba(255, 155, 70, .25)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    var(--bg);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Section: Layout primitives */
.container {
  width: 100%;
  max-width: clamp(640px, 86vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: var(--gap); }

/* Section: Typography (fluid, accessible) */
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; color: #fff; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3.25rem); text-align: center; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.8vw + .8rem, 2rem); }
h3 { font-size: clamp(1rem, 1vw + .8rem, 1.25rem); color: #fff; }
p { color: var(--muted); }

/* Section: Glass panels (with graceful fallbacks) */
header, nav, main, article, aside, footer {
  background: rgba(12,18,40,0.28);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 1rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-font-smoothing: antialiased;
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer { background: rgba(12,18,40,0.68); }
}
.header-glass, .glass { background: var(--glass); border-color: var(--border); }

/* Section: Header & Hero layout */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1rem;
  text-align: center;
}
header h1 { margin-top: .25rem; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
header .meta { color: var(--muted); font-size: clamp(.9rem, 1.4vw, 1rem); }

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

/* Section: Content & typography blocks */
.content { padding: .75rem 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Section: Image/content wrappers common in footer/sections */
.product-ad, .sponsored-page { display: grid; place-items: center; padding: .75rem; text-align: center; }
.product-ad a, .sponsored-page a { display: block; padding: .5rem 0; font-weight: 600; color: #fff; }

/* Section: Link/button accessibility and variants */
a:hover, a:focus { text-decoration: underline; outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Button base + variants */
.btn, a.btn, button.btn {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2b1a00;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  text-align: center;
}
.btn:hover, a.btn:hover, button.btn:hover { transform: translateY(-1px); }
.btn:active, a.btn:active, button.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Section: Lists & small tokens */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; color: var(--muted); }
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}

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

/* Section: Typography scale helpers (responsive) */
.pod { font-size: clamp(.95rem, .8vw + .8rem, 1.05rem); }

/* Section: Image helpers for inline frames if used elsewhere */
.image-frame--sm { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }

/* Section: Universal focus ring (high-contrast) */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, aside, footer { background: transparent; border: none; padding: 0; }
}

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