@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');
/* An optional, palette-preserving 8-bit look. Activated by Mini Alexa's secret. */
:root[data-pixel="true"] {
  --sans: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --serif: "Silkscreen", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --pixel-edge: 0 -4px 0 -2px var(--line), 0 4px 0 -2px var(--line),
    -4px 0 0 -2px var(--line), 4px 0 0 -2px var(--line);
}

:root[data-pixel="true"] body { line-height: 1.75; }
:root[data-pixel="true"] :is(h1, h2, h3, .signature, .handwritten) {
  font-family: var(--serif);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
:root[data-pixel="true"] em {
  font-family: var(--serif);
  font-weight: 700;
  font-style: normal;
}
:root[data-pixel="true"] .hero h1 {
  font-size: clamp(2.5rem, 6.7vw, 5rem);
  line-height: 1.2;
}
:root[data-pixel="true"] .hero h1 em { font-size: 1.06em; }
:root[data-pixel="true"] .hero-intro { max-width: 45rem; }
:root[data-pixel="true"] .signature { font-size: 1.4rem; }
:root[data-pixel="true"] .signature span {
  color: var(--pink);
  font-weight: 700;
  font-size: 1.2rem;
}
:root[data-pixel="true"] footer .signature { font-size: 1.2rem; }
:root[data-pixel="true"] .eyebrow { letter-spacing: .1em; }
:root[data-pixel="true"] .dot { border-radius: 0; box-shadow: 3px 3px 0 var(--lavender); }
:root[data-pixel="true"] .chapter-line {
  border-top: 2px dashed var(--line);
  letter-spacing: .1em;
}
:root[data-pixel="true"] :is(nav, .hero-actions, .story-actions, .repo-links) { row-gap: 1rem; }
:root[data-pixel="true"] nav a { text-underline-offset: .3em; }
:root[data-pixel="true"] nav a:hover { text-decoration: underline; }
:root[data-pixel="true"] .nav-contact::before { content: "> "; color: var(--pink); }

/* Small, stepped outlines replace rounded surfaces without changing their colors. */
:root[data-pixel="true"] :is(.now-section, .current-project, .repo-card, .resume-project, .display-options, #project-explorer) {
  border-radius: 0;
  border: 2px solid var(--line);
  box-shadow: var(--pixel-edge);
}
:root[data-pixel="true"] :is(.now-section, .current-project) { gap: 2rem; }
:root[data-pixel="true"] .now-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
:root[data-pixel="true"] :is(.now-heading, .now-content, .now-panel, .repo-card, .about-heading, .about-copy, .current-description) { min-width: 0; }
:root[data-pixel="true"] .now-heading h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
:root[data-pixel="true"] :is(.now-panel h3, .repo-card h3, .resume-project h3, .explorer-panel h3) {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.03em;
}
:root[data-pixel="true"] .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
:root[data-pixel="true"] .repo-card { transition: border-color .2s; }
:root[data-pixel="true"] .repo-card:hover { border-color: var(--lavender); transform: none; }
:root[data-pixel="true"] .repo-icon {
  border-radius: 0;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--line);
}
:root[data-pixel="true"] :is(.tags span, .progress-label) {
  border-radius: 0;
  border-color: var(--line);
  padding-inline: .6rem;
}
:root[data-pixel="true"] :is(.button, .refresh, .story-button, .nav-contact, #reset-display, #avatar-toggle, #pixel-mode-toggle, #pixel-mode-exit) {
  border-radius: 0;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
:root[data-pixel="true"] :is(.button, .story-button, .refresh, .nav-contact):hover { border-color: var(--lavender); }
:root[data-pixel="true"] .primary { border-color: var(--lavender); box-shadow: 3px 3px 0 var(--pink); }
:root[data-pixel="true"] .primary:hover { border-color: var(--pink); }
:root[data-pixel="true"] :is(input, select) { border-radius: 0; border-width: 2px; }
:root[data-pixel="true"] #display-settings summary span { border-radius: 0; font-weight: 700; }
:root[data-pixel="true"] .content-tabs { gap: .4rem; padding-bottom: .5rem; border-bottom-style: dashed; }
:root[data-pixel="true"] .content-tabs button {
  border: 1px solid transparent;
  border-radius: 0;
  padding: .65rem .75rem;
}
:root[data-pixel="true"] .content-tabs button[aria-selected="true"] {
  border: 1px solid var(--lavender);
  background: var(--panel);
  box-shadow: 2px 2px 0 var(--line);
}
:root[data-pixel="true"] .small-note { transform: none; border: 2px solid var(--pink); box-shadow: 4px 4px 0 var(--line); }
:root[data-pixel="true"] .handwritten { font-size: 1.15rem; }
:root[data-pixel="true"] .contact { border-top: 2px dashed var(--line); }
:root[data-pixel="true"] .contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.4; }
:root[data-pixel="true"] .contact-links { gap: 1.35rem; }
:root[data-pixel="true"] .contact-links a {
  border-radius: 0;
  border-width: 2px;
  box-shadow: var(--pixel-edge);
}
:root[data-pixel="true"] .contact-links .icon-tooltip { border-radius: 0; }
:root[data-pixel="true"] #project-explorer { max-width: calc(100% - 2rem); }
:root[data-pixel="true"] #project-explorer::backdrop { backdrop-filter: none; }
:root[data-pixel="true"] #explorer-close { border-radius: 0; box-shadow: 3px 3px 0 var(--line); }
:root[data-pixel="true"] :is(.avatar-message, #avatar-hide, #avatar-motion) { border-radius: 0; box-shadow: 3px 3px 0 var(--line); }
:root[data-pixel="true"] .avatar-message { border-width: 2px; }
:root[data-pixel="true"] .listening-mark span { border-radius: 0; }

/* The exit is always available after the secret is discovered. */
:root[data-pixel="true"] #pixel-mode-exit {
  min-height: 44px;
  max-width: 100%;
  padding: .65rem 1rem;
  background: var(--panel);
  color: var(--text);
  font: .8rem/1.5 var(--sans);
  cursor: pointer;
}
:root[data-pixel="true"] #pixel-mode-exit:hover { border-color: var(--lavender); color: var(--lavender); }
:root[data-pixel="true"] #pixel-mode-toggle {
  min-height: 44px;
  max-width: 100%;
  padding: .65rem 1rem;
  background: transparent;
  color: var(--text);
  font: .8rem/1.5 var(--sans);
  cursor: pointer;
}

