/* TOKENS */
:root {
  --bg: #0b1020;
  --bg-2: #141a32;
  --text: #f6f8fa;
  --muted: #a6a1ac;
  --accent: #7c5a3a;      /* brown */
  --accent-2: #1e2a4a;    /* navy */
  --glass: rgba(16, 22, 40, 0.65);
  --glass-2: rgba(16, 22, 40, 0.35);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,0.5);
  --radius: 14px;
  --radius-sm: 10px;
  --ring: 2px solid rgba(124,92,58,0.9);
  --noise: rgba(0,0,0,0.04);
}

/* RESET & GLOBAL */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
:focus { outline: none; }
*,:before,:after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(11,15,32,0.95) 0%, rgba(20,26,48,0.95) 60%, rgba(11,15,32,0.95) 100%),
    radial-gradient(circle at 15% 0%, rgba(78,52,28,0.25), transparent 25%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* LAYERS: BACKDROP EFFECTS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0 1px,
    rgba(0,0,0,0) 1px 2px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* LAYOUT & TYPOGRAPHY */
header, nav, main, article, aside, footer {
  display: block;
}
header {
  padding: clamp(1.25rem, 4vw, 2.25rem) 1rem;
  text-align: center;
  background: rgba(12,16,28,0.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
}
header h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  margin: .25rem 0 .4rem;
  font-weight: 700;
  letter-spacing: .5px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.8rem, 1vw + 0.6rem, 1rem);
}
main { padding: 1.25rem 1rem; display: block; }
.container {
  width: 100%;
  max-width: clamp(680px, 90vw, 1120px);
  margin-inline: auto;
}
.article { padding: 0; }

/* IMAGE FRAME */
.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #000;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  margin: 1rem 0 1.25rem;
  aspect-ratio: 16/9;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05);
}

/* CONTENT PANEL (GLASS) */
.content {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .content, .card { background: rgba(16,20,34,0.8); border: 1px solid rgba(255,255,255,0.25); }
}
blockquote {
  margin: .75rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-2);
  color: var(--text);
  opacity: 0.92;
}
ul { margin: .75rem 0 0 1.15rem; padding: 0; }
li { margin: .25rem 0; }

/* PRODUCT AD / SECTION STRUCTURE */
.product-ad {
  display: block;
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: rgba(10,14,28,0.6);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5);
  text-align: center;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  padding: .6rem 0;
}
.product-ad a:hover { text-decoration: underline; }

/* FOOTER / CTAs */
footer {
  padding: 1.75rem 1rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1rem;
}
footer p { color: var(--muted); margin: .25rem 0; }
footer .sponsored-page a {
  text-decoration: none;
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20,28,52,0.6);
}
footer .sponsored-page a:hover { background: rgba(20,28,52,0.9); }

/* LINKS & BUTTONS */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }
a { color: #cfe3ff; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,92,58,0.9);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.15rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #8e6f45 0%, #5b3e1f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent) 0%, #5a3a22 100%); }
.btn.outline {
  background: rgba(12,18,34,0.4);
  border: 1px solid var(--accent-2);
  color: var(--text);
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124,92,58,0.9); border-radius: 8px; }

/* UTILS & LAYOUT CLASSES */
.container { padding: 0 1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card { padding: .75rem 1rem; }

/* TYPOGRAPHY */
h2 { font-size: clamp(1.4rem, 2.5vw + 0.8rem, 2.2rem); margin: .6rem 0 0.3rem; }
p { margin: .5rem 0; color: #e9e6e7; }
.tag {
  display:inline-block;
  padding: .15rem .5rem;
  font-size: .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(124,92,58,0.2);
  color: #ffd6b0;
  margin-right: .4rem;
}

/* NAV (if present) */
nav { display:flex; justify-content:center; gap:.75rem; padding: .5rem 0; }

/* RESPONSIVE */
@media (max-width: 700px) {
  header { padding: 1.75rem 1rem; }
  .image-frame { border-radius: 12px; }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef2f9;
    --text: #0b1220;
    --muted: #54607a;
    --accent: #8b5a3a;
    --accent-2: #1a2b56;
    --glass: rgba(255,255,255,0.65);
    --glass-2: rgba(255,255,255,0.5);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  body { background: linear-gradient(135deg, #f5f6fa 0%, #e9eef7 60%, #f5f6fa 100%), repeating-linear-gradient(to bottom, rgba(0,0,0,0.03) 0 1px, transparent 1px 2px); color: #1a1a1a; }
  header { background: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(0,0,0,0.1); }
  .content, .card { background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.08); }
  blockquote { border-left-color: #2a4a8a; color: #0b0b0b; }
  .btn { color: #111; }
}

/* PRINT (basic) */
@media print {
  body { background: white; color: black; }
  header, nav, main, footer { page-break-inside: avoid; }
  a, button { text-decoration: none; color: black; }
}
 
/* REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}