/* Nocturne Games — nocturne.build */

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

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background-color: #0a0a0a;
  color: #fdfbf5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 65px;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #151515;
}

.nav-link {
  color: #aaa9a3;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover { background-color: #1a1a1a; color: #fdfbf5; }

.nav-link.active {
  background-color: #fdfbf5;
  color: #0c0c0c;
  font-weight: 600;
}

.nav-link.active:hover { background-color: #e8e5dc; }

/* ── Container ── */
.container {
  max-width: 728px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* ── Banner ── */
.banner {
  width: 100%;
  border-radius: 10px;
  margin-top: 52px;
  display: block;
}

/* ── Typography ── */
h1 {
  color: #fdfbf5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 44px 0 20px;
  letter-spacing: -0.03em;
}

h2 {
  color: #fdfbf5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  color: #fdfbf5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 6px;
}

p {
  color: #b8b5ad;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 18px;
}

p strong { color: #fdfbf5; }
p em { color: #d0cdc5; font-style: italic; }

/* ── Delimiter ── */
hr.delimiter {
  border: none;
  border-top: 1px solid #1c1c1c;
  margin: 52px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background-color: #fdfbf5;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 7px;
  margin-top: 8px;
  transition: background-color 0.15s;
}

.btn:hover { background-color: #e4e1d8; }

.btn-outline {
  background-color: transparent;
  color: #fdfbf5;
  border: 1px solid #2c2c2c;
}

.btn-outline:hover { background-color: #161616; border-color: #3a3a3a; }

/* ── Apps grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.app-card {
  background-color: #101010;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.15s, background-color 0.15s;
  display: block;
}

.app-card:hover { border-color: #2e2e2e; background-color: #141414; }

.app-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}

.app-name {
  color: #fdfbf5;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 5px;
  font-family: 'Space Grotesk', sans-serif;
}

.app-desc {
  color: #777;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 14px;
  font-family: 'Space Grotesk', sans-serif;
}

.app-badge {
  color: #555;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Blog: post list ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.post-card {
  display: block;
  background-color: #101010;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  padding: 24px 28px;
  transition: border-color 0.15s, background-color 0.15s;
}

.post-card:hover { border-color: #2e2e2e; background-color: #141414; }

.post-card-tag {
  color: #555;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 10px;
}

.post-card-title {
  color: #fdfbf5;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-desc {
  color: #777;
  font-size: 0.88rem;
  line-height: 1.65;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
}

.post-card-meta {
  display: flex;
  gap: 18px;
  color: #444;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Blog: article page ── */
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.post-tag {
  color: #555;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Space Grotesk', sans-serif;
}

.post-date, .post-read {
  color: #444;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
}

h1.post-title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 20px 0 18px;
  line-height: 1.15;
}

p.post-lead {
  color: #888;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.formula-block {
  background: #0f0f0f;
  border: 1px solid #1c1c1c;
  border-left: 3px solid #333;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 0 0 20px;
}

.formula-block p {
  color: #ccc;
  font-size: 0.92rem;
  margin: 0 0 6px;
  font-family: 'Space Mono', 'Courier New', monospace;
}

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

figure {
  margin: 32px 0;
}

figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

figcaption {
  color: #555;
  font-size: 0.8rem;
  line-height: 1.55;
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
}

.post-back {
  margin-top: 56px;
}

/* ── Finalists grid ── */
.finalists-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 40px;
}

.finalist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finalist-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.finalist-name {
  color: #fdfbf5;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

.finalist-link {
  color: #555;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.15s;
}

.finalist-link:hover { color: #aaa; }

.finalist-desc {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.finalist-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid #1c1c1c;
}

.finalist-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #141414;
  padding: 40px 0 28px;
}

.footer-inner {
  max-width: 728px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fdfbf5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #555;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-link:hover { color: #999; }

.footer-copy {
  max-width: 728px;
  margin: 28px auto 0;
  color: #333;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0 28px;
}

@media (max-width: 540px) {
  .apps-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .nav-link { font-size: 13px; padding: 7px 11px; }
  .container { padding: 0 18px 80px; }
}
