@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
  --bg: #000;
  --text: #d4cfc4;
  --muted: #7a756b;
  --dim: #6a655b;
  --dimmer: #5a554b;
  --dimmest: #4a4740;
  --accent: #c8c2b5;
  --highlight: #a09a8e;
  --line: #2a2824;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards 0.1s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

/* ── Overlays ───────────────────────────────────────────── */

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}

/* ── Nav ────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5%;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--dimmest);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 12%;
  padding-top: 80px;
  padding-right: 5%;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--dimmer);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(52px, 8vw, 96px);
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 20px;
}

.title-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}

.hero-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--dimmest);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  transition: border-color 0.4s, color 0.4s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  border-color: var(--dim);
  color: var(--text);
}

.btn--primary {
  border-color: var(--dimmer);
  color: var(--highlight);
}

.btn--primary:hover {
  border-color: var(--highlight);
  color: var(--text);
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: 120px 10%;
}

.section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.section--centered {
  text-align: center;
}

.section--centered .section__inner {
  max-width: 600px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 24px;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-text {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.9;
  max-width: 580px;
}

.section--centered .section-text {
  margin: 0 auto;
}

/* ── Screenshot placeholder ─────────────────────────────── */

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dimmer);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 48px;
}

/* ── Devlog grid (index) ────────────────────────────────── */

.devlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  margin-bottom: 40px;
}

.devlog-card {
  display: block;
  background: #080808;
  border: 1px solid var(--line);
  padding: 32px;
  transition: border-color 0.3s;
  text-decoration: none;
}

.devlog-card:hover {
  border-color: var(--dimmer);
}

.devlog-card__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  color: var(--dimmer);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.devlog-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

.devlog-card__excerpt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
}

.view-all-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dimmer);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.view-all-link:hover {
  color: var(--text);
}

/* ── Devlog list (devlog.html) ──────────────────────────── */

.devlog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.devlog-entry {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.devlog-entry:first-child {
  border-top: 1px solid var(--line);
}

.read-link {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--dimmer);
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.3s;
}

.read-link:hover {
  color: var(--text);
}

/* ── Post ───────────────────────────────────────────────── */

.post-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 5% 80px;
}

.post-breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--dimmer);
  margin-bottom: 48px;
  letter-spacing: 0.1em;
}

.post-breadcrumb a {
  color: var(--dimmer);
  text-decoration: none;
  transition: color 0.3s;
}

.post-breadcrumb a:hover {
  color: var(--text);
}

.post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 300;
  color: var(--dimmer);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 48px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.post-body {
  line-height: 1.9;
  color: var(--text);
  font-size: 14px;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--accent);
  margin: 2em 0 1em;
  letter-spacing: 0.02em;
}

.post-body a {
  color: var(--highlight);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.post-body a:hover {
  color: var(--text);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

/* ── Press ──────────────────────────────────────────────── */

.press-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 48px;
  margin: 48px 0;
  align-items: baseline;
}

.fact-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--dimmer);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
}

.fact-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--text);
  padding: 6px 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 48px 0;
}

.screenshot-grid .screenshot-placeholder {
  margin-top: 0;
  aspect-ratio: 16 / 9;
}

.contact-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--highlight);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.contact-email:hover {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--dimmer);
}

.footer-left {
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--dimmer);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 10px;
  transition: color 0.3s;
}

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

/* ── Utility ────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-left: 8%;
    padding-right: 8%;
  }

  .section {
    padding: 80px 6%;
  }

  .devlog-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .press-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fact-label {
    margin-top: 16px;
    margin-bottom: 2px;
  }

  .post-article {
    padding: 120px 6% 60px;
  }

  .post-title {
    font-size: 36px;
  }
}
