:root {
  --primary: #52525b;
  --secondary: #fafafa;
  --accent: #0ea5e9;
  --text: #18181b;
  --bg: #ffffff;
}

body {
  background: #fafafa;
  color: #18181b;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

section {
  padding: 48px 16px;
}

.card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
}

.btn {
  border-radius: 4px;
  border: 1px solid #18181b;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Responsive typography using clamp */
body {
  font-size: clamp(14px, 1.2vw, 16px);
}

h1 {
  font-size: clamp(18px, 3vw, 24px);
}

h2 {
  font-size: clamp(16px, 2.5vw, 22px);
}

/* Accessibility hidden element helper */
.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 Specific Rules */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Keeps 1:1 aspect ratio */
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  background-color: #f4f4f5;
}

.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 button mechanics 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; }

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  width: 25%;
  aspect-ratio: 1 / 1;
  background-color: #f4f4f5;
  transition: border-color 0.2s ease;
}

.thumbnails label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlight Selected Thumbnail border */
#img-1:checked ~ .thumbnails label[for="img-1"] { border-color: var(--accent); }
#img-2:checked ~ .thumbnails label[for="img-2"] { border-color: var(--accent); }
#img-3:checked ~ .thumbnails label[for="img-3"] { border-color: var(--accent); }
#img-4:checked ~ .thumbnails label[for="img-4"] { border-color: var(--accent); }