/* Base & Palette */
:root{
  --sunset: #FF7A00;
  --sunset-2: #FF4D2A;
  --maroon: #7A1E2E;
  --bg: #0b0a0b;
  --bg-2: #1a0f12;
  --text: #f7f7f7;
  --muted: #d7c9b4;
  --accent: #FF6A00;
  --accent-2: #B02A37;
  --card: rgba(20,0,0,.28);
  --glass: rgba(18,6,6,.28);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body, header, nav, main, article, footer, aside {
  display: block;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(255,122,0,.25) 0%, rgba(122,0,0,.25) 60%, rgba(0,0,0,0) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  background-color: #0b0a0b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark){
  /* keep deep contrast for dark mode users */
}
@supports (backdrop-filter: blur(1px)){
  /* backdrop supported; keep gradual blur for glass panels via .glass below */
}
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout basics */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid { display: grid; gap: 1rem; }
.card { padding: .75rem; border-radius: 12px; background: rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.25); }

/* Section: Glass panels (with fallback) */
.glass {
  background: rgba(18,6,6,.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { 
    background: rgba(18,6,6,.60);
    border-color: rgba(255,255,255,.42);
  }
}

/* Section: Typography & structure */
html, body, header, nav, main, article, footer, aside { scroll-behavior: smooth; }
header {
  padding: 1.25rem;
  text-align: center;
}
header h1 {
  margin: .25rem 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: .4px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(.8rem, 1.5vw, 0.95rem);
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 6px;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}
main {
  padding: 1rem;
}
article {
  margin: 0 auto;
  padding: 0;
  max-width: clamp(320px, 90vw, 860px);
}
.featured-image { margin: 0 0 1rem; }
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.15);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: .75rem 0 .5rem;
}
p {
  margin: .5rem 0 1rem;
}
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Content utilities (tokenized) */
.content { padding: .5rem; }

/* Section: Product Ad / footer blocks */
footer {
  padding: 1rem;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: .75rem;
  border-radius: 12px;
  margin: .25rem 0;
}
.product-ad { background: rgba(12,6,6,.28); border: 1px solid rgba(255,255,255,.28); }
.sponsored-page { background: rgba(12,6,6,.28); border: 1px solid rgba(255,255,255,.28); }

/* Section: Links, buttons, CTAs */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  padding: .65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,106,0,1) 0%, rgba(200,70,0,1) 100%);
  transition: transform .18s ease, background .2s ease;
}
a { color: #fff; }
.btn, .cta {
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
}
.btn:focus-visible, a:focus-visible, .cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  border: 1px solid #fff;
}
a:focus-visible { text-decoration: underline; }

/* Section: Utilities typography scale */
.tag {
  display:inline-block;
  padding:.25rem .5rem;
  border-radius:999px;
  font-size:.75rem;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  color: #fff;
}

/* Section: Responsive helpers */
@media (min-width: 640px){
  main { padding: 1.25rem; }
}
@media (min-width: 860px){
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce){
  .glass { backdrop-filter: none; }
}
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
}
