:root {
  color-scheme: light;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.8;
  color: #262626;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  max-width: 728px;
  margin: clamp(48px, 12vh, 128px) auto;
  padding: 0 24px;
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

p { margin: 0 0 24px; }

a {
  color: #184cc5;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:visited { color: #51449a; }
a:hover { color: #102f80; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

nav { margin-top: 32px; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a { display: inline-block; padding: 8px 0; }

.site-header {
  max-width: 1104px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-header a:hover { text-decoration: underline; }
.site-nav { display: flex; gap: 24px; margin: 0; }
.site-nav [aria-current="page"] { font-weight: 700; }

.projects { max-width: 1008px; }
.projects h1 { margin-bottom: 20px; }
.page-intro { color: #595959; margin-bottom: 48px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.project-image {
  align-self: start;
  border: 1px solid #484d55;
  border-radius: 10px;
  overflow: hidden;
  background: #262b33;
  color: #f2f2f3;
}
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  background: #30353d;
  border-bottom: 1px solid #484d55;
  color: #c5c8ce;
  font-size: 11px;
  line-height: 1.4;
}
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff6059; }
.terminal-dots i:nth-child(2) { background: #ffbd2e; }
.terminal-dots i:nth-child(3) { background: #28c840; }
.terminal-content { padding: 20px 12px 16px; }
.project .terminal-prompt { font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.terminal-prompt span { color: #a8d58d; }
.project .terminal-caption { color: #c5c8ce; font-size: 11px; line-height: 1.6; margin-bottom: 8px; }
.terminal-equations {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 16px 0 8px;
  color: #fff;
}
.terminal-equations math {
  font-family: math;
  font-size: 23px;
  math-style: normal;
}

.project h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -0.035em; }
.project p { margin-bottom: 16px; }
.project-description { color: #595959; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.project .project-links { margin-bottom: 0; }
.link-placeholder { color: #707070; cursor: default; }

@media (max-width: 640px) {
  .site-header { padding: 16px 24px; gap: 12px; font-size: 14px; }
  .site-nav { gap: 16px; }
  .project { grid-template-columns: 1fr; gap: 24px; }
}
