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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 1rem 0;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  color: #79c0ff;
}

.terminal {
  max-width: 1000px;
  margin: 0 auto;
  background: #161b22;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #30363d;
  overflow: hidden;
}

.terminal-header {
  background: #21262d;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #30363d;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn.close {
  background: #ff5f56;
}

.btn.minimize {
  background: #ffbd2e;
}

.btn.maximize {
  background: #27ca3f;
}

.terminal-title {
  color: #8b949e;
  font-size: 0.9rem;
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.terminal-title a {
  color: inherit;
  text-decoration: none;
}

.terminal-body {
  padding: 2rem;
  min-height: 60vh;
}

.links {
  margin-top: 3rem;
}

.link {
  display: inline-block;
  margin-bottom: 0.5rem;
  margin-right: 2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.link:hover {
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

.ascii-art {
  color: #7c3aed;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.ascii-mobile {
  display: none;
}

.matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  overflow: hidden;
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-size: 14px;
  color: #0f0;
  animation: matrix 10s linear infinite;
}

@keyframes matrix {
  to {
    top: 100%;
  }
}

.recipe-content {
  line-height: 1.8;
  color: #c9d1d9;
}

.recipe-title {
  font-size: 1.6rem;
  color: #7c3aed;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.recipe-emoji {
  font-size: 2rem;
}

.recipe-media {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  align-items: flex-start;
  justify-content: center;
}

.recipe-video {
  flex-shrink: 0;
}

.recipe-video iframe {
  border-radius: 12px;
  border: 1px solid #30363d;
  max-width: 100%;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-width: 400px;
}

.photo-strip img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #30363d;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-strip img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recipe-hero {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #30363d;
}

.recipe-gallery {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.recipe-gallery img {
  height: 260px;
  width: auto;
  border-radius: 8px;
  border: 1px solid #30363d;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.recipe-intro p {
  margin-bottom: 1rem;
}

.time-info {
  color: #8b949e;
  font-size: 0.9rem;
  margin: 1.5rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid #30363d;
  border-bottom: 1px solid #30363d;
}

.recipe-section {
  margin: 1.5rem 0;
}

.section-title {
  font-size: 1.2rem;
  color: #58a6ff;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.group-title {
  font-size: 1.1rem;
  color: #79c0ff;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.step-list {
  list-style: none;
  counter-reset: step-counter;
  margin-left: 0;
  padding-left: 0;
}

.step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 0.5rem;
  color: #c9d1d9;
  line-height: 1.5;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter) '.';
  position: absolute;
  left: 1rem;
  color: #58a6ff;
  font-weight: 700;
  font-size: 1.1rem;
}

.step strong,
.ingredient strong {
  color: #f97316;
  font-weight: 600;
}

.note {
  color: #8b949e;
  font-style: italic;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.recipe-section .shopping-list-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.ingredient {
  padding: 0.25rem 0;
}

.section-content p {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #58a6ff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

.post {
  line-height: 1.8;
  color: #c9d1d9;
}

.post-title {
  font-size: 1.6rem;
  color: #7c3aed;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.post-meta {
  color: #8b949e;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.post-content > * {
  margin-bottom: 1.25rem;
}

.post-content h2 {
  color: #58a6ff;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.post-content ul {
  padding-left: 1.5rem;
}

.recipe-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.recipe-lightbox.is-active {
  display: flex;
}

.recipe-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 1px solid #30363d;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #8b949e;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #c9d1d9;
  font-size: 2rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.lightbox-nav-prev {
  left: 30px;
}

.lightbox-nav-next {
  right: 30px;
}

.recipe-list {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-card {
  background: #1c2128;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  background: #22272e;
  border-color: #58a6ff;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.15);
}

.recipe-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.recipe-card-title {
  font-size: 1.2rem;
  color: #58a6ff;
}

.recipe-card-summary {
  color: #8b949e;
  line-height: 1.6;
}

.recipe-card-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #7d8590;
}

/* Homepage columns */
.homepage-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.column-title {
  color: #7c3aed;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.home-recipe-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  color: #58a6ff;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.home-recipe-link:hover {
  color: #79c0ff;
  padding-left: 0.5rem;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.recipe-emoji {
  font-size: 1.3rem;
}

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

.contact-links .link {
  display: inline-block;
  padding: 0.15rem 0;
}

.home-post-link {
  display: block;
  padding: 0.5rem 0;
  color: #8b949e;
  transition: color 0.2s ease, padding-left 0.2s ease;
  border-bottom: 1px solid #30363d;
}

.home-post-link:hover {
  color: #58a6ff;
  padding-left: 0.5rem;
}

.writing-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .terminal {
    margin: 1rem;
  }

  .terminal-body {
    padding: 1.25rem;
  }

  .ascii-art {
    font-size: 0.6rem;
  }

  .ascii-mobile {
    display: block;
  }

  .ascii-desktop {
    display: none;
  }

  .recipe-gallery {
    justify-content: center;
  }

  .recipe-gallery img {
    height: 200px;
  }

  .recipe-media {
    flex-direction: column;
    gap: 1rem;
  }
  
  .photo-strip {
    max-width: 100%;
  }
  
  .recipe-section .shopping-list-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
  }
  
  .homepage-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
