/*──────────────────────────────────────────────
  Variables & Global Helpers
──────────────────────────────────────────────*/
:root {
  --space: 2rem;
}

html {
  scroll-behavior: smooth;
}

.page-padding {
  padding-inline: var(--space);
}

.full‑bleed {
  width: calc(100% + (var(--space) * 2));
  margin-inline: calc(-1 * var(--space));
  height: 0;
  border: none;
  border-top: 2px solid #000;
}

/*──────────────────────────────────────────────
  Sticky Header (Title) with Navigation
──────────────────────────────────────────────*/
.site-header {
  padding-block: 0.8rem 0.8rem;
  padding-inline: var(--space);
  text-align: left;
  position: sticky;
  top: 0;
  background-color: #fede00;
  z-index: 900;
  border-bottom: 2px solid #000;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 4rem;
  height: auto;
}

#typed-title {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 500;
  text-align: left;
  margin: 0;
}

.header-nav {
  display: flex;
  gap: 1rem;
  padding: 1rem var(--space);
  flex-shrink: 0;
  background-color: #fede00;
  border-bottom: 2px solid #000;
  justify-content: center;
}

.nav-button {
  background: #000;
  color: #fede00;
  border: 2px solid #000;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-button:hover {
  background: #fede00;
  color: #000;
}

@media (max-width: 900px) {
  .site-header {
    padding-block: 0.5rem;
  }
  
  #typed-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  
  .header-nav {
    padding: 0.5rem var(--space);
    gap: 0.5rem;
  }
  
  .nav-button {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}

@media (max-width: 600px) {
  #typed-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }
  
  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-button {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/*──────────────────────────────────────────────
  Intro Section (Text + Image)
──────────────────────────────────────────────*/
.intro-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-block: 0;
}

.intro-text {
  flex: 1;
  text-align: right;
  font-size: clamp(2rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  font-weight: 500;
  padding: 2.5rem;
}

.intro-image {
  flex: 1;
  margin-right: calc(-1 * var(--space));
}

.intro-image img {
  width: 120%;
  height: 120%;
  max-height: 80vh;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/*──────────────────────────────────────────────
  Divider Tweaks
──────────────────────────────────────────────*/
.site-header + .full‑bleed {
  margin-block-start: 0.5rem;
}

.intro-section + .full‑bleed {
  margin-block-end: 0.5rem;
}

/*──────────────────────────────────────────────
  Ticker Section
──────────────────────────────────────────────*/
.ticker {
  padding-block: 3.5rem;
  margin-block: 2rem 1.5rem;
  overflow: hidden;
  width: 100%;
  position: sticky;
  top: 0;
  background-color: #fede00;
  z-index: 1000;
  border-bottom: 2px solid #000;
}

.ticker__move {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  font-weight: 700;
  letter-spacing: 1px;
}

.ticker__move span {
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-transform: uppercase;
  color: #000;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/*──────────────────────────────────────────────
  Print Grid Layout
──────────────────────────────────────────────*/
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.print-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.print-item:hover {
  transform: translateY(-2px);
}

.print-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.print-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.print-item:hover .print-image-wrapper img {
  transform: scale(1.05);
}

.print-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.25s ease;
  padding: 0 0.5em;
}

.print-image-wrapper:hover .print-overlay {
  opacity: 1;
}

/*──────────────────────────────────────────────
  Responsive Gallery Grid (for other galleries)
──────────────────────────────────────────────*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  max-width: 85vw;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gallery img {
  width: 100%;
  max-width: 700px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

/*──────────────────────────────────────────────
  Like Button
──────────────────────────────────────────────*/
.like-button {
  margin: 0.5rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  background: #fede00;
  color: #222;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.like-button.liked {
  color: #000;
  font-weight: bold;
}

.like-count {
  margin-left: 0.2rem;
  font-size: 0.85rem;
}

/*──────────────────────────────────────────────
  Projects Section Redesign
──────────────────────────────────────────────*/
.project-block {
  margin-block: 3rem;
}

.project-block h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #000;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-image-section {
  position: relative;
  width: 100%;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-code-section {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
}

.project-code-section pre {
  margin: 0;
  background: none;
}

.project-code-section code {
  color: #333;
}

@media (max-width: 900px) {
  .project-block h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .project-code-section {
    padding: 1.5rem;
    font-size: 0.8rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
}

/*──────────────────────────────────────────────
  Flickity Carousels
──────────────────────────────────────────────*/
.print-carousel {
  margin-block: 1.5rem;
}

.print-carousel .carousel-cell {
  width: 70%;
  max-width: 400px;
  margin-right: 10px;
}

.print-carousel img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.code-snippet-carousel .carousel-cell {
  width: 90%;
  max-width: 600px;
  margin-right: 12px;
  background: #1e1e1e;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
}

.code-snippet-carousel pre {
  margin: 0;
  font-size: 0.9rem;
  background: none;
}

.carousel-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  text-align: center;
  color: #ccc;
}

/*──────────────────────────────────────────────
  Misc Tweaks
──────────────────────────────────────────────*/
.typed-cursor {
  display: none;
}

/*──────────────────────────────────────────────
  Mailing List Signup Box
──────────────────────────────────────────────*/
.mailing-list-section {
  background: #fffbe6;
  border: 2px solid #fede00;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  max-width: 480px;
  margin: 3rem auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
}
.mailing-list-title {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.mailing-list-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.mailing-list-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.mailing-list-form input[type="text"],
.mailing-list-form input[type="email"] {
  padding: 0.7rem 1rem;
  border: 1.5px solid #fede00;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #222;
  transition: border 0.2s;
}
.mailing-list-form input:focus {
  outline: none;
  border-color: #000;
}
.mailing-list-submit {
  background: #fede00;
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, color 0.2s;
}
.mailing-list-submit:hover,
.mailing-list-submit:focus {
  background: #000;
  color: #fede00;
}
.mailing-list-message {
  min-height: 1.5em;
  margin-top: 0.5em;
  font-size: 1rem;
  color: #008000;
  font-weight: 500;
  text-align: center;
}
@media (max-width: 600px) {
  .mailing-list-section {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .mailing-list-title {
    font-size: 1.1rem;
  }
  .mailing-list-form input,
  .mailing-list-submit {
    font-size: 1rem;
  }
}

/*──────────────────────────────────────────────
  Mobile Responsiveness
──────────────────────────────────────────────*/
@media (max-width: 900px) {
  .intro-section {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 0;
  }
  .intro-text {
    text-align: center;
    padding: 1.2rem 0.5rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
  }
  .intro-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .print-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 95vw;
  }
  .site-header {
    font-size: 1.2rem;
    padding-block: 0.5rem 0.5rem;
  }
  

}

@media (max-width: 600px) {
  :root {
    --space: 0.7rem;
  }
  .intro-section {
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  .intro-text {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
  .intro-image img {
    width: 100%;
    height: auto;
    max-height: 40vh;
  }
  .print-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 98vw;
  }
  .site-header {
    font-size: 1rem;
    padding-block: 0.3rem 0.3rem;
  }
  .ticker {
    font-size: 1rem;
    padding-block: 1rem;
  }
  .like-button {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
}
