:root {
  --accent: #b2ef8d;
  --bg: #0c100e;
  --surface: #111814;
  --text: #d7ded8;
  --muted: #91a095;
  --line: #2b3a30;
  --size: 15px;
  --font: Consolas, "Courier New", monospace;
  color-scheme: dark;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.preview-notice {
  border: 1px dashed var(--accent);
  padding: 14px;
  color: var(--accent);
  margin-top: 20px;
}
.project details h4 {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
}
.project details p {
  white-space: pre-line;
}
.field input[type="file"] {
  font-size: 0.75rem;
}
#owner-tools {
  max-height: 400px;
  overflow: auto;
}
#contact-form {
  max-width: 750px;
}
#message-status {
  margin-top: 15px;
}
.editor-actions {
  z-index: 2;
}
.credential-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.credential-filters button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}
.credential-filters span {
  opacity: 0.7;
  font-size: 0.7rem;
}
.credential-group {
  margin-top: 30px;
}
.credential-group h3 {
  text-transform: uppercase;
  font-size: 0.9rem;
}
.credential-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 20px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.credential-row h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.credential-row p {
  font-size: 0.8rem;
  margin: 4px 0;
}
.credential-issuer {
  color: var(--muted);
}
.credential-date {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--accent);
  max-width: 35%;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .credential-row {
    flex-direction: column;
    gap: 8px;
  }
  .credential-date {
    max-width: 100%;
  }
}
.tech-stack {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}
.tech-category h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.overview .tech-stack {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.academic-highlight {
  margin: 24px 0 30px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
}
.academic-highlight small {
  color: var(--accent);
}
.latin-honor {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  color: var(--accent);
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.academic-degree {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.academic-highlight .muted {
  margin-bottom: 0;
}
.now-panel {
  margin: 34px 0 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.now-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.now-heading .path {
  margin: 0;
}
.now-heading h3 {
  margin: 0;
  font-size: 1rem;
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.now-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  min-width: 0;
}
.now-item + .now-item {
  border-left: 1px solid var(--line);
}
.now-item:hover {
  background: #17251a;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.now-item small {
  color: var(--accent);
  text-transform: uppercase;
}
.now-item p {
  margin: 0;
  overflow-wrap: anywhere;
}
.now-item span {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: auto;
}
.editor-help {
  font-size: 0.75rem;
  margin: 12px 0 0;
}
@media (max-width: 700px) {
  .now-grid {
    grid-template-columns: 1fr;
  }
  .now-item + .now-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.journey-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 18px 0 8px;
  align-items: start;
}
.journey-gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.journey-gallery a:hover {
  border-color: var(--accent);
}
.journey-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}
.journey-gallery a:hover img {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .journey-gallery img {
    transition: none;
  }
  .journey-gallery a:hover img {
    transform: none;
  }
}
.hero .portrait {
  width: 100%;
  max-width: var(--portrait-size, 390px);
  justify-self: center;
}
.portrait-frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 7px var(--surface);
  overflow: hidden;
}
.portrait-frame .headshot {
  display: block;
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.portrait-caption {
  margin: 24px 10px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
@media (min-width: 701px) {
  main .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 55px;
  }
}
@media (max-width: 700px) {
  .hero .portrait {
    max-width: min(320px, var(--portrait-size, 390px));
  }
}
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.page-breadcrumb {
  padding-top: 36px;
  color: var(--muted);
  font-size: 0.8rem;
}
.page-breadcrumb a {
  color: var(--accent);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.summary-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--surface);
}
.summary-card:hover {
  border-color: var(--accent);
}
.summary-card h3 {
  margin-top: 20px;
}
.summary-card h3 span {
  color: var(--accent);
}
.summary-card p {
  font-size: 0.8rem;
  color: var(--muted);
}
.summary-link {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 20px;
}
@media (max-width: 800px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
#google-signin {
  margin: 0 0 22px;
  font-size: 0.8rem;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#auth {
  max-width: 470px;
}
#auth .field {
  margin-bottom: 18px;
}
#auth-status {
  color: var(--accent);
}
.editor-status:empty {
  display: none;
}
.editor-status:not(:empty) {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 8px 20px #0008;
  font-size: 0.85rem;
}
.editor-toolbar {
  position: sticky;
  bottom: -28px;
  z-index: 4;
  margin-top: 22px;
  padding: 14px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 -12px 20px var(--bg);
}
.editor-toolbar .editor-actions,
.editor-secondary-actions {
  display: grid;
  gap: 8px;
  background: transparent;
}
.editor-toolbar .editor-actions {
  position: static;
  bottom: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}
.editor-secondary-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}
.editor-toolbar button,
.editor-toolbar .button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 600px) {
  .editor-toolbar .editor-actions,
  .editor-secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-toolbar #publish {
    grid-column: 1/-1;
  }
}
.contact .links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--size)/1.7 var(--font);
}
body.scanlines:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, #0002 3px 4px);
  z-index: 10;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
