:root {
  --background: #050807;
  --text: #d8ecff;
  --muted: #8fa6b8;
  --accent: #7CCBFF;
  --border: rgba(124, 203, 255, 0.25);
  --current: #7CFF9B;
  --status-development: #ffb86c;
  --status-live: #7CFF9B;
  --status-paused: #c792ea;
  --status-archived: #8fa6b8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (pointer: fine) {
  html,
  body,
  a {
    cursor: none;
  }
}

body {
  font-family: "IBM Plex Mono", "Courier New", Courier, monospace;
  background-color: #050807;
  background-image:
    radial-gradient(circle at center, rgba(80, 180, 255, 0.08), transparent 55%);
  background-size: cover;
  color: #d8ecff;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  margin: 0;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(124, 203, 255, 0.035), transparent 2px);
  background-size: 100% 4px;
  background-position: 0 0;
  animation: breath 5s ease-in-out infinite;
  opacity: 1;
}

@keyframes breath {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

h1,
h2,
h3 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.link-icon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

.external-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.external-link:hover,
.external-link:focus-visible {
  color: var(--text);
}

.external-link svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 6px;
}

.site-shell {
  position: relative;
  width: min(100% - 32px, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 24px;
}

@media (max-width: 640px) {
  .site-shell {
    padding-top: 32px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.site-shell::before {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 203, 255, 0.4);
}

.content-section::before {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 203, 255, 0.4);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 3fr) minmax(max-content, 1fr);
  align-items: center;
  gap: 48px;
}

.header-meta {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-meta time {
  color: var(--text);
}

.time-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.time-status span {
  width: 7px;
  height: 7px;
  background: var(--current);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124, 255, 155, 0.65);
  animation: status-blink 2.5s ease-in-out infinite;
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 12px 48px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.site-nav a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 140ms ease, transform 140ms ease;
}

.site-nav a::before {
  content: ">";
  position: absolute;
  right: 100%;
  color: var(--accent);
  opacity: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  transform: translateX(0.35rem);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
  opacity: 1;
}

.site-nav:not(:hover):not(:focus-within) a.is-current {
  color: var(--text);
  transform: translateX(0.35rem);
}

.site-nav:not(:hover):not(:focus-within) a.is-current::before {
  opacity: 1;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 32px;
  }

  .site-nav {
    gap: 18px 32px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .site-nav {
    grid-column: 1 / -1;
  }
}

.intro-section {
  max-width: 100%;
  margin-top: 96px;
  color: var(--muted);
  font-size: 1rem;
}

.content-section {
  max-width: 100%;
  min-height: 220px;
  margin-top: 90px;
  scroll-margin-top: 64px;
}

.education-section {
  min-height: auto;
  margin-top: 112px;
}

.site-footer {
  margin-top: 96px;
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.site-footer::before {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 203, 255, 0.4);
}

.site-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  color: var(--muted);
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(4px);
  transition: color 140ms ease, opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--text);
}

.experience-list {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.experience-group {
  display: grid;
  gap: 20px;
}

.experience-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  color: var(--muted);
}

.experience-item time,
.project-item time {
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: nowrap;
}

.experience-item time span,
.project-item time span {
  display: block;
}

.experience-role {
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.experience-role:has(+ ul) {
  margin-bottom: 12px;
}

.education-major {
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.experience-status {
  color: var(--current);
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.experience-group .experience-item + .experience-item .experience-role {
  margin-top: 0;
}

.project-list {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.project-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  color: var(--muted);
}

.project-status {
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.status-development {
  color: var(--status-development);
}

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

.status-paused {
  color: var(--status-paused);
}

.status-archived {
  color: var(--status-archived);
}

.project-role {
  color: var(--text);
  margin-top: 4px;
  margin-bottom: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-role:has(+ ul) {
  margin-bottom: 12px;
}

.contact-table {
  width: 100%;
  max-width: 680px;
  margin-top: 32px;
  border-collapse: collapse;
  color: var(--muted);
}

.contact-table th,
.contact-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.contact-table th {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.contact-table a {
  color: var(--muted);
  text-decoration: none;
}

.contact-table a:hover,
.contact-table a:focus-visible {
  color: var(--text);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-link .link-icon {
  color: var(--accent);
  line-height: 1;
}

.contact-table td:first-child,
.contact-table td:last-child {
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .site-shell {
    width: min(100% - 20px, 1280px);
  }

  .site-header {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 22px;
  }

  .site-title {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .header-meta {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 0.875rem;
  }

  .header-meta {
    font-size: 0.75rem;
  }

  .intro-section {
    margin-top: 72px;
  }

  .content-section {
    min-height: auto;
    margin-top: 72px;
    scroll-margin-top: 32px;
  }

  .education-section {
    margin-top: 84px;
  }

  .experience-list,
  .project-list {
    gap: 28px;
    margin-top: 24px;
  }

  .experience-group {
    gap: 18px;
  }

  .experience-item,
  .project-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-item time,
  .project-item time {
    display: inline-flex;
    gap: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .experience-item time span,
  .project-item time span {
    display: inline;
  }

  .experience-item time span:nth-child(1),
  .project-item time span:nth-child(1) {
    order: 3;
  }

  .experience-item time span:nth-child(2),
  .project-item time span:nth-child(2) {
    order: 2;
  }

  .experience-item time span:nth-child(3),
  .project-item time span:nth-child(3) {
    order: 1;
  }

  .contact-table {
    display: block;
    max-width: 100%;
  }

  .contact-table thead {
    display: none;
  }

  .contact-table tbody,
  .contact-table tr,
  .contact-table td {
    display: block;
  }

  .contact-table tr {
    border: 1px solid var(--border);
  }

  .contact-table tr + tr {
    border-top: 0;
  }

  .contact-table th,
  .contact-table td {
    border: 0;
    padding: 8px;
  }

  .contact-table td:first-child {
    color: var(--accent);
    padding-bottom: 0;
  }

  .contact-table td:nth-child(2) {
    padding-top: 0;
    padding-bottom: 0;
    overflow-wrap: anywhere;
  }

  .contact-table td:last-child {
    padding-top: 0;
    font-size: 0.75rem;
  }

  .site-footer {
    margin-top: 72px;
  }

  .site-footer-row {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    font-size: 0.75rem;
  }
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 1.25px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(124, 203, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  will-change: transform;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 21;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124, 203, 255, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  will-change: transform;
}

.cursor-active .cursor-ring,
.cursor-active .cursor-dot {
  opacity: 0.9;
}

::selection {
  background: var(--accent);
  color: var(--background);
}
