/* Shrike - Personal Site */
/* Dark. Sharp. Minimal. */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --border: #27272a;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scan line effect — static lines */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(34, 197, 94, 0.04) 3px,
    rgba(34, 197, 94, 0.04) 4px
  );
  z-index: 1000;
}

/* Scan line sweep — single bright line moving down */
.scan-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.15) 15%,
    rgba(34, 197, 94, 0.3) 50%,
    rgba(34, 197, 94, 0.15) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
  animation: sweep 8s linear infinite, flicker 0.15s steps(2) infinite;
}

@keyframes sweep {
  0% { top: -1px; }
  100% { top: 100vh; }
}

@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Header */
header {
  margin-bottom: 4rem;
  text-align: center;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.eye {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow);
  animation: eyeAnim 6s ease-in-out infinite;
}

.eye.right {
  animation-delay: 0s;
}

@keyframes eyeAnim {
  /* First pulse: dim */
  0% { opacity: 1; height: 10px; border-radius: 50%; }
  12% { opacity: 0.5; }
  25% { opacity: 1; }
  /* Second pulse: blink */
  37% { opacity: 0.5; height: 10px; border-radius: 50%; }
  42% { height: 1px; border-radius: 1px; opacity: 0.8; }
  46% { height: 1px; border-radius: 1px; opacity: 0.8; }
  51% { height: 10px; border-radius: 50%; opacity: 1; }
  100% { opacity: 1; height: 10px; border-radius: 50%; }
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* About */
.about p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.about a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.about a:hover {
  border-color: var(--accent);
}

/* Projects */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.thought-log-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.thought-log-link h2 {
  margin: 0;
  font-size: 1.1rem;
}

.thought-log-link p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.thought-log-link:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.thought-log-link:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.project-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.project-card:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.project-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.project-info {
  flex: 1;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all 0.2s;
}

/* Proof */
.proof-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.proof-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proof-item:first-child {
  padding-top: 0;
}

.label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.proof-item code {
  color: var(--text-secondary);
  word-break: break-all;
}

.proof-item a.hash {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.proof-item a.hash:hover {
  opacity: 0.8;
}

/* Links */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.link-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.link-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

footer .subtle {
  font-size: 0.75rem;
}

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

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

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .proof-item code {
    font-size: 0.75rem;
  }
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

.commit {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--accent);
}

.commit-sep {
  color: var(--text-muted);
}
