/* Section: Base tokens */
:root{
  --bg: #0a0f15;
  --bg-2: #0b1117;
  --bg-3: #0e1420;
  --text: #eaf3ff;
  --muted: #a9b6c6;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --accent: #b76e4a;       /* rose gold main */
  --accent-2: #e8c6a8;     /* lighter rose gold */
  --glow: 0 0 28px rgba(183,110,74,.45);
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 1rem;
}

/* Section: Global resets */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-size: clamp(14px, 2.2vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient( circle at 20% 15%, rgba(180,240,255,.15) 0 40%, transparent 41% ),
    radial-gradient( circle at 85% 40%, rgba(255,210,200,.16) 0 34%, transparent 35% ),
    linear-gradient(135deg, var(--bg), var(--bg-3) 60%, var(--bg) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  background-blend-mode: overlay;
  min-height: 100%;
}

/* Section: Layout helpers */
.container { max-width: clamp(320px, 88vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: var(--gap); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }

/* Section: Glass panels (header/main/article/aside/footer) */
header, main, article, aside, footer {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .75rem auto;
  max-width: min(1100px, 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, aside, footer { background: rgba(255,255,255,.22); }
}

/* Section: Typography rhythm for hero + content */
header h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
header .meta {
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
}
main { padding: 0; }

/* Section: Featured image frame (supports .image-frame in requirements) */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: scale(1);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.025); }

/* Section: Content area and typography refinements */
.content { padding: 0.25rem 0 1rem; color: var(--text); }

/* Section: Links, buttons, and utility controls */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  outline: none;
}
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }

/* Section: Primary button style (solid) and secondary/outline variant via .cta */
.btn, .cta {
  display: inline-block;
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, rgba(183,110,74,.95), rgba(183,110,74,.75));
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); opacity:.95; }
.cta {
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
}
.cta:hover { background: rgba(232,198,168,.12); color: #fff; }

/* Section: Tiny utility classes for layout */
.container > * + * { margin-top: .75rem; }
.tag { display:inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75em; background: rgba(183,110,74,.25); color: #ffd; border: 1px solid rgba(183,110,74,.5); }

/* Section: Lists and blocks */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Section: Featured product ad styling (within footer) */
.product-ad {
  display: block;
  padding: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  text-align: center;
}
.product-ad h3 { margin: .25rem 0 .5rem; font-size: 1.05rem; }
.product-ad a {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.product-ad a:hover { filter: brightness(1.03); }

/* Section: Footer text */
footer p { text-align: center; color: var(--muted); margin: .75rem 0 0; }

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

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