:root {
  /* Platinum / brown-inspired palette tokens */
  --bg: #0a0a0f;
  --bg-2: #1a1410;
  --text: #eae2d9;
  --muted: #b7a59a;
  --accent: #8b5e3c;       /* rich brown */
  --accent-2: #d8c6ad;     /* pale bronze */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-fallback: rgba(255, 255, 255, 0.14);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --focus-ring: 0 0 0 3px rgba(123, 208, 255, 0.65);
  --focus-outline: rgba(155, 211, 255, 0.95);
  --bg-grad: linear-gradient(135deg, rgba(12,9,7,.6), rgba(0,0,0,.6));
  --fg: #ffffff;
  --card: rgba(255,255,255,.08);
  --card-border: rgba(255,255,255,.25);
}

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

html, body { height: 100%; }

html, body {
  margin: 0;
  color: var(--text);
  background: 
    var(--bg-grad),
    linear-gradient(to bottom right, rgba(60,40,24,.25), rgba(8,6,4,.25)),
    radial-gradient( circle at 20% -10%, rgba(212,180,125,.08), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    #000;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, ::selection { color: inherit; }

:focus { outline: none; }

header, main, footer, aside {
  display: block;
}

header {
  padding: 1rem 0 0.5rem;
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 .25rem;
  color: var(--fg);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw + .5rem, 1rem);
  margin: 0 0 .75rem;
}

nav a {
  color: var(--accent-2);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover { text-decoration: underline; transform: translateY(-1px); }
nav a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

main {
  padding: 1rem 0 2rem;
}

.container {
  width: 100%;
  max-width: clamp(640px, 72vw, 1120px);
  padding: 0 1rem;
  margin: 0 auto;
}

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

.featured-image { margin: 1rem 0 0.75rem; }

.content { padding: .75rem 0; color: var(--text); }

h2 {
  font-size: clamp(1.4rem, 1.7vw + 1rem, 2rem);
  margin: .25rem 0 0.5rem;
  color: #fff;
}

p { margin: 0 0 1rem; color: var(--text); }

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

blockquote {
  border-left: 3px solid rgba(180, 170, 160, .6);
  padding: .5rem 1rem;
  margin: .75rem 0;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}

.card, .content-area, .image-frame, .product-ad, .sponsored-page {
  /* Glass panels baseline for consistent Frosted Glass feel */
}

.article { /* not strictly required but keepable for semantic mapping */ }

article {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,.14); }
}

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

.product-ad, .sponsored-page {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  text-align: center;
}
.product-ad a, .sponsored-page a { color: #fff; text-decoration: none; display: block; padding: .5rem; border-radius: 8px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

footer {
  padding: 1.25rem 0 2rem;
  display: grid;
  gap: 0.75rem;
  place-items: center;
  color: var(--muted);
  background: transparent;
}

@media (min-width: 720px) {
  footer { grid-template-columns: 1fr 1fr; align-items: center; text-align: center; }
  .product-ad, .sponsored-page { padding: 1rem; }
}

a, button, .btn, .cta {
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.04);
  padding: .6em 1em;
  display: inline-block;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a { color: var(--accent-2); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.btn {
  background: var(--accent);
  border: 1px solid rgba(0,0,0,.25);
  color: #fff;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(123,208,255,.9); outline-offset: 2px; }

.cta {
  background: linear-gradient(135deg, rgba(140,100,70,.95), rgba(114,78,60,.95));
  border: 1px solid rgba(0,0,0,.3);
}
.cta:hover { background: linear-gradient(135deg, rgba(160,115,82,.95), rgba(120,90,70,.95)); }

.secondary {
  background: transparent;
  color: var(--accent-2);
}
.secondary:hover { text-decoration: underline; }

.image-frame + .content-area { margin-top: .5rem; }

ul.has-bullets { list-style: disc; }

/* Layout helpers */
.container.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Typography - fluid sizing for headings inside container */
h1, h2 { letter-spacing: .2px; }

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

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
