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

body {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  line-height: 1.7;
  color: #bfbfbf;
  background: #1e1f22;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.left-column section {
  margin-bottom: 0;
}

.grid > section:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
}

.grid > section:nth-of-type(2) {
  grid-column: 1 / 3;
  grid-row: 2;
}

::selection {
  background: #c75450;
  color: #fff;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.tagline {
  color: #6a8759;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

section {
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: #2b2d30;
  border-radius: 8px;
  border: 1px solid #393b40;
  transition: border-color 0.2s ease;
}

section:hover {
  border-color: #4e5157;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c75450;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: '//';
  color: #5e6060;
}

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #393b40;
  transition: border-color 0.2s ease;
}

li:last-child { margin-bottom: 0; }

a {
  color: #6897bb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a9d4f5;
}

.project-title {
  font-weight: 500;
  color: #ffc66d;
  display: block;
  margin-bottom: 0.25rem;
}

.project-title:hover {
  color: #ffe8a3;
}

.project-desc {
  color: #808080;
  font-size: 0.875rem;
  margin-bottom: 0;
}

li img {
  max-width: 50%;
  height: auto;
  border-radius: 4px;
  margin: 0.5rem 0;
}

.embed-itch {
  width: 100%;
  max-width: 552px;
  height: 167px;
  border: none;
  border-radius: 4px;
}

.embed-steam {
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: none;
  border-radius: 4px;
}

.embed-github {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.embed-github:hover {
  border-color: #6897bb;
}

.github-icon {
  color: #c9d1d9;
}

.github-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.github-repo {
  color: #58a6ff;
  font-weight: 600;
  font-size: 1rem;
}

.github-desc {
  color: #c9d1d9;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.github-lang {
  color: #c9d1d9;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.github-stars,
.github-forks {
  color: #8b949e;
  font-size: 0.75rem;
}

.github-tag {
  background: #388bfd26;
  color: #58a6ff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.embed-squidypal {
  display: block;
  padding: 1.25rem;
  background: #1e1f22;
  border: 1px solid #393b40;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.embed-squidypal:hover {
  border-color: #c75450;
}

.squidypal-header {
  margin-bottom: 0.75rem;
}

.squidypal-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.squidypal-tagline {
  color: #6a8759;
  font-size: 0.85rem;
}

.squidypal-about {
  color: #bfbfbf;
  font-size: 0.85rem;
}

.squidypal-about p {
  margin-bottom: 0.25rem;
}

.embed-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0;
}

.embed-itch,
.embed-steam {
  display: block;
}

.code-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1f22;
  border: 1px solid #393b40;
  border-radius: 4px;
  z-index: 10;
  padding: 0.75rem;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.code-overlay pre {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.75rem;
  color: #6a8759;
  margin: 0;
  white-space: pre-wrap;
}

.code-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-links a {
  padding: 0.4rem 0;
  position: relative;
}

.contact-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #6897bb;
  transition: width 0.2s ease;
}

.contact-links a:hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .left-column,
  .grid > section {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  body { padding: 2rem 1rem; }
  section { padding: 1rem; }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid section:nth-child(1),
  .grid section:nth-child(2),
  .grid section:nth-child(3),
  .grid section:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
}