.button {
  font: inherit;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 8px 13px;
  cursor: pointer;
  display: inline-block;
}
button:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.primary:hover {
  color: var(--bg);
  filter: brightness(1.1);
}
.topbar {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: bold;
  color: var(--accent);
  margin-right: auto;
}
nav {
  display: flex;
  gap: 23px;
  font-size: 0.8rem;
}
main,
.console,
footer {
  width: min(1050px, calc(100% - 64px));
  margin: auto;
}
section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}
.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 65px;
  padding-top: 72px;
}
.eyebrow,
small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.path {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
}
.path span {
  color: var(--muted);
}
h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.065em;
  margin: 17px 0 24px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 10px 0 28px;
}
h1.section-heading {
  font-size: 1.7rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 10px 0 28px;
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
p {
  margin: 0 0 18px;
  white-space: pre-line;
}
.muted,
.description {
  color: var(--muted);
}
.description {
  max-width: 650px;
}
.expandable-summary { margin-bottom: 24px; }
.summary-toggle { color: var(--accent); font-size: .8rem; padding: 8px 12px; }
.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.links a {
  border: 1px solid var(--line);
  padding: 9px 15px;
  font-size: 0.8rem;
}
.links a:first-child {
  border-color: var(--accent);
  color: var(--accent);
}
.identity {
  border: 1px solid var(--line);
  background: var(--surface);
}
.window-title {
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}
.identity-content {
  padding: 28px;
}
.avatar {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 20px;
}
.ascii {
  white-space: pre;
  text-align: center;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.25;
  margin: 10px 0 26px;
}
.key-value {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.key-value span:first-child {
  color: var(--muted);
  min-width: 65px;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  margin-top: 28px;
}
.metric {
  padding: 14px 20px;
  flex: 1;
  min-width: 120px;
  border-right: 1px solid var(--line);
}
.metric strong {
  display: block;
  color: var(--accent);
  font-size: 1.4rem;
}
.metric span {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}
.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 45px;
}
.record {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.record small {
  display: block;
  margin-bottom: 8px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 0.7rem;
  color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project {
  border: 1px solid var(--line);
  padding: 25px;
  background: var(--surface);
}
.project small {
  display: block;
  margin-bottom: 22px;
}
.project img {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}
.project a {
  display: inline-block;
  color: var(--accent);
  margin-top: 18px;
  font-size: 0.8rem;
}
.project p {
  font-size: 0.85rem;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.timeline article {
  position: relative;
  margin-bottom: 30px;
}
.timeline article:before {
  content: "+";
  position: absolute;
  left: -34px;
  top: 0;
  background: var(--bg);
  color: var(--accent);
}
.timeline small {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact {
  padding-bottom: 64px;
}
.console {
  border: 1px solid var(--line);
  padding: 0;
  margin-top: 35px;
  background: var(--surface);
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.65rem;
  color: var(--muted);
}
.console-bar button {
  border: 0;
  padding: 0;
  font-size: 0.65rem;
}
#output {
  padding: 16px;
  font-size: 0.8rem;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#command-form {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--accent);
}
#command {
  flex: 1;
  min-width: 30px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 45px;
  color: var(--muted);
  font-size: 0.65rem;
}
.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
dialog {
  width: min(780px, calc(100% - 24px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.editor-head h2 {
  margin: 8px 0 20px;
}
#editor .editor-head {
  position: sticky;
  top: -28px;
  z-index: 5;
  margin: -28px -28px 0;
  padding: 28px 28px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
#editor .editor-head h2 {
  margin-bottom: 0;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.field {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 10px;
  margin-top: 6px;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
}
.field.wide {
  grid-column: 1/-1;
}
.edit-record {
  border: 1px solid var(--line);
  padding: 14px;
  margin: 16px 0;
}
.edit-record .form-grid {
  margin: 0 0 12px;
}
.editor-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  bottom: -28px;
  background: var(--bg);
  padding: 18px 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  margin: 15px 0;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  display: none;
  z-index: 20;
  font-size: 0.8rem;
}
.empty {
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .topbar {
    padding: 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 0;
  }
  nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  main,
  .console,
  footer {
    width: calc(100% - 40px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 45px;
  }
  .identity {
    max-width: 430px;
  }
  .columns,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  section {
    padding: 40px 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.wide {
    grid-column: auto;
  }
  #command-form {
    flex-wrap: wrap;
  }
  #command-form label {
    width: 100%;
  }
  footer {
    flex-wrap: wrap;
  }
}
@keyframes terminal-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-enter {
    animation: terminal-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero > .portrait.motion-enter {
    animation-duration: 750ms;
  }
  .links a,
  button,
  .summary-card,
  .now-item,
  .project {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }
  .links a:active,
  button:active {
    transform: translateY(1px);
  }
  @media (hover: hover) and (pointer: fine) {
    .summary-card:hover,
    .now-item:hover,
    .project:hover {
      transform: translateY(-3px);
    }
    .links a:hover,
    button:hover {
      transform: translateY(-2px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
}
