/* Base */ 
:root {
  --bg: #0b111a;
  --bg-2: #0f1d22;
  --text: #e6fffe;
  --muted: #8be8e0;
  --accent: #2ee2d1;       /* turquoise */
  --accent-2: #ff7a61;     /* coral */
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.28);
  --shadow: 0 6px 24px rgba(0,0,0,.4);
  --ring: 0 0 0 3px rgba(46,226,209,.55);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6fbfd;
    --bg-2: #eef7f6;
    --text: #0b1b20;
    --muted: #3f565d;
    --accent: #0a6a83;
    --accent-2: #d24c3f;
    --card: rgba(255,255,255,.95);
    --border: rgba(0,0,0,.12);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(46,226,209,.20), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(0,180,180,.20), transparent 40%),
    linear-gradient(135deg, rgba(0,120,120,.25), rgba(0,0,0,.0) 40%),
    linear-gradient(#0a141e, #0a141e 60%, #0a141e 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.05) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal, normal, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: none; box-shadow: var(--ring); outline-offset: 2px; text-decoration: underline; }
a:hover { text-decoration: underline; }

/* Layout helpers */ 
html, body, header, nav, main, article, footer, aside { display: block; }
.image-frame { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.34); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Utilities & containers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1120px); margin: 0 auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }

/* Glass panels (with fallback) */
.card, .content, .product-ad, header, footer, aside { backdrop-filter: blur(10px) saturate(1.05); -webkit-backdrop-filter: blur(10px); }
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(10px)) {
  .card { background: rgba(255,255,255,.14); }
}
.product-ad { text-align: center; padding: .75rem; border-radius: 12px; background: rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.25); }

/* Typography & content layout */
.content { color: var(--text); line-height: 1.6; font-size: clamp(0.95rem, 1.0rem + 0.4vw, 1.05rem); max-width: 68rem; }
header { text-align: center; padding: 2rem 1rem 1rem; }
header h1 { margin: 0.25rem 0; font-size: clamp(1.8rem, 2.5vw + 1rem, 3.2rem); color: var(--text); letter-spacing: .5px; }
header .meta { color: var(--muted); font-size: .95rem; }

/* Hero image container (optional for page hero) */
.featured-image { margin: .75rem auto; max-width: 720px; }

/* Article content styling */
article { padding: 0 1rem 2rem; margin: 0 auto; max-width: clamp(40rem, 72vw, 68rem); }
h2 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem); margin: .75rem 0 .5rem; color: var(--text); }
p { margin: 0 0 1rem; }
blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid var(--accent-2); color: var(--muted); font-style: italic; }
ul { padding-left: 1.25rem; margin: .25rem 0 1rem; }
li { margin: .25rem 0; }

/* Tag & buttons */
.tag { font-size: .75rem; padding: .25rem .5rem; border-radius:999px; background: rgba(46,226,209,.15); color: var(--text); border: 1px solid rgba(46,226,209,.35); }
.btn, .cta { font: inherit; border: none; cursor: pointer; border-radius: 999px; display: inline-block; transition: transform .2s ease, background .2s ease, color .2s ease; }

/* Solid & outline button variants */
.btn { background: var(--accent); color: #062b29; padding: .7rem 1.1rem; font-weight: 700; border: 1px solid rgba(0,0,0,.15); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.7); padding: .65rem 1rem; font-weight: 700; }
.cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #041411; padding: .7rem 1.2rem; font-weight: 700; }

/* Link emphasis on focus/hover for accessibility */
a:focus-visible { outline: none; box-shadow: var(--ring); outline-offset: 2px; text-decoration: underline; }

/* Footer & sections */
footer { padding: 1.5rem 1rem; }

/* Interactive states & motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (max-width: 700px) {
  header { padding: 1.5rem 1rem 1rem; }
  article { padding: 0 0.5rem 2rem; }
  .image-frame { border-radius: 10px; }
}
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #00a; }
  .card, .product-ad { background: #fff; border: 1px solid #ccc; }
}