@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  color-scheme: dark;
  --font-display: "Space Grotesk";
  --font-body: "Inter";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(24, 231, 255, .15), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, .2), transparent 36rem),
    #05060f;
  color: #eef7ff;
  font-family: var(--font-body), system-ui, sans-serif;
}

body.light {
  color-scheme: light;
  background: #f8fbff;
  color: #101828;
}

::selection {
  background: rgba(24, 231, 255, .35);
}

.glass {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(140deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: 0 20px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.light .glass {
  border-color: rgba(15, 23, 42, .1);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 60px rgba(15, 23, 42, .08);
}

.cyber-text {
  background: linear-gradient(90deg, #fff, #18e7ff 45%, #b892ff 72%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-mask {
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.article-content {
  color: rgba(238, 247, 255, .82);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  color: white;
  font-family: var(--font-display), system-ui, sans-serif;
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.article-content a {
  color: #18e7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content img {
  border-radius: .5rem;
  margin: 1.5rem 0;
}

.light .article-content {
  color: #344054;
}

.light .article-content h2,
.light .article-content h3 {
  color: #101828;
}
