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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: #020202;
  color: #f5f5f5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
}

.page-projects .projects-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}

.page-projects .hero {
  flex: 0;
  margin-bottom: 1.5rem;
}

.section.section-projects {
  margin-top: 1.75rem;
}

.terminal-line {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0.03em;
  color: #f5f5f5;
  display: flex;
  align-items: center;
}

.prompt {
  color: #7cffb2;
  margin-right: 0.4rem;
}

#typed-text {
  white-space: pre;
}

.cursor {
  width: 0.6rem;
  height: 1.2em;
  margin-left: 0.15rem;
  background-color: #f5f5f5;
  display: inline-block;
  animation: blink 1s steps(1, end) infinite;
}

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

.links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.95rem;
  width: 100%;
}

.links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 0;
  color: #b3b3b3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.15rem 0 0.2rem;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background-color: #f5f5f5;
  opacity: 0.16;
}

.links a:hover::after,
.links a:focus-visible::after {
  opacity: 0.45;
}

.links a:hover,
.links a:focus-visible {
  color: #f5f5f5;
}

.links a:focus-visible {
  outline: 1px solid #f5f5f5;
  outline-offset: 4px;
}

.links.links--bottom {
  margin-top: 3rem;
  /* keep same spacing/design as landing page; only shift it down */
}

.section {
  margin-top: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.section.section-research {
  margin-top: 0.3rem;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #b3b3b3;
  margin-bottom: 1.5rem;
}

.project-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.project-image-wrap {
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #050505;
  border: 1px solid rgba(245, 245, 245, 0.12);
  height: 230px;
}

.project-image-wrap img {
  display: block;
  max-height: 100%;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.project-text h2 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.project-text p {
  font-size: 0.9rem;
  color: #d0d0d0;
  max-width: 32rem;
}

.project-arrow {
  appearance: none;
  border: 1px solid rgba(245, 245, 245, 0.4);
  background: transparent;
  color: #f5f5f5;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.project-arrow:hover,
.project-arrow:focus-visible {
  background-color: rgba(245, 245, 245, 0.07);
}

.project-arrow:focus-visible {
  outline: 1px solid #f5f5f5;
  outline-offset: 3px;
}

.project-indicator {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #aaaaaa;
}

.pub-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.pub-item {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e0e0e0;
  margin-bottom: 0.9rem;
}

.pub-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 1.5rem;
  color: #f5f5f5;
  line-height: 1;
}

.pub-title span {
  display: block;
  font-weight: 500;
  color: #ffffff;
}

.pub-meta {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: #aaaaaa;
}

.pub-links {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.pub-links a {
  color: #f5f5f5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.pub-links a:hover,
.pub-links a:focus-visible {
  color: #ffffff;
}

.link-label {
  flex: 1;
}

.link-icon {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .page {
    padding: 1.75rem 1.25rem;
  }

  .links {
    gap: 1rem;
  }
}


