/* Section: Tokens */
:root {
  /* Palette derived from pastel green + rose gold */
  --bg: #0a1410;
  --bg-2: #0e1f15;
  --text: #eafff4;
  --muted: #b6e0c8;
  --accent: #9af5be;       /* pastel green */
  --accent-2: #b76e79;     /* rose gold */
  --rose: #b76e79;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --glass-1: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.25);
  --outline: 2px solid rgba(183,110,121,.9);
  --gap: 1rem;
}

/* Section: Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: 
    linear-gradient(135deg, rgba(6,14,9,.95) 0%, rgba(10,25,16,.95) 60%, rgba(6,14,9,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(176,238,183,.12) 0 60%, transparent 60%),
    linear-gradient(60deg, rgba(168,236,195,.15), rgba(168,236,195,.05) 60%, rgba(168,236,195,.15) 100%);
  background-blend-mode: normal, overlay, overlay;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Section: Layered background (noise/scanline) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(60deg, rgba(0,0,0,.08) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(0,0,0,.08) 25%, transparent 25%);
  background-size: 26px 26px, 26px 26px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  /* Subtle noise via opacity variation */
  filter: contrast(110%);
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Section: Layout helpers */
.container {
  width: min(92%, 1100px);
  margin-inline: auto;
  padding-block: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--glass-1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: calc(var(--radius) * 0.9);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.12); }
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #06240f;
  background: rgba(154,245,190,.65);
  border: 1px solid rgba(154,245,190,.9);
}
.image-frame, .image-frame img {
  display: block;
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.005);
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Section: Typography (responsive, scalable) */
h1, h2, h3, h4 { margin: .4em 0; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3.6rem); line-height: 1.15; letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.25; }

/* Section: Header, Nav, Meta */
header {
  text-align: center;
  padding: 1.25rem;
}
header h1 { margin: .25rem 0 0; font-weight: 800; color: var(--text); }
header .meta { color: var(--muted); font-size: .92rem; margin-top: .25rem; }

/* Section: Main and Article layout */
main {
  padding: 0.5rem 0 2rem;
}
article {
  display: block;
  padding: 0.75rem;
  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);
}
.featured-image { text-align: center; margin: 0 0 1rem; }
.featured-image img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); }

/* Section: Content blocks */
.content { padding: 0; }

/* Section: Product ad (footer area) */
.product-ad {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease;
}
.product-ad:focus-visible, .product-ad:hover { transform: translateY(-1px); }

/* Section: Links and CTAs */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* Button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.12);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.btn--solid {
  background: linear-gradient(135deg, rgba(183,110,121,.95) 0%, rgba(183,110,121,.75) 100%);
  border: 1px solid rgba(183,110,121,.95);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(183,110,121,.95);
  color: #fff;
}
.cta { font-weight: 700; }

/* Section: Lists and small helpers */
ul, li { margin: 0 0 0.5rem 0; padding: 0; }
li { padding-left: 1rem; text-indent: -0.5rem; }
li::marker { color: var(--accent); }

/* Section: Aside (present but optional) */
aside { padding: .5rem; }

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, article, footer { background: transparent; box-shadow: none; border: none; }
}

/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}