:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: #111317;
  color: #f2f4f7;
}

body.demo-page {
  background: #050505;
  overflow: hidden;
}

.demo-root,
.demo-page #demo-root {
  width: 100vw;
  height: 100vh;
}

body.home {
  background: transparent;
  color: #e2e8f0;
}

.page-main {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}

#water-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, rgba(10, 24, 38, 0.8), rgba(3, 6, 10, 0.95));
  pointer-events: none;
}

#water-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.home-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-header img {
  width: min(640px, 85vw);
  display: block;
  margin: 0 auto 1.5rem;
}

.home-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
}

.home-intro {
  margin: 0 auto;
  max-width: 48ch;
  text-align: center;
}

.timeline-heading {
  margin-top: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b4c9ff;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.link-list a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.link-list span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9bb8ff;
}

.post-content {
  max-width: 640px;
  margin: 0 auto;
}

.post-content a {
  color: #9ac7ff;
}

.post-canvas {
  margin: 2.5rem 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), rgba(2, 8, 23, 0.95));
  box-shadow: 0 25px 65px rgba(3, 6, 23, 0.4);
}

.post-canvas canvas {
  display: block;
  width: 100%;
  min-height: 260px;
  border-radius: 0.85rem;
  background: #030712;
}

.post-canvas figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .link-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}
