/* 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; }

/* Inline links in body text */
.container p a, .container li a {
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.container p a:hover, .container li a:hover {
  color: #fdfbf5;
  text-decoration-color: #aaa;
}

/* ── 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 {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  display: block;
  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;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.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; }
}

/* ─── Publishing program landing ─── */

.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
}

.hiw-block {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #1c1c1c;
}

.hiw-block:last-child { border-bottom: none; }

.hiw-week {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #777;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.hiw-content strong {
  color: #fdfbf5;
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  display: block;
  margin-bottom: 6px;
}

.hiw-content p {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.deal-list {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 18px;
  margin-top: 16px;
}

.deal-list li { margin-bottom: 8px; }
.deal-list strong { color: #fdfbf5; }

/* ─── Blog post header ─── */

.post-header {
  padding-top: 16px;
  margin-bottom: 8px;
}

.post-header-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 12px;
}

.post-header h1 {
  margin-bottom: 12px;
}

.post-header-meta {
  display: flex;
  gap: 16px;
  color: #555;
  font-size: 0.82rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── CEO contact block ── */
/* ── Apply CTA block ── */
.apply-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #fdfbf5;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}

.apply-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 6px;
}

.apply-cta-title {
  color: #0a0a0a;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 8px;
  line-height: 1.2;
}

.apply-cta-desc {
  color: #555;
  font-size: 0.87rem;
  line-height: 1.6;
  margin: 0;
  max-width: 340px;
}

.apply-cta-btn {
  flex-shrink: 0;
  font-size: 0.95rem;
  padding: 14px 28px;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15);
}

/* ── CEO card ── */
.ceo-card {
  background-color: #0f0f0f;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 0;
}

.ceo-label {
  color: #555;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 6px;
}

.ceo-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ceo-btn {
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .ceo-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
  .apply-cta { flex-direction: column; align-items: flex-start; }
  .apply-cta-btn { width: 100%; text-align: center; }
}

.ceo-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ceo-name {
  color: #fdfbf5;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 2px;
  display: block;
  text-decoration: underline;
  text-decoration-color: #333;
  text-underline-offset: 2px;
}

.ceo-name:hover { text-decoration-color: #888; }

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

.ceo-desc {
  color: #777;
  font-size: 0.85rem;
  margin: 4px 0 0;
}

.ceo-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ceo-linkedin {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 0.82rem;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.15s;
}

.ceo-linkedin:hover { color: #aaa; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
