/* ── Variables ── */
:root {
  --bg:       #0a0a0a;
  --bg2:      #0f0f0f;
  --surface:  #141414;
  --border:   #2a1515;
  --muted:    #5a4040;
  --text:     #c8b8b8;
  --bright:   #f0e8e8;
  --accent:   #9b1a1a;
  --accent2:  #c0272d;
  --glow:     rgba(155, 26, 26, 0.18);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono:  'Share Tech Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Atmosphere (flat) ── */
.noise { display: none; }
.vignette { display: none; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13,11,15,0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.nav-logo {
  color: var(--accent);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-logo:hover {
  color: var(--accent2);
  text-shadow: 0 0 12px var(--accent2);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--bright); }
.nav-links a.active { color: var(--accent); }

/* ── Main layout ── */
main {
  flex: 1;
  padding: 7rem 2.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* ── Home ── */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  padding-top: 0;
}

.home-center {
  text-align: center;
  animation: fadeUp 1s ease both;
}

.home-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.5rem;
}

.home-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--bright);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.home-desc {
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.home-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  min-width: 160px;
}
.card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glow);
  transform: translateY(-3px);
}

.card-icon {
  color: var(--accent);
  font-size: 1.2rem;
}
.card-label {
  color: var(--bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.card-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

/* ── Page header ── */
.page-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.8s ease both;
}

.page-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: lowercase;
  margin-bottom: 0.4rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--bright);
}

.page-desc {
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
}

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

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  animation: fadeUp 0.8s ease both;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--glow);
  transform: translateY(-3px);
}

.card-name {
  font-size: 1.2rem;
  color: var(--bright);
  margin-bottom: 0.3rem;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.card-blurb {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Journal entries ── */
.entries {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.8s ease both;
}
.entry:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.entry-title {
  color: var(--bright);
  font-size: 1rem;
}
.entry-preview {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.2rem;
}

/* ── OC / Game detail page ── */
.detail {
  animation: fadeUp 0.8s ease both;
}

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

.detail-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.detail-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--bright);
}

.detail-sub {
  color: var(--muted);
  font-style: italic;
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .detail-body { grid-template-columns: 1fr; }
}

.detail-desc p {
  margin-bottom: 1rem;
  color: var(--text);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-box {
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 1rem 1.2rem;
}

.detail-box h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-transform: lowercase;
}

.detail-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-box li {
  font-size: 0.9rem;
  color: var(--text);
}

.detail-box li::before {
  content: "◇ ";
  color: var(--accent);
  font-size: 0.7rem;
}

/* ── Journal entry detail ── */
.journal-entry {
  animation: fadeUp 0.8s ease both;
}

.journal-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.journal-body {
  max-width: 640px;
}

.journal-body p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.journal-body h2 {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--bright);
  margin: 2rem 0 0.6rem;
}

/* ── Back link ── */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--border);
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Stagger children ── */
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.10s; }
.grid .card:nth-child(3) { animation-delay: 0.15s; }
.grid .card:nth-child(4) { animation-delay: 0.20s; }
.grid .card:nth-child(5) { animation-delay: 0.25s; }
.grid .card:nth-child(6) { animation-delay: 0.30s; }

.entries .entry:nth-child(1) { animation-delay: 0.05s; }
.entries .entry:nth-child(2) { animation-delay: 0.10s; }
.entries .entry:nth-child(3) { animation-delay: 0.15s; }
.entries .entry:nth-child(4) { animation-delay: 0.20s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
