/* Omniverse Labs — inspired by showcase grids, distinct dark lab aesthetic */

:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --surface: #181c26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #76b900;
  --accent-dim: rgba(118, 185, 0, 0.15);
  --radius: 6px;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(118, 185, 0, 0.12), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #9de633;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.site-header--compact {
  padding: 1.75rem 1.5rem 1rem;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #4a7a00 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #0a0c10;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.brand-title a {
  color: inherit;
  text-decoration: none;
}

.header-links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.header-links a {
  color: var(--text-muted);
}

.header-links a:hover {
  color: var(--text);
}

.site-lede {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Filters */
.filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filters-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent-dim);
  border-color: rgba(118, 185, 0, 0.35);
  color: var(--accent);
}

/* Project grid */
.project-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(118, 185, 0, 0.25);
}

.project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.03);
}

.project-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge--status-working {
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.12);
}

.badge--status-partial {
  color: #f4d03f;
  background: rgba(244, 208, 63, 0.12);
}

.badge--status-concept {
  color: #bb8fce;
  background: rgba(187, 143, 206, 0.12);
}

.badge--type {
  color: var(--accent);
  background: var(--accent-dim);
}

.project-card__subtitle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.project-card__team {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Intro card spans full width on large screens when featured */
.project-card--intro {
  grid-column: 1 / -1;
  flex-direction: row;
  max-height: none;
}

@media (min-width: 720px) {
  .project-card--intro .project-card__media {
    width: 42%;
    aspect-ratio: auto;
    min-height: 220px;
  }

  .project-card--intro .project-card__body {
    width: 58%;
    justify-content: center;
    padding: 2rem 2.25rem;
  }

  .project-card--intro .project-card__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 719px) {
  .project-card--intro {
    flex-direction: column;
  }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* Article / project pages */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-hero {
  margin-bottom: 2.5rem;
}

.article-hero img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.article-deck {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.article-byline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -0.75rem 0 1.5rem;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
}

.prose {
  overflow-wrap: break-word;
}

.prose blockquote {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
}

.prose blockquote p {
  margin: 0;
  overflow-wrap: break-word;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

.prose pre code {
  background: none;
  padding: 0;
}

.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
}

.site-footer__tagline,
.site-footer__meta {
  margin: 0;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.site-footer__sep {
  opacity: 0.5;
}

.site-footer__policies ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.site-footer__policies a {
  color: var(--text-muted);
}

.site-footer__policies a:hover {
  color: var(--accent);
}
