@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400;700&display=swap');

/* Enable CSS custom property animation */
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #2dd4bf;
}

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

:root {
  --bg: #0a0a0a;
  --text: #e5e5e5;
  --text-dim: #a3a3a3;
  --text-muted: #525252;
  --accent: #2dd4bf;
  animation: accent-cycle 12s ease-in-out infinite;
}

/* Color cycle - high contrast colors for both modes */
@keyframes accent-cycle {
  0%, 100% { --accent: #2dd4bf; }   /* teal */
  16% { --accent: #a78bfa; }         /* violet */
  33% { --accent: #f472b6; }         /* pink */
  50% { --accent: #fb923c; }         /* orange */
  66% { --accent: #4ade80; }         /* green */
  83% { --accent: #38bdf8; }         /* sky blue */
}

/* Light mode via system preference */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafafa;
    --text: #171717;
    --text-dim: #525252;
    --text-muted: #a3a3a3;
    --accent: #14b8a6;
  }
}

/* Light mode via manual toggle */
:root[data-theme="light"] {
  --bg: #fafafa;
  --text: #171717;
  --text-dim: #525252;
  --text-muted: #a3a3a3;
  --accent: #14b8a6;
}

body {
  font-family: 'Kode Mono', monospace;
  font-size: 0.875rem;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.logo {
  width: 114px;
  height: auto;
  margin-bottom: 1.5rem;
  color: var(--accent);
  cursor: pointer;
}

.logo .eye-x { opacity: 1; }
.logo .eye-mode { opacity: 0; }

.logo:hover .eye-x { opacity: 0; }
.logo:hover .eye-mode { opacity: 1; }

/* Show moon in dark mode (suggests switching to light) */
.logo .eye-sun { display: none; }
.logo .eye-moon { display: block; }

/* Show sun in light mode (suggests switching to dark) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo .eye-sun { display: block; }
  :root:not([data-theme="dark"]) .logo .eye-moon { display: none; }
}

/* Manual theme overrides */
:root[data-theme="light"] .logo .eye-sun { display: block; }
:root[data-theme="light"] .logo .eye-moon { display: none; }
:root[data-theme="dark"] .logo .eye-sun { display: none; }
:root[data-theme="dark"] .logo .eye-moon { display: block; }

.brand-name {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

h1 {
  font-size: inherit;
  font-weight: 400;
  margin-bottom: 0;
}

.tagline {
  color: var(--text-muted);
  font-weight: 400;
}

/* Projects */
.projects {
  margin-bottom: 4rem;
}

.project {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--text-muted);
}

.project:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-link {
  color: var(--text);
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-desc {
  color: var(--text-dim);
  margin-top: 0;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.status--live {
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
}

.status--soon {
  background-color: var(--text-muted);
  color: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  opacity: 0.6;
}

/* About */
.about {
  margin-bottom: 4rem;
  color: var(--text-dim);
}

.about p {
  margin-bottom: 0.75rem;
}

.about p:last-child {
  margin-bottom: 0;
}

.social-link {
  color: var(--text);
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent);
}

/* Footer */
footer {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: var(--text-muted);
}

/* Focus states */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
