/* Section: Tokens (palette) */
:root {
  --bg: #0a0a0f;
  --bg-2: #14121a;
  --text: #f8f4e6;
  --muted: #d9c9a5;
  --accent: #DDB24A;     /* mustard */
  --accent-2: #F6C9A0;   /* peach */
  --card: rgba(0,0,0,0.28);
  --card-2: rgba(0,0,0,0.4);
  --border: rgba(255,214,128,0.6);
  --shadow: 0 8px 28px rgba(0,0,0,0.35);
  --focus: 0 0 0 3px rgba(213, 140, 0, 0.7);
  --radius: 12px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(212, 160, 60, 0.25) 0%, rgba(10,10,14,0.8) 60%, rgba(0,0,0,0.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,214,128,0.07) 0 2px, transparent 2px 4px);
  background-color: #050507;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  min-height: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 214, 128, 0.04), rgba(255, 214, 128, 0.04)),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.25));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Section: Layout helpers */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-block: 1rem;
  padding-inline: 0;
}

.grid { display: grid; gap: 1rem; }

/* Section: Card, tags, typography */
.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12,12,18,0.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #181818;
  background: rgba(255, 214, 128, 0.9);
  border: 1px solid rgba(0,0,0,.08);
}

/* Section: Typography scaling */
h1, h2, h3 { line-height: 1.15; margin: 0.25rem 0; }

h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}

h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 700; color: #fff; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); color: #fff; }

p { margin: 0.75rem 0; color: #e9e0c7; }

ul { padding-left: 1.25rem; margin: 0.75rem 0; color: #efe2c4; }

blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  color: var(--text);
}

/* Section: Glass panels (with fallback) */
header, main, article, footer, aside {
  background: rgba(12,12,18,0.42);
  border: 1px solid rgba(255,214,128,0.6);
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: min(1100px, 90%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  position: relative;
  z-index: 0;
}

@supports not (backdrop-filter: blur(8px)) {
  header, main, article, footer, aside {
    background: rgba(12,12,18,0.75);
    border-color: rgba(255,214,128,0.9);
  }
}

/* Header specifics */
header h1 { font-family: inherit; font-weight: 800; margin-block: 0.25rem; }

/* Nav links */
nav a { color: #fff; text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 6px; transition: transform .2s ease; display: inline-block; }

nav a:hover { transform: translateY(-1px); text-decoration: underline; }

/* Global link/button behaviours */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  outline: none;
}

a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 214, 128, 0.95);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255,214,128,0.95);
  background: linear-gradient(#ffd98d, #e0aa3a);
  color: #1b1207;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,214,128,0.95);
}
.btn + .btn { margin-inline-start: 0.5rem; }

/* Accessibility focus ring default (enhanced via focus-visible above) */
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(253, 225, 123, 0.8); }

/* Image frame styling (also covers .featured-image for this page) */
.image-frame, .featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,214,128,0.6);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  background: #111;
}
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content layout utility */
.content { padding: 0.5rem 1rem; }

/* Footer ad blocks */
.product-ad, .sponsored-page {
  padding: .75rem;
  text-align: center;
  border-radius: 12px;
  background: rgba(12,12,18,0.5);
  border: 1px solid rgba(255,214,128,0.7);
}
.product-ad a, .sponsored-page a { color: var(--text); display: block; }

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

/* Print */
@media print {
  body { background: white; color: black; }
  header, main, article, footer { box-shadow: none; border: none; background: transparent; }
}

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