/* Reading preferences take priority over the Easter egg's typography. */
:root[data-pixel="true"][data-font="readable"] {
  --sans: Arial, Helvetica, sans-serif;
  --serif: Arial, Helvetica, sans-serif;
}
:root[data-pixel="true"][data-font="readable"] :is(h1, h2, h3, em, .signature, .handwritten) { letter-spacing: normal; }
:root[data-pixel="true"][data-size="125"] .repo-grid,
:root[data-pixel="true"][data-size="150"] .repo-grid { grid-template-columns: minmax(0, 1fr); }
:root[data-pixel="true"][data-size="150"] .now-section,
:root[data-pixel="true"][data-size="150"] .current-project { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 700px) {
  :root[data-pixel="true"] .hero h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  :root[data-pixel="true"] .signature { font-size: 1.1rem; }
  :root[data-pixel="true"] .hero .eyebrow { line-height: 1.8; }
  :root[data-pixel="true"] .now-section,
  :root[data-pixel="true"] .repo-grid { grid-template-columns: minmax(0, 1fr); }
  :root[data-pixel="true"] :is(.now-section, .repo-card, #project-explorer) { padding: 1.25rem; }
  :root[data-pixel="true"] .content-tabs button { padding: .65rem .6rem; }
  :root[data-pixel="true"] .repo-top { flex-wrap: wrap; gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-pixel="true"] .repo-card { transition: none; }
}
