/* TECH-MINIMAL Design System Overrides & Custom Styles */

:root {
  --primary: #f97316;
  --secondary: #ffedd5;
  --accent: #059669;
  --text: #7c2d12;
  --bg: #fafafa;
}

body {
  background: var(--bg);
  color: #18181b;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(14px, 1.2vw, 16px);
}

section {
  padding: 40px 16px;
}

@media (min-width: 768px) {
  section {
    padding: 64px 16px;
  }
}

.card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
}

.btn-cta {
  background-color: var(--accent);
  color: #ffffff !important;
  border-radius: 4px;
  border: 1px solid #18181b;
  font-weight: 600;
  min-height: 48px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cta:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(1px);
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(20px, 4vw, 28px);
}

h2 {
  font-size: clamp(18px, 3.5vw, 24px);
}

/* Strict Gallery CSS Implementation */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Strict height configuration */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Radio-based selectors to switch slides */
#img-1:checked ~ .gallery-main .slide-1 {
  opacity: 1;
  z-index: 10;
}
#img-2:checked ~ .gallery-main .slide-2 {
  opacity: 1;
  z-index: 10;
}
#img-3:checked ~ .gallery-main .slide-3 {
  opacity: 1;
  z-index: 10;
}
#img-4:checked ~ .gallery-main .slide-4 {
  opacity: 1;
  z-index: 10;
}

/* Active thumbnail border highlight */
#img-1:checked ~ .thumbnails label[for="img-1"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
#img-2:checked ~ .thumbnails label[for="img-2"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
#img-3:checked ~ .thumbnails label[for="img-3"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
#img-4:checked ~ .thumbnails label[for="img-4"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}