/* ==========================================================================
   Nikita Sonkin Portfolio — Amber CRT Terminal Theme
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #1a1410;
  --bg-elevated: #221a14;
  --bg-titlebar: #261c16;

  /* Borders */
  --border-subtle: #3a2c20;
  --border-strong: #553400;

  /* Text */
  --text-primary: #FFB000;
  --text-body: #E89800;
  --text-dim: #a06800;
  --text-hint: #6a4400;
  --accent-bright: #FFD580;

  /* Status colors */
  --status-live: #9FE1CB;
  --status-wip: #F0997B;
  --status-done: #9a6a10;

  /* Typography & layout */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', 'Courier New', monospace;
  --max-width: 760px;
}

/* Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CRT scanlines overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.10) 2px,
    rgba(0, 0, 0, 0.10) 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 55%,
    rgba(0, 0, 0, 0.30) 100%
  );
  pointer-events: none;
  z-index: 9998;
}

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Navigation
   ========================================================================== */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 20, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.nav-brand::before {
  content: "> ";
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 150ms ease;
  font-family: var(--font-mono);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Layout
   ========================================================================== */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.section:last-of-type {
  border-bottom: none;
}

.section--hero {
  padding-top: 140px;
  padding-bottom: 60px;
}

.section-heading {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* Hero
   ========================================================================== */

.terminal-block {
  margin-bottom: 26px;
}

.line {
  margin-bottom: 4px;
  color: var(--text-body);
}

.prompt {
  color: var(--text-dim);
  user-select: none;
}

.dim {
  color: var(--text-dim);
}

.hero-name {
  color: var(--text-primary);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
  line-height: 1.15;
  font-family: var(--font-mono);
}

.kv {
  margin-bottom: 4px;
  color: var(--text-body);
}

.kv .dim {
  display: inline-block;
  min-width: 90px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag {
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12.5px;
  text-decoration: none;
  font-family: var(--font-mono);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.tag:hover {
  border-color: var(--border-strong);
  color: var(--accent-bright);
  background: var(--bg-titlebar);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  margin-bottom: 32px;
}

.cta {
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  background: transparent;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all 150ms ease;
  cursor: pointer;
  display: inline-block;
}

.cta:hover {
  background: var(--bg-elevated);
  color: var(--accent-bright);
  border-color: var(--text-primary);
}

.cta--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.cta--primary:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  border-color: var(--accent-bright);
}

.cta--big {
  padding: 14px 26px;
  font-size: 14px;
}

.cursor-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--text-primary);
  margin-left: 6px;
  animation: blink 1.05s steps(2) infinite;
  vertical-align: middle;
}

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

/* About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 36px;
  align-items: start;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-body);
}

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

.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.photo-frame {
  width: 200px;
  height: 200px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) saturate(1.15) hue-rotate(-8deg) brightness(0.95);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  gap: 6px;
  text-align: center;
  padding: 20px;
}

.photo-placeholder .ascii {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-hint);
  white-space: pre;
  margin-bottom: 8px;
}

.photo-caption {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

/* Projects
   ========================================================================== */

.project {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 18px;
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.project:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(255, 176, 0, 0.10), 0 0 40px rgba(255, 176, 0, 0.04);
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.project-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.status {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status--live { color: var(--status-live); }
.status--wip  { color: var(--status-wip); }
.status--done { color: var(--status-done); }

.project-role {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.project-desc {
  color: var(--text-body);
  margin-bottom: 14px;
  font-size: 14px;
}

.project-highlights {
  list-style: none;
  margin-bottom: 14px;
}

.project-highlights li {
  position: relative;
  padding-left: 20px;
  color: var(--text-body);
  font-size: 13.5px;
  margin-bottom: 4px;
}

.project-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.project-tech {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  word-spacing: 1px;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.link-tag {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

.link-tag:hover {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-note {
  font-size: 12.5px;
  margin-top: 6px;
}

/* Experience
   ========================================================================== */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.exp-item {
  padding-left: 4px;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 14px;
}

.exp-marker {
  color: var(--text-dim);
}

.exp-date {
  color: var(--text-dim);
  font-size: 13px;
  min-width: 130px;
}

.exp-company {
  color: var(--text-primary);
  font-weight: 500;
}

.exp-role {
  color: var(--text-body);
}

.exp-desc {
  color: var(--text-body);
  font-size: 13.5px;
  padding-left: 142px;
  line-height: 1.65;
}

/* Skills
   ========================================================================== */

.skills-json {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-body);
  overflow-x: auto;
  line-height: 1.7;
  white-space: pre;
}

.skills-json .key {
  color: var(--accent-bright);
}

.skills-json .val {
  color: var(--text-primary);
}

.skills-json .punct {
  color: var(--text-dim);
}

/* Contact
   ========================================================================== */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 150ms ease;
}

.contact-row:hover {
  border-color: var(--border-strong);
}

.contact-label {
  color: var(--text-dim);
  min-width: 90px;
  font-size: 13px;
}

.contact-value {
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
  word-break: break-word;
}

.cv-download {
  text-align: center;
  margin-top: 28px;
}

.cv-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer
   ========================================================================== */

.footer {
  padding: 56px 0 80px;
  text-align: left;
}

.footer-line {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .nav-inner {
    padding: 12px 16px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }

  main {
    padding: 0 18px;
  }

  .section {
    padding: 56px 0;
  }

  .section--hero {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .hero-name {
    font-size: 26px;
  }

  .kv .dim {
    min-width: 70px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    align-items: center;
  }

  .photo-frame {
    width: 180px;
    height: 180px;
  }

  .exp-desc {
    padding-left: 0;
    margin-top: 4px;
  }

  .exp-header {
    gap: 4px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-label {
    min-width: 0;
  }

  .skills-json {
    font-size: 12.5px;
    padding: 18px;
  }

  .impact-strip {
    gap: 16px;
  }

  .impact-num {
    font-size: 22px;
  }

  .lf-item {
    flex-direction: column;
    gap: 4px;
  }

  .lf-key {
    min-width: 0;
  }

  .skill-bar-ctx {
    min-width: 0;
    font-size: 10px;
  }

  .status-bar {
    font-size: 10px;
    padding: 3px 12px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 13px;
    padding: 4px 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta {
    text-align: center;
  }

  .project {
    padding: 20px;
  }
}

/* Hamburger menu
   ========================================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  line-height: 1;
  transition: border-color 150ms ease;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
}

/* Project screenshots placeholder
   ========================================================================== */

.project-screenshot {
  width: 100%;
  height: 120px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-subtle);
  border-radius: 3px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  font-size: 12px;
  font-family: var(--font-mono);
  overflow: hidden;
}

.project-screenshot .ascii-mock {
  white-space: pre;
  line-height: 1.3;
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.5;
}

/* Now section
   ========================================================================== */

.now-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--status-wip);
  border-radius: 4px;
  padding: 20px 24px;
  margin-top: 8px;
}

.now-block p {
  color: var(--text-body);
  font-size: 14px;
  margin-bottom: 8px;
}

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

/* Testimonial section
   ========================================================================== */

.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
  margin-top: 8px;
  position: relative;
}

.testimonial-quote {
  color: var(--text-body);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial-quote::before {
  content: "> ";
  color: var(--text-dim);
  font-style: normal;
}

.testimonial-author {
  color: var(--text-dim);
  font-size: 13px;
}

.testimonial-author strong {
  color: var(--text-primary);
  font-weight: 500;
  font-style: normal;
}

/* Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.10s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.20s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.25s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.30s; }

/* Tablet breakpoint
   ========================================================================== */

@media (max-width: 600px) {
  .exp-header {
    flex-direction: column;
    gap: 2px;
  }

  .exp-date {
    min-width: 0;
  }

  .exp-desc {
    padding-left: 0;
    margin-top: 4px;
  }

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

  .hero-name {
    font-size: 24px;
  }

  .project-screenshot {
    height: 90px;
  }
}

/* Status bar (vim-style)
   ========================================================================== */

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-titlebar);
  border-top: 1px solid var(--border-subtle);
  padding: 4px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  user-select: none;
}

.status-bar-left,
.status-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.status-bar .status-mode {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 1px 8px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.status-bar .status-sep {
  color: var(--border-subtle);
}

/* Back to top button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 38px;
  right: 24px;
  z-index: 99;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, border-color 150ms ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--border-strong);
  background: var(--bg-titlebar);
}

/* Skill bars
   ========================================================================== */

.skill-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.skill-bar-label {
  color: var(--text-dim);
  min-width: 80px;
  text-align: right;
}

.skill-bar {
  flex: 1;
  color: var(--text-primary);
  letter-spacing: -1px;
  white-space: nowrap;
  overflow: hidden;
}

.skill-bar .filled {
  color: var(--text-primary);
}

.skill-bar .empty {
  color: var(--border-subtle);
}

.skill-bar-pct {
  color: var(--text-dim);
  min-width: 36px;
  font-size: 11px;
}

/* Boot sequence overlay
   ========================================================================== */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20% 24px 20%;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  transition: opacity 0.4s ease;
}

.boot-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.boot-line {
  margin-bottom: 6px;
  opacity: 0;
  white-space: nowrap;
}

.boot-line.show {
  opacity: 1;
}

.boot-line .ok {
  color: var(--status-live);
}

.boot-line .fail {
  color: var(--status-wip);
}

.boot-line.boot-ready {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 8px;
}

/* Animated counters
   ========================================================================== */

.stat-counter {
  display: inline;
  font-weight: 500;
  color: var(--text-primary);
}

/* Focus styles (accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.cta:focus-visible,
.tag:focus-visible {
  outline-offset: 3px;
}

/* Impact strip
   ========================================================================== */

.impact-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
  padding: 16px 0;
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.impact-num {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.impact-plus {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.impact-label {
  color: var(--text-dim);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

/* Skill bar context labels
   ========================================================================== */

.skill-bar-ctx {
  color: var(--text-dim);
  min-width: 100px;
  font-size: 11px;
  white-space: nowrap;
}

/* Looking for section
   ========================================================================== */

.looking-for-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lf-item {
  display: flex;
  gap: 14px;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 14px;
  align-items: baseline;
}

.lf-key {
  color: var(--text-dim);
  min-width: 90px;
  font-size: 13px;
}

.lf-val {
  color: var(--text-body);
}

/* Terminal interactive
   ========================================================================== */

.terminal-interactive {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 18px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  flex: 1;
  margin-bottom: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.terminal-output .line {
  margin-bottom: 4px;
  font-size: 13.5px;
}

.terminal-output .cmd-echo {
  color: var(--text-dim);
}

.terminal-output .cmd-result {
  color: var(--text-body);
}

.terminal-output .cmd-highlight {
  color: var(--text-primary);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  caret-color: var(--text-primary);
}

/* Sound toggle
   ========================================================================== */

.sound-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.sound-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.sound-toggle.active {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* GitHub widget
   ========================================================================== */

.github-widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 20px 24px;
}

.gh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
}

.gh-user {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
}

.gh-user::before {
  content: "@";
  color: var(--text-dim);
}

.gh-activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gh-event {
  font-size: 13px;
  color: var(--text-body);
}

.gh-event-type {
  color: var(--text-primary);
  font-weight: 500;
}

.gh-event-repo {
  color: var(--accent-bright);
}

.gh-event-date {
  color: var(--text-dim);
  font-size: 11.5px;
  margin-left: 8px;
}

.gh-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-dim);
}

.gh-stat-val {
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer padding for status bar */
.footer {
  padding-bottom: 100px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor {
    animation: none;
  }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .boot-overlay {
    display: none !important;
  }

  .back-to-top {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
