/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header .header-title {
  font-weight: 400;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-weight: 300;
  font-size: 1rem;
  color: #555;
}

/* Featured */
.featured {
  background-color: #e8e8e8;
  padding: 2rem 1rem;
}

.featured-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-images {
  flex: 1;
  min-width: 280px;
}

.featured-main-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.featured-text {
  flex: 1;
  min-width: 280px;
}

.featured-label {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  display: block;
  margin-bottom: 0.35rem;
}

.featured-text h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.featured-summary {
  font-weight: 300;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.featured-specs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 300;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.featured-price {
  font-weight: 400;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 0.75rem;
}

.featured-details {
  list-style: none;
  margin-bottom: 1rem;
}

.featured-details li {
  position: relative;
  padding-left: 0.9rem;
  font-weight: 300;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.featured-details li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #111;
}

.featured-cta {
  font-weight: 400;
  font-size: 0.95rem;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.featured-cta:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .featured-inner {
    flex-direction: column;
    text-align: left;
  }
}

/* Gallery */
.section-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 0.25rem;
}

.section-header h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.section-header p {
  font-weight: 300;
  font-size: 0.95rem;
  color: #555;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-content section {
  margin-top: 2rem;
}

.page-content h2 {
  font-weight: 400;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.page-content h4 {
  font-weight: 400;
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.page-content p,
.page-content li {
  font-weight: 300;
  font-size: 1rem;
  color: #555;
}

.page-content p {
  margin-bottom: 0.8rem;
}

.page-content ul {
  margin: 0.25rem 0 0 1.2rem;
}

.page-content li {
  margin-bottom: 0.45rem;
}

.page-content a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px dotted #111;
}

.page-content a:hover {
  opacity: 0.7;
}

.page-content .page-note {
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
}

.projects-list .project-list-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.25rem;
}

.projects-list .project-list-item img {
  width: 96px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.projects-list .project-list-item > div {
  display: flex;
  flex-direction: column;
}

.projects-list .project-list-item h4 {
  margin-top: 0;
}

@media (max-width: 480px) {
  .projects-list .project-list-item {
    grid-template-columns: 72px 1fr;
    gap: 0.8rem;
  }

  .projects-list .project-list-item img {
    width: 72px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 1rem;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

/* Hover effect for desktop */
@media(min-width: 768px){
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px){
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Zines */
.zines {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.zines-title {
  font-weight: 400;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.zines-intro {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 2rem;
}

.zines-intro p {
  margin-bottom: 0.8rem;
}

.zines-intro p:last-child {
  margin-bottom: 0;
}

.zines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.zine-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.zine-card-green {
  background: rgba(170, 166, 155, 0.2);
}

.zine-card-white {
  background: rgba(169, 189, 193, 0.2);
}

.zine-card-postponed {
  background: rgba(94, 94, 91, 0.16);
}

.zine-card-rijplek {
  background: rgba(45, 63, 155, 0.1);
}

.zine-card-panoramic {
  background: rgba(0, 0, 0, 0.03);
}

.zine-card:hover {
  opacity: 0.7;
}

.zine-card:focus-visible {
  opacity: 0.7;
  outline: 2px solid #1a1a1a;
  outline-offset: 4px;
}

.zine-cover-wrap {
  position: relative;
}

.zine-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  display: block;
}

.zine-cover.zine-cover-sticker {
  object-fit: contain;
  background: rgb(45, 63, 155);
}

.zine-cover.zine-cover-contain {
  object-fit: contain;
  background: #fff;
}

.zine-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.zine-badge-available {
  background: #3B5AA8;
  color: #ffffff;
}

.zine-badge-sold-out {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.zine-badge-coming-soon {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
}

.zine-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.9rem 0.9rem;
}

.zine-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.zine-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666666;
}

.zine-meta {
  font-size: 0.85rem;
  color: #666666;
}

.zine-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
}

@media (min-width: 600px) {
  .zines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 901px) {
  .zines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Subscribe */
.subscribe {
  padding: 2rem 1rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-desc {
  font-weight: 300;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscribe-form input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #111;
}

.subscribe-form input::placeholder {
  color: #999;
}

.subscribe-form input:focus {
  outline: none;
  border-color: #111;
}

.subscribe-form input[type="submit"] {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.subscribe-form input[type="submit"]:hover {
  opacity: 0.85;
}

.subscribe-note {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: #555;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-weight: 300;
}

footer a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px dotted #111;
}

/* Clicked image enlarge (JS) */
img.enlarged {
  transform: scale(1.05);
  z-index: 10;
}

/* Header flex layout */
header .header-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

header .header-home-link {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

header .header-home-link:hover {
  opacity: 0.85;
}

header .profile-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

header .header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Текст внутри блока остаётся слева */
}

header .header-title {
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

header p {
  font-weight: 300;
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.25rem;
  text-align: left;
}

header .header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

header .header-nav a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px dotted #111;
  font-weight: 300;
  font-size: 1rem;
}

header .header-nav a:hover {
  opacity: 0.7;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  header .header-content {
    flex-direction: column;
    align-items: center; /* центрируем на мобилках */
  }

  header .profile-photo {
    width: 60px;
    height: 60px;
  }

  header .header-text {
    align-items: center; /* текст по центру на мобильных */
  }

  header .header-nav {
    justify-content: center;
  }

  header .header-title {
    font-size: 1.5rem;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
