/* Concept 4: The Quiet Console
   A calm, focused space. One thing at a time. */

:root {
  --color-bg: #0D1117;
  --color-bg-elevated: #161B22;
  --color-text: #C9D1D9;
  --color-text-muted: #6E7681;
  --color-text-bright: #F0F6FC;
  --color-accent: #E9967A;
  --color-accent-dim: rgba(233, 150, 122, 0.15);
  --color-border: rgba(201, 209, 217, 0.1);
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* Canvas container for p5.js */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

#canvas-container canvas {
  display: block;
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  margin-bottom: 80px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cursor {
  color: var(--color-accent);
  animation: blink 1s step-end infinite;
  font-size: 2rem;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.header h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-bright);
}

/* Focus section */
.focus-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 60px;
}

.focus-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.focus-content {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.focus-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  border-radius: 3px 0 0 3px;
}

.focus-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-bright);
  margin-bottom: 20px;
}

.focus-date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Navigation */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 60px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}

.nav-link::before {
  content: '>';
  margin-right: 6px;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.2s;
}

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

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.external::after {
  content: ' ^';
  font-size: 0.7em;
  opacity: 0.5;
}

/* Footer */
.footer {
  margin-top: auto;
}

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Subtle text selection */
::selection {
  background: var(--color-accent-dim);
  color: var(--color-text-bright);
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 60px 20px;
  }

  .header {
    margin-bottom: 60px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .cursor {
    font-size: 1.5rem;
  }

  .focus-text {
    font-size: 1rem;
  }

  .focus-content {
    padding: 24px;
  }

  .nav {
    gap: 6px 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}
