/* Base tokens */
:root{
  --peach: #ff9a7a;
  --peach-2: #ffd1b3;
  --navy: #0b1a2e;
  --bg: #0a0f1a;
  --bg-2: #0b1a2e;
  --text: #e9f2ff;
  --muted: #a8b6da;
  --surface: rgba(14,28,60,.64);
  --surface-2: rgba(255,255,255,.08);
  --card: rgba(255,255,255,.08);
  --ring: #ffd9b3;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --focus: 2px solid rgba(255, 180, 120, 0.95);
}

/* Global / Layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; color: var(--text); background: 
  linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%),
  radial-gradient(circle at 25% 20%, rgba(255,154,120,.15), transparent 40%),
  radial-gradient(circle at 70% 60%, rgba(60,110,180,.15), transparent 40%);
}
body::before{
  content:"";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 2px, 2px 100%;
  mix-blend-mode: overlay;
  opacity: .25;
}
* { scroll-behavior: smooth; }

/* Typography & responsiveness */
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; line-height: 1.5; }
h1, h2, h3 { margin: .25rem 0 0.5rem; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.25rem); }
p { margin: .75rem 0; color: var(--text); }
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); padding-inline: 1rem; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow); }

/* Core selectors requested */
html, body, header, nav, main, article, footer, aside { }
header, main, footer, aside { display: block; }
nav { display: block; }

/* Glass panels (fallback + backdrop-filter) */
header, main, article, footer, aside {
  background: rgba(12,18,40,.55);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px))){
  header, main, article, footer, aside {
    background: rgba(12,18,40,.75);
    border-color: rgba(255,255,255,.5);
  }
}

/* Header (hero) specifics */
header { text-align: center; padding: 2rem 1rem; margin: 1rem auto; }
header h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin: .25rem 0; color: var(--text); }
header .meta { font-size: clamp(0.8rem, 2vw, 0.95rem); color: var(--muted); }

/* Featured image frame (image-frame) */
.featured-image { margin: 1rem 0; }
.image-frame { aspect-ratio: 16/9; width: 100%; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.25); background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article content */
main { padding: 0; }
article { padding: 0; margin: 0 auto; max-width: 72ch; color: var(--text); }

/* Paragraph emphasis & quotes */
blockquote { margin: .75rem 0; padding: .5rem 1rem; border-left: 3px solid var(--peach); background: rgba(255,255,255,.05); border-radius: 6px; color: var(--text); }

/* Inline links & CTAs (a, button, .btn, .cta) */
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; outline: none; transition: transform .15s ease, background .2s ease, color .2s ease; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible { outline: 2px solid rgba(255, 210, 170, 0.95); outline-offset: 4px; border-radius: 6px; }

/* Link button styles (solid and outline variants) */
.btn { display: inline-block; padding: .65rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: var(--text); font-weight: 600; }
.btn + .btn { margin-left: .5rem; }
.btn.primary { background: linear-gradient(135deg, var(--peach), #ff7b5a); border: none; box-shadow: 0 4px 14px rgba(255, 125, 100, .5); }
.btn.secondary { background: rgba(0,0,0,.0); border: 1px solid rgba(255,255,255,.6); }

/* CTA emphasis in hero text (optional accents) */
.cta { padding: .6rem .95rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.0); }

/* Product ad sections in footer */
.product-ad, .sponsored-page { display: inline-block; width: calc(50% - 0.5rem); vertical-align: top; margin: .5rem; padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a, .sponsored-page a { display: block; color: var(--text); text-decoration: none; padding: .25rem 0; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Footer info */
footer { text-align: center; padding: 1rem; margin: 1rem auto 0; }

/* List and bullets styling for accessibility */
ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* Utility classes required */
.content { padding: .25rem 0; }

/* Image styling (utility) */
.image-frame, .image-frame img { will-change: transform, opacity; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, main, footer { background: #fff; border: none; border-radius: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn { transition: none; }
  a, button, .btn, .cta { transition: none; }
}
