/* Layout & Palette */
/* Mobile-first, responsive base with glassy cyberpunk aesthetic */

:root {
  --bg: #0b0f14;
  --bg-2: #151923;
  --text: #e9f0f6;
  --muted: #a6afbd;
  --accent: #f59a7a;       /* peach hue (peach rain accent) */
  --accent-2: #ffd6bf;     /* lighter peach for focus/highlights */
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 10px 28px rgba(0,0,0,.35);
  --shadow-soft: 0 6px 16px rgba(0,0,0,.25);
  --glass-fallback: rgba(255,255,255,.40);
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(11,15,20,0.92) 0%, rgba(21,25,35,0.92) 60%, rgba(19,23,31,0.92) 100%),
    /* subtle peach drizzle-like overlay (pure CSS) */
    radial-gradient(circle at 20% 0%, rgba(245, 150, 110, 0.10) 0 8px, transparent 8px 100%),
    radial-gradient(circle at 80% 40%, rgba(255, 210, 190, 0.08) 0 6px, transparent 6px 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, overlay, overlay;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  overflow-y: auto;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    background-attachment: scroll;
  }
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.35); }

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: rgba(245, 122, 92, 0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

/* Layered glass panels with fallback */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  transition: transform 0.25s ease, background 0.25s ease;
}
@supports not (backdrop-filter: blur(12px)) {
  .glass {
    background: var(--glass-fallback);
  }
}
.content { /* per requirement selector */ padding: 1rem; border-radius: 12px; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  background: #0b0f14;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Featured image helper (fallback for provided HTML) */
.featured-image img {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Typography & headings */
h1, h2, h3, h4, h5 {
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem); font-weight: 800; color: #f8f8ff; }
h2 { font-size: clamp(1.4rem, 2.5vw + 1rem, 2.4rem); font-weight: 700; color: #eaf2ff; }
h3 { font-size: clamp(1.05rem, 1.5vw + .8rem, 1.3rem); font-weight: 700; color: #e9eef7; }

/* Paragraphs & lists */
p { margin: 0 0 1rem; font-size: clamp(0.95rem, 1.1vw + 0.9rem, 1.125rem); color: #e9f0f7; }
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: 0.35rem 0; color: var(--muted); }

/* Links & interactive elements */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
}
a:focus-visible, a:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5ex;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(0); }

/* Variants */
.btn--solid {
  background: linear-gradient(135deg, var(--accent), #f07e59);
  border: none;
  color: #111;
  box-shadow: 0 6px 14px rgba(245, 122, 92, 0.55);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--text);
}
.cta { padding: .75rem 1.1rem; border-radius: 10px; }

/* Lists styling for readability on glass panels */
li { line-height: 1.6; }

/* Header, main, article, footer stacking & spacing */
header, main, footer {
  display: block;
}
header {
  padding: clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}
header h1 { margin-bottom: .25rem; font-size: clamp(1.6rem, 3vw + 1rem, 2.8rem); color: #f8fbff; }
header .meta { color: var(--muted); font-size: 0.92rem; }

/* Main region layout */
main { padding: 1rem; }
article { display: block; }

/* Sections that appear as glass panels in content flow */
section, aside {
  margin: 1rem 0;
}
.product-ad {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-soft);
}
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.product-ad p { margin: 0; color: #fff; }

/* Footer styling with glassy note */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: .25rem 0 0; }

/* Print styles: basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, nav, footer { display: none; }
  main { padding: 0; }
  article { display: block; border: none; background: transparent; }
  .glass { background: #fff; border: 1px solid #ddd; }
  a { color: #000; text-decoration: underline; }
}
