/* Section: Root tokens */
:root{
  --bg: #0b0b0f;
  --bg-2: #1a0f0a;
  --text: #f7f7fb;
  --muted: #c9b6aa;
  --accent: #b26a3a;      /* copper */
  --accent-2: #d9a3b8;    /* powder rose */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --focus: 2px solid #fff;
  --radius: 14px;
}

/* Section: Global base */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(124,42,12,.88), rgba(18,14,12,.92)),
    radial-gradient(circle at 25% -5%, rgba(210,140,105,.25), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    #0b0b0f;
  background-attachment: fixed;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Section: Layout helpers */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,.14); }
}

/* Section: Typography scales (fluid) */
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1rem; color: var(--muted); }
ul { margin: 0 0 1rem 1.25rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Section: Structural selectors (targeted by prompt) */
html, body, header, nav, main, article, footer, aside {
  /* structural placeholders; styling applied below as needed */
}

header {
  padding-block: clamp(18px, 4vw, 40px);
  text-align: center;
  position: relative;
  z-index: 1;
}

header h1 {
  color: var(--text);
  margin-bottom: .25rem;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
}

header .meta {
  color: var(--muted);
  font-size: clamp(11px, 1.4vw, 13px);
}

/* Main content region */
main { padding-block: clamp(12px, 3vw, 28px); }

/* Article content area with subtle glass panels */
article {
  display: block;
  margin: 0 auto;
  max-width: clamp(640px, 90vw, 1100px);
  padding: 0;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 12px 28px rgba(0,0,0,.25);
  background: #000;
  display: block;
  margin: 14px 0 18px;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Glass panels for content blocks (fallback included) */
.content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 16px;
  margin: 10px 0 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(10px)) {
  .content { background: rgba(255,255,255,.16); }
}

/* Product ad section (glass card) */
.product-ad {
  margin: 28px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.product-ad h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.product-ad a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(178,99,39,.95), rgba(184,112,57,.95));
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }

/* Anchors and controls (CTA) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
a:focus-visible { text-decoration: underline; }

/* List and tag utilities */
ul, li { margin: 0; padding: 0; list-style: none; }
li + li { margin-top: .25rem; }
.tag {
  display: inline-block;
  padding: .15em .5em;
  border-radius: 999px;
  font-size: .75rem;
  color: #fff;
  background: rgba(178,106,58,.95);
  border: 1px solid rgba(255,255,255,.25);
}

/* Section: Responsive utilities (container/grid) */
@media (min-width: 720px) {
  .container { padding-inline: clamp(20px, 5vw, 60px); }
}
@media (max-width: 600px) {
  .image-frame { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  a, button { will-change: transform; }
}

/* Section: Print (basic readability) */
@media print {
  html, body { background: #fff; color: #000; }
  .content, .image-frame, .product-ad { background: #fff; border: none; box-shadow: none; }
  a { text-decoration: underline; }
}
