/* UNSTQ - 1997 Web Energy */
/* Dark. Hand-made. Someone's actual brain. */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark: #0a0a0b;
  --bg-slightly-less-dark: #111113;
  --text-primary: #e8e6e3;
  --text-dim: #7a7875;
  --accent-chaos: #e63946;
  --accent-answers: #457b9d;
  --accent-stuck: #6b5b95;
  --accent-manifesto: #f4a261;
  --accent-longform: #2a9d8f;
  --accent-future: #4a4a4a;
}

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

html {
  font-size: 18px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  line-height: 1.6;
}

/* Subtle noise texture - 1997 feel */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* ========================
   HOMEPAGE
   ======================== */

.homepage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Manifesto - Jobs energy */
.manifesto {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
}

.manifesto p {
  font-family: 'Crimson Text', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.manifesto p:nth-child(1) { animation-delay: 0.2s; }
.manifesto p:nth-child(2) { animation-delay: 0.5s; }
.manifesto p:nth-child(3) { animation-delay: 0.8s; }
.manifesto p:nth-child(4) { animation-delay: 1.1s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Spiral container */
.spiral-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
}

.spiral-svg {
  width: 100%;
  height: 100%;
}

/* Spiral zones */
.spiral-zone {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.spiral-zone:hover {
  opacity: 1;
  filter: brightness(1.3);
}

/* Zone-specific colors */
.zone-stuck { fill: var(--accent-stuck); }
.zone-chaos { fill: var(--accent-chaos); }
.zone-answers { fill: var(--accent-answers); }
.zone-manifesto { fill: var(--accent-manifesto); }
.zone-longform { fill: var(--accent-longform); }
.zone-future { fill: var(--accent-future); }

/* Centre "stuck" pulse */
.zone-stuck {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}

/* Zone labels on hover */
.zone-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  fill: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spiral-zone:hover + .zone-label,
.zone-label.visible {
  opacity: 1;
}

/* ========================
   INNER PAGES
   ======================== */

.inner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.page-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.page-text.highlight {
  color: var(--text-primary);
  font-style: italic;
}

/* Page-specific title colors */
.page-stuck .page-title { color: var(--accent-stuck); }
.page-chaos .page-title { color: var(--accent-chaos); }
.page-answers .page-title { color: var(--accent-answers); }
.page-manifesto .page-title { color: var(--accent-manifesto); }
.page-longform .page-title { color: var(--accent-longform); }

/* Pattern interrupt - the escape hatch */
.pattern-interrupt {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.pattern-interrupt a {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
  background: var(--bg-dark);
}

.pattern-interrupt a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* WIP notice */
.wip-notice {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 3rem;
  padding: 1rem;
  border: 1px dashed var(--text-dim);
  opacity: 0.6;
}

/* ========================
   MANIFESTO PAGE SPECIFICS
   ======================== */

.manifesto-full {
  text-align: left;
}

.manifesto-full .line {
  margin-bottom: 2rem;
}

.manifesto-full .line-text {
  font-family: 'Crimson Text', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.manifesto-full .line-meaning {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ========================
   LONGFORM PAGE - LINKS
   ======================== */

.longform-links {
  list-style: none;
  text-align: left;
  width: 100%;
}

.longform-links li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-slightly-less-dark);
}

.longform-links a {
  font-family: 'Crimson Text', serif;
  font-size: 1.3rem;
  color: var(--accent-longform);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.longform-links .date {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.3rem;
}

/* ========================
   MOBILE
   ======================== */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  .manifesto p {
    font-size: 1.25rem;
  }
  
  .spiral-container {
    max-width: 100%;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .pattern-interrupt {
    bottom: 1rem;
  }
  
  .pattern-interrupt a {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
}
