@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0a0a0a;
  --bg-surface:   #111111;
  --bg-hover:     #1a1a1a;
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --accent:       #00d4ff;
  --accent-glow:  rgba(0, 212, 255, 0.12);
  --border:       #222222;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --max-width:    1100px;
  --header-h:     68px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.75; }

/* ─── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 1px;
}
.site-logo:hover { opacity: 1; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.18em;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* ─── Page Header ──────────────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─── News List ────────────────────────────────────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.post-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--bg-hover);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.post-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.post-card h2 a:hover {
  color: var(--accent);
  opacity: 1;
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

/* ─── Single Post ──────────────────────────────────────────── */
.post-single {
  max-width: 740px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--accent);
  opacity: 1;
}

.post-single .post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-single h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-content {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.post-content a { color: var(--accent); }
.post-content strong { color: var(--text); }
.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.post-content li { margin-bottom: 0.35rem; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ─── Portfolio ─────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.portfolio-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-3px);
  opacity: 1;
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.portfolio-info {
  padding: 1.25rem 1.4rem 1.4rem;
}

.portfolio-info h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.portfolio-url {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ─── About ─────────────────────────────────────────────────── */
.about-content {
  max-width: 740px;
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-bio {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 3rem;
}
.about-bio p { margin-bottom: 1.2rem; }
.about-bio strong { color: var(--text); }

.staff-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.staff-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0055ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a0a0a;
  flex-shrink: 0;
}

.staff-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.staff-info span {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.founded-note {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: #444;
}

.footer-tagline {
  font-size: 0.78rem;
  color: #333;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .site-nav { gap: 1.5rem; }
  .nav-link { font-size: 0.75rem; }
  .logo-text { font-size: 1rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .post-card { padding: 1.25rem 1.35rem; }
  .post-single h1 { font-size: 1.65rem; }
  .footer-tagline { display: none; }
}
