/* ============================================
   Richard Windesheim - Minimal Monochrome
   ============================================ */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #262626;
  --text: #fafafa;
  --muted: #737373;
  --dim: #525252;
  --accent: #a3a3a3;

  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --transition: 200ms ease;
}

/* Light mode */
[data-theme="light"] {
  --bg: #fafafa;
  --surface: #f0f0f0;
  --border: #d4d4d4;
  --text: #0a0a0a;
  --muted: #525252;
  --dim: #737373;
  --accent: #404040;
}

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

html {
  /* Fixed base font size */
  font-size: 11px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Graph Canvas */
#graph-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Main Layout */
.site {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  margin-bottom: 3rem;
}

.name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: var(--text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 0.25em;
}

.theme-toggle:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

[data-theme="light"] .theme-toggle {
  background: transparent;
}

.bio {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Currently Status */
.currently {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin-bottom: 2.5rem;
}

.currently-prefix {
  color: var(--dim);
}

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

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--muted);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

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

.section {
  border-top: 1px solid var(--border);
}

.section:last-child {
  border-bottom: 1px solid var(--border);
}

/* Section Header (Trigger) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.section-header:hover {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.section-toggle {
  font-size: 1rem;
  color: var(--dim);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.section.open .section-toggle {
  transform: rotate(135deg);
}

/* Section Content */
.section-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 300ms ease,
              padding 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.section.open .section-content {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

/* Content items */
.content-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.content-item:last-child {
  border-bottom: none;
}

/* Glitch text effect */
[data-glitch] {
  position: relative;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-name {
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.exp-date {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  color: var(--dim);
}

.exp-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Project name styling */

.proj-name {
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.proj-outcome {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Education */
.content-item p {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  margin-bottom: 0.25rem;
}

.content-item .school {
  font-weight: 500;
}

.content-item .gpa {
  color: var(--muted);
}

.content-item.secondary,
.content-item.secondary p {
  font-size: 0.85rem;
  color: var(--dim);
}

/* Links */
.links {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Admin Link (subtle, bottom right) */
.admin-trigger {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.admin-trigger:hover {
  color: var(--dim);
}

/* Responsive */
@media (max-width: 640px) {
  .site {
    padding: 1.5rem;
  }

  .name {
    font-size: 1.4rem;
  }

  .links {
    flex-direction: row;
    gap: 1.5rem;
    bottom: 1.5rem;
  }

  .exp-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .exp-date {
    order: -1;
  }
}
