/* Section: Theme Tokens */
:root {
  --bg: #000000;
  --bg-2: #141210;
  --text: #f6efe5;
  --muted: #c5b4a0;
  --accent: #8b5a2a;
  --accent-2: #d6a36b;
  --surface: rgba(12, 9, 6, 0.28);
  --surface-2: rgba(20, 14, 10, 0.38);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-2: rgba(255, 255, 255, 0.40);
  --shadow: 0 10px 26px rgba(0,0,0,0.55);
  --radius: 14px;
  --focus-ring: 0 0 0 3px rgba(181, 119, 63, 0.75);
}

/* Section: Global & Helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(8,6,4,0.92), rgba(14,10,7,0.88) 60%, rgba(8,6,4,0.92)),
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 2px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.52;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  /* Fluid typography baseline */
  font-size: clamp(14px, 1vw + 8px, 18px);
}
::selection { background: rgba(165, 105, 80, 0.6); }

/* Section: Layout primitives */
.container { max-width: clamp(320px, 90vw, 1100px); margin: 0 auto; padding: 0 1rem; }

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

/* Section: Core layout elements (must style these selectors) */
html, body, header, nav, main, article, footer, aside {
  /* Structural defaults; individual sections override aesthetics below */
}
header, main, footer, aside {
  padding: 1rem;
  margin: 0 auto;
  width: 100%;
  border-radius: var(--radius);
  /* Glass-like backdrop with fallbacks below */
  background: rgba(12, 9, 6, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(12, 9, 6, 0.42); }
}
header { display: grid; gap: 0.5rem; place-items: center; text-align: center; padding-bottom: 0.75rem; }
header h1 { font-size: clamp(1.35rem, 2.6vw, 2.25rem); margin: 0; letter-spacing: .2px; color: var(--text); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
nav { display: inline-block; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .55em 1em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(139,90,42,0.28);
  transition: transform .15s ease, background .15s ease;
}
nav a:hover { background: rgba(139,90,42,0.42); transform: translateY(-1px); text-decoration: underline; }
main { display: block; padding: 1rem 0; }
article { display: block; width: 100%; }

/* Section: Media frame */
.image-frame {
  width: min(92%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  background: rgba(0,0,0,0.25);
  margin: 0 auto;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0);
}
.image-frame img:hover { transform: scale(1.01); transition: transform .25s ease; }

/* Section: Content & typography */
.content { padding: 0.75rem 0; color: var(--text); }

/* Section: Glass-like panels (fallbacks included via section wrappers) */
.glass {
  background: rgba(12, 9, 6, 0.28);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: .75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .glass { background: rgba(12, 9, 6, 0.42); }
}

/* Section: Content-specific primitives */
.content h2, .content h3 {
  margin: 0 0 .5rem;
  color: var(--text);
}
p { margin: 0 0 0.75rem; color: var(--text); }
ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
li { margin: 0 0 0.5rem; color: var(--muted); }

/* Section: Product ad / footer callouts */
.product-ad, .sponsored-page {
  display: block;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 9px;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(to bottom, rgba(139,90,42,0.9), rgba(60,40,20,0.85));
  transition: transform .15s ease, background .15s ease;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(139,90,42,0.95); text-decoration: underline; }
.product-ad a:focus-visible, .sponsored-page a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Section: Links & buttons (a, button, .btn, .cta) */
a, button, .btn, .cta {
  color: var(--text);
}
a {
  text-decoration: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  outline-offset: 0;
}
.btn, .cta {
  display: inline-block;
  padding: .65em 1.1em;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(to bottom, rgba(139,90,42,0.95), rgba(60,40,20,0.85));
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(139,90,42,0.98); text-decoration: none; }
.btn.secondary {
  background: rgba(0,0,0,0.0);
  border: 1px solid rgba(139,90,42,0.8);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Section: Misc helpers */
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem; }

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

/* Section: Typography rhythm helpers (compact scaffolding) */
.small { font-size: 0.9em; color: var(--muted); }
.brand { color: var(--accent-2); }

/* Section: Borders and dividers for structure */
.hr { height: 1px; background: rgba(255,255,255,0.15); border: 0; margin: 1rem 0; }

/* Section: Page sections (margins for natural spacing) */
.section { margin: 1rem 0; padding: 0.25rem 0; }

/* End of stylesheet */