/* Section: Tokens & Base */
/* Color palette derived from iridescent green/blue with glassy, high-contrast accents. */
:root{
  --bg: #06261a;
  --bg-2: #041a34;
  --text: #eaffff;
  --muted: #b6e4ff;
  --accent: #2be29c;
  --accent-2: #4aa7ff;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* Section: Global Reset & Layout */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0, rgba(0,255,140,.25), transparent 40%),
    radial-gradient(circle at 75% 15%, rgba(0,140,255,.25), transparent 40%),
    linear-gradient(135deg, var(--bg), var(--bg-2)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, overlay;
  background-size: cover;
  color: var(--text);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout utilities (container/grid/card) */
.container {
  width: 100%;
  max-width: clamp(680px, 82vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #042214;
  border: 1px solid rgba(0,0,0,.05);
}

/* Section: Core page structure styling (header/main/article/footer/aside) */
header,
nav,
main,
article,
aside,
footer {
  display: block;
)

header {
  width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  text-align: center;
  border-radius: 14px;
  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: 0 0 .25rem;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: .2px;
}

header .meta {
  font-size: .88rem;
  color: var(--muted);
}

/* Navigation links (within header) */
nav a {
  display: inline-block;
  padding: .4rem .75rem;
  margin-top: .25rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
}
nav a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Main content area */
main {
  padding: 1rem 0 2rem;
}

/* Article styling (glass panel with readable content) */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  article { background: rgba(255,255,255,.14); }
}
article h1 { font-size: clamp(1.4rem, 2.6vw, 2.25rem); margin: .25rem 0 0.5rem; }
article p { color: color-mix(in oklab, white 90%, black 0%); margin: .5rem 0; }
article h2, article h3 { margin: .75rem 0 .25rem; font-size: 1.1rem; }

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

/* Inline image replacement if used elsewhere */
.image-frame, .image-frame img { will-change: transform; }

/* Section: content helpers */
.content { color: var(--text); }

/* Section: product-ad (footer area styling) */
.product-ad {
  display: block;
  padding: .75rem 1rem;
  margin: .25rem 0;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
}
.product-ad a { color: var(--text); text-decoration: none; }

/* Section: link & button styling (inclusive, accessible focus) */
a, button, .btn, .cta {
  outline: none;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; }

/* Button variants (solid and outline) */
.btn,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062014;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.55);
}
.btn + .btn { margin-left: .5rem; }

/* Section: list styling */
ul, ol {
  padding-left: 1.25rem;
  margin: .5rem 0;
}
li { margin: .25rem 0; }

/* Section: typography & helpers */
.tag + p { margin-top: .25rem; }

/* Section: aside (if used) */
aside { margin: .5rem 0; }

/* Section: print styles (basic readability) */
@media print {
  body { background: white; color: black; }
  header, nav, footer { display: none; }
  article { background: transparent; border: none; box-shadow: none; }
}
