/* Section: Core palette */
:root {
  --bg: #1a120f;
  --bg-2: #2b180e;
  --bg-3: #3a241a;
  --text: #f7f2ec;
  --muted: #c5b5a0;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --accent: #FF6F61;      /* coral */
  --accent-2: #FF9F83;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Section: Base & layout (mobile-first) */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  background-attachment: fixed;
  background-blend-mode: overlay;
  position: relative;
}
/* Subtle diagonal "brown lines" + noise/scanlines overlay (pure CSS) */
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.15) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 40%);
  background-size: auto;
  mix-blend-mode: overlay;
  opacity: .25;
  filter: saturate(1.1);
}
@media (prefers-reduced-motion: reduce) {
  body:before { display: none; }
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Section: Utilities & components */
.container {
  width: 100%;
  padding-inline: 1rem;
  max-width: clamp(820px, 86vw, 1120px);
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,0.12); }
}
.card:hover { transform: translateY(-1px); }
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn { background: var(--accent); color: #fff; }
.btn.secondary, .cta { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus states (WCAG AA) */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible { outline: none; }

/* Section: Typography (responsive) */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .3rem;
  letter-spacing: .2px;
}
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); }
h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1vw + .8rem, 1.5rem); font-weight: 700; color: var(--text); }

/* Section: Content text */
.content { color: var(--text); font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem); line-height: 1.6; }

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

/* Section: Glass panels (fallbacks included) */
.section-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) and not (-webkit-backdrop-filter: blur(12px)) {
  .section-glass { background: rgba(255,255,255,.18); }
}

/* Section: Specific selectors required */
html, body, header, nav, main, article, footer, aside {
  /* structural hints; actual styling handled above */
}
.image-frame, .image-frame img { }

/* Section: Header / Hero area */
header {
  margin: 1rem auto;
  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);
}
header h1 { margin-bottom: .25rem; color: #fff; }
header .meta { font-size: .9rem; color: var(--muted); }

/* Section: Main layout & article styling */
main { padding: 0 0 2rem; }
article { display: block; padding: 0 0 2rem; }

/* Section: Footer / ads */
footer { padding: 1rem 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
.product-ad, .sponsored-page { min-width: 0; }
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75rem; border-radius: .75rem; text-decoration: none; color: #fff; }
.product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); }
.product-ad a { font-weight: 700; }
footer p { text-align: center; color: var(--muted); font-size: .9rem; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  .card { background: transparent; border: none; box-shadow: none; }
  a { color: #00f; text-decoration: underline; }
}
@media (min-width: 700px) {
  footer { grid-template-columns: repeat(3, 1fr); }
}
