/* ---------- palette / tokens ---------- */
:root {
  --bg: #0a0e1f;
  --panel-bg: #101632;
  --border: #ffffff;

  --text: #ffffff;
  --label-grey: #d8dbe0;

  --accent-blue: #5e8fdb;
  --linkedin-blue: #0a66c2;

  --card-bg: rgba(255, 255, 255, 0.09);

  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  --font-pixel: 'Silkscreen', 'JetBrains Mono', monospace;
}

:root.light {
  --bg: #ffffff;
  --panel-bg: #ffffff;
  --border: #000000;

  --text: #000000;
  --label-grey: #4b5563;

  --card-bg: rgba(0, 0, 0, 0.06);
}

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

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* ---------- layout shell ---------- */
.workspace {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.header-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

@media (max-width: 640px) {
  .header-block {
    flex-direction: column;
    gap: 10px;
  }

  .workspace {
    padding: 32px 16px;
    gap: 20px;
  }

  .banner-title {
    font-size: 19px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-box {
    height: 48px;
    padding: 0 14px;
    gap: 8px;
    font-size: 13px;
  }

  .social-box svg {
    width: 20px;
    height: 20px;
  }

  .theme-toggle {
    width: 48px;
  }

  .theme-toggle .icon-sun,
  .theme-toggle .icon-moon {
    width: 20px;
    height: 20px;
  }

  .section {
    padding: 18px 16px;
  }

  .visitors-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn-resources {
    width: 100%;
  }

  .whoami-row {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .photo-placeholder {
    width: 100%;
    min-height: 0;
    height: 300px;
  }

  .experience-item {
    flex-wrap: wrap;
  }

  .company-info {
    min-width: 160px;
  }

  .company-dates {
    margin-left: auto;
  }

  #globe-viz {
    height: 380px;
  }

  .globe-tooltip {
    padding: 6px 8px;
  }

  .globe-tooltip p {
    font-size: 10px;
  }

  .globe-legend {
    padding: 8px 10px;
  }

  .music-viz {
    height: 420px;
  }

  .music-bottom-row {
    flex-direction: column;
  }

  .music-divider {
    width: 100%;
    height: 1px;
  }

  .music-placeholder,
  .now-playing-card {
    padding: 18px 16px;
  }

  .now-playing-art {
    width: 100%;
    max-width: 220px;
  }

  .modal-box {
    flex-direction: column;
    max-width: 300px;
    gap: 14px;
  }

  .modal-cover {
    width: 100%;
    height: 220px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .lore-header {
    padding: 16px 18px;
  }

  .lore-title {
    font-size: 22px;
  }
}

/* ---------- shared prompt styling ---------- */
.prompt-line {
  color: var(--text);
  font-size: 15px;
}

.prompt-user  { color: var(--text); }
.prompt-sep   { color: var(--text); }
.prompt-path  { color: var(--text); }
.prompt-dollar{ color: var(--text); margin-right: 6px; }

.cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--text);
  vertical-align: middle;
  margin-left: 5px;
  animation: blink 1s steps(1) infinite;
}

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

/* ---------- header text ---------- */
.banner-title-link {
  text-decoration: none;
}

.banner-title {
  font-family: var(--font-pixel);
  font-size: 23px;
  letter-spacing: 2px;
  color: var(--text);
}

.banner-sub {
  color: var(--text);
  font-size: 14px;
}

/* ---------- social boxes ---------- */
.social-links {
  display: flex;
  gap: 28px;
}

.social-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 25px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  transition: border-color 0.15s ease;
}

.social-box:hover {
  border-color: var(--accent-blue);
}

.social-box svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 64px;
  padding: 0;
  justify-content: center;
  cursor: pointer;
  font: inherit;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 24px;
  height: 24px;
}

.theme-toggle .icon-moon {
  display: none;
}

:root.light .theme-toggle .icon-sun {
  display: none;
}

:root.light .theme-toggle .icon-moon {
  display: block;
}

.icon-github {
  fill: var(--text);
}

.icon-linkedin {
  fill: var(--linkedin-blue);
}

/* ---------- content sections ---------- */
.section {
  border: 1px solid var(--border);
  background: var(--panel-bg);
  padding: 23px 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--label-grey);
  font-size: 14px;
  font-style: italic;
}

.section-title .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent-blue);
}

/* for-visitors */
.visitors-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.visitors-row .btn {
  flex-shrink: 0;
}

.btn-resources {
  justify-content: flex-start;
  gap: 9px;
  padding: 16px 25px;
  font-size: 15px;
}

.icon-book {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.visitors-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 17px;
}

