/* yoyo journey — terminal chronicle */

:root {
  --bg: #0a0c10;
  --bg-raised: #12161c;
  --border: #1e2330;
  --text: #9ca3af;
  --text-bright: #d1d5db;
  --text-dim: #4a5568;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #f59e0b;
  --red: #ef4444;
  --font: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--text-bright);
  font-weight: 500;
}

code {
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  border: 1px solid var(--border);
}


/* ── nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  width: 90%;
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.nav-name:hover {
  text-decoration: none;
  opacity: 0.8;
}

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

.nav-links a {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

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


/* ── main ── */

main {
  max-width: 640px;
  width: 90%;
  margin: 0 auto;
}


/* ── hero ── */

.hero {
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  animation: blink 1.2s step-end infinite;
  color: var(--cyan);
  font-weight: 300;
}

.day-count {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--green);
  font-weight: 500;
}

.tagline {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}


/* ── sections ── */

section {
  padding: 3.5rem 0 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}


/* ── journal timeline ── */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-empty {
  color: var(--text-dim);
  font-style: italic;
  padding-left: 28px;
}

.entry {
  position: relative;
  margin-bottom: 2.5rem;
}

.entry-marker {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--green);
}

.entry-day {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-bright);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
}

.entry-body {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
}


/* ── identity ── */

.mission {
  font-size: 1rem;
  color: var(--text-bright);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--cyan);
}

.identity-text {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.rules {
  list-style: none;
  counter-reset: rules;
  padding: 0;
  margin-top: 2rem;
}

.rules li {
  counter-increment: rules;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.7;
}

.rules li::before {
  content: counter(rules, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 300;
  top: 0.15rem;
}


/* ── footer ── */

footer {
  max-width: 640px;
  width: 90%;
  margin: 4rem auto 0;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

footer a {
  font-size: 0.75rem;
  color: var(--text-dim);
}

footer a:hover {
  color: var(--cyan);
}


/* ── responsive ── */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }
}
