/* Base tokens */
:root{
  --bg: #050b15;
  --bg-2: #0b1a2b;
  --text: #e6f7ff;
  --muted: #a6d6e6;
  --accent: #18e3d3;
  --accent-2: #4bd7ff;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.14);
  --border: rgba(120,240,255,0.35);
  --shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(6,20,40,0.95), rgba(6,12,28,0.95) 60%, rgba(0,0,0,0.95)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a, button, .btn, .cta { color: inherit; text-decoration: none; cursor: pointer; }

.container { max-width: clamp(320px, 86vw, 1100px); margin: 0 auto; padding: 0 1rem; }

/* Glass panels (fallback if backdrop-filter unsupported) */
.header-glass,
main, footer { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }

/* Layout sections */
header { padding: 1rem 1.25rem; margin: 1rem auto; width: min(1100px, 92%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
main { padding: 1rem; }
article { max-width: 60em; margin: 0 auto; padding: 0; }
footer { padding: 1rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 1rem auto 2rem; }

/* Hero / typography */
header h1, article h1 { color: var(--text); margin: 0 0 0.25rem; font-weight: 700; }
header h1 { font-size: clamp(1.4rem, 2.2vw + 1rem, 2.8rem); }
article h1 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem); }
.meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.25rem; }

/* Featured image frame (and-alike) */
.featured-image { margin: 1rem 0; }
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(120,240,255,0.4); box-shadow: var(--shadow); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content helpers */
.content { padding: 1rem; }

/* Lists & typography specifics */
ul, ol { padding-left: 1.25rem; margin: 0.5rem 0 1rem; }
li { margin: 0.25rem 0; }
p { margin: 0.5rem 0 1rem; color: color-mix(in oklab, var(--text) 90%, black 10%); }

/* Utility classes (grid, card, tag) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid rgba(120,240,255,0.25); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: 0.15em 0.5em; border-radius: 999px; font-size: 0.75rem; color: var(--text); background: rgba(22, 228, 210, 0.25); border: 1px solid rgba(120,240,255,0.4); }

/* Buttons & links (solid + outline variants) */
.btn { display: inline-block; padding: 0.65em 1.25em; border-radius: 999px; border: 1px solid rgba(100, 220, 255, 0.6); background: linear-gradient(135deg, rgba(24,227,211,0.95), rgba(0,180,190,0.85)); color: #00222a; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,0.25); cursor: pointer; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(120,240,255,0.8); }
a.btn { text-decoration: none; }

/* Focus states (accessible) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

/* Links: underline on hover/focus for readability over glass */
a:hover, a:focus-visible { text-decoration: underline; }

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

/* Print */
@media print {
  body { background: white; color: black; }
  header, main, footer { background: none; border: none; box-shadow: none; }
}