/* whoami */
.whoami-row {
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.bio-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.bio-text p {
  color: var(--text);
  font-size: 17px;
}

.photo-placeholder {
  width: 276px;
  min-height: 437px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* random.md */
.link-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.link-box {
  flex: 1 1 100px;
  text-align: center;
  padding: 11px 14px;
  font-weight: 600;
}

/* experience */
.experience-note {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 18px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.experience-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--panel-bg);
}

.company-logo {
  width: 41px;
  height: 41px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-info {
  flex: 1;
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.company-role {
  font-size: 14px;
  color: var(--text);
}

.company-location {
  font-size: 13px;
  color: var(--text);
}

.company-dates {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

/* resources page */
.resources-intro-text {
  color: var(--text);
  font-size: 15px;
}

.globe-inner {
  border: 1px solid var(--border);
}

.section-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

:root.light .section-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}

.globe-wrap {
  position: relative;
}

#globe-viz {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: inline-block;
  width: max-content;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65);
  padding: 8px 10px;
}

.globe-tooltip p {
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.globe-legend {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65);
  padding: 10px 14px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.legend-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legend-icon-check {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #2e9e4c;
}

.legend-icon-check svg {
  width: 12px;
  height: 12px;
}

.legend-icon-pin svg {
  width: 15px;
  height: 18px;
}


.resource-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
}

.resource-card .section-title {
  margin-bottom: 0;
}

.resource-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.resource-desc {
  font-size: 15px;
  color: var(--text);
}

.resource-links {
  display: flex;
  gap: 12px;
}

.resource-link {
  padding: 10px 32px;
  min-width: 64px;
  text-align: center;
}

.experience-pending {
  padding: 16px 18px;
  background: var(--panel-bg);
  color: var(--text);
  font-style: italic;
  font-size: 15px;
  text-align: center;
}

/* ---------- lore faq ---------- */
.lore-header {
  background: var(--card-bg);
  padding: 20px 26px;
  margin-bottom: 24px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.lore-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.lore-subtitle {
  font-size: 14px;
  color: var(--label-grey);
  margin-top: 4px;
}

.lore-category {
  margin-bottom: 28px;
}

.lore-category:last-child {
  margin-bottom: 0;
}

.lore-tag {
  display: inline-block;
  border: 1px solid var(--accent-blue);
  background: rgba(94, 143, 219, 0.1);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.lore-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: left;
}

.faq-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.faq-hash {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--label-grey);
}

.faq-toggle {
  width: 16px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: var(--label-grey);
}

.faq-answer {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-answer p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.faq-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.faq-image-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-image-block img {
  max-width: 320px;
  width: 100%;
  border: 1px solid var(--border);
  display: block;
}

.faq-caption {
  font-size: 12px;
  color: var(--label-grey);
  line-height: 1.5;
}

/* ---------- music page ---------- */
.music-inner {
  display: flex;
  flex-direction: column;
}

.music-wrap {
  position: relative;
}

.music-viz {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.cover-item {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border: 2px solid #f2f2f2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}

.music-hover-box {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.65);
  padding: 10px 14px;
}

.hover-cover-wrap {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  background: #111;
  flex-shrink: 0;
  overflow: hidden;
}

.hover-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hover-cover-wrap img[hidden] {
  display: none;
}

.hover-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hover-label {
  font-size: 11px;
  color: var(--label-grey);
}

.hover-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.hover-artist {
  font-size: 12px;
  color: var(--text);
}

.resume-btn[hidden] {
  display: none;
}

.resume-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  padding: 14px 26px;
  font-size: 15px;
  background: var(--panel-bg);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  display: flex;
  gap: 20px;
  max-width: 440px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.65);
  padding: 26px;
}

.modal-cover {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.modal-artist {
  font-size: 15px;
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  font-family: var(--font-mono);
  cursor: pointer;
  line-height: 1;
}

/* music bottom row: placeholder | divider | now playing card */
.music-bottom-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 22px;
  gap: 24px;
}

.music-placeholder {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  padding: 22px 26px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.music-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.music-placeholder-text p {
  color: var(--label-grey);
  font-size: 15px;
  font-style: italic;
}

.music-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* now playing card */
.now-playing-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--card-bg);
  padding: 22px 26px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.resume-preview {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 8.5 / 11;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 16px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.resume-preview embed {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  display: block;
}

.resume-download-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.now-playing-art {
  width: 220px;
  height: 220px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.65);
}

.now-playing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.now-playing-title {
  width: 100%;
  height: 2.6em;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.now-playing-artist {
  width: 100%;
  height: 1.5em;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--label-grey);
  text-align: center;
  margin-bottom: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 220px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  margin: 0 auto 18px;
  display: block;
}

.speed-slider::-webkit-slider-runnable-track {
  height: 7px;
  background: var(--label-grey);
  border: 1px solid var(--border);
}

.speed-slider::-moz-range-track {
  height: 7px;
  background: var(--label-grey);
  border: 1px solid var(--border);
}

.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--border);
  margin-top: -8px;
}

.speed-slider::-moz-range-thumb {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--border);
}

.now-playing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.control-btn svg {
  width: 30px;
  height: 30px;
}

.control-btn svg[hidden] {
  display: none;
}

.control-btn-main {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--border);
}

.control-btn-main svg {
  width: 26px;
  height: 26px;
}

.control-btn-main #icon-play {
  margin-left: 3px;
}
