/* Section: Tokens */
:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --text: #eafbe9;
  --muted: #a6a6a6;
  --accent: #b87333;      /* bronze */
  --accent-2: #a8ff4a;     /* chartreuse */
  --card: rgba(255, 255, 255, 0.10);
  --card-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Section: Base & Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(183,115,51,0.25), rgba(0,0,0,0.15) 60%), #0b0b0b;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(183,115,51,0.25), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(0,0,0,0.18), transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0px,
    rgba(0,0,0,0.04) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.15;
  z-index: 0;
}
main { position: relative; z-index: 1; padding: 2rem 1rem 4rem; display: grid; place-items: start; }

/* Section: Glass panels (fallback-safe) */
.glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255, 255, 255, 0.18); }
}

/* Section: Core components */
.header, header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem;
}
header h1 {
  margin: .25rem 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.15;
  text-align: center;
  color: var(--text);
  text-shadow: 0 0 8px rgba(183,115,51,0.6);
}
nav {
  display: flex;
  gap: 0.75rem;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
}
nav a:hover { text-decoration: underline; }
nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 255, 74, 0.6);
  border-radius: 6px;
}
header, .glass-panel { width: min(100%, 1100px); margin: 0 auto; }

/* Section: Hero-like image frame */
.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #111;
  display: block;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  margin: 1rem auto;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(1.05);
  transition: transform 0.4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Content area (glass panels) */
.content { padding: 1rem; }

/* Section: Cards / utility */
.container { width: 100%; max-width: clamp(720px, 90vw, 1200px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }

/* Card-like elements (for .card and .tag utility) */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(183,115,51,0.25);
  color: #ffd8bd;
}

/* Section: Buttons & links (solid + outline variants) */
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  color: #0a0a0a;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(184,115,51,0.95), rgba(184,115,51,0.75));
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(183,115,51,0.6);
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168,255,74,0.6);
  border-radius: 8px;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Section: Footer (glass panels) */
footer { padding: 1rem; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.product-ad, .sponsored-page {
  width: min(100%, 720px);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .75rem; }
.product-ad { background: rgba(0,0,0,0.0); }
.sponsored-page { background: rgba(0,0,0,0.0); }

/* Section: Typography helpers (responsive) */
h2, h3 { color: var(--text); margin: 0.25rem 0; }
p { color: var(--muted); margin: 0.5rem 0; line-height: 1.5; }

/* Section: List styling */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
} 

/* Section: Utilities (responsive helpers) */
@media (min-width: 720px) {
  main { padding: 2.5rem 1.5rem 4rem; }
}
@media (min-width: 980px) {
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}