:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #777;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--ink); }

main { padding: 2.5rem 2.5rem 0; }

.collection { margin-bottom: 4rem; }

.collection-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.gallery {
  column-count: 3;
  column-gap: 2rem;
}

.gallery figure {
  margin: 0 0 2rem;
  break-inside: avoid;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  background: #f4f4f4;
  transition: opacity 0.3s, transform 0.3s;
}

@media (max-width: 900px) {
  .gallery { column-count: 2; }
}

@media (max-width: 560px) {
  .gallery { column-count: 1; }
}

.gallery figure:hover img {
  opacity: 0.92;
  transform: translateY(-3px);
}

.gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 900px;
  margin: 2rem auto 5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.about-photo {
  flex: 1 1 240px;
  max-width: 320px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.about-text {
  flex: 2 1 320px;
}

.about-text h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0;
}

.about-text h2:not(:first-child) { margin-top: 2rem; }

.about-text a { color: var(--ink); }

.signup {
  border-top: 1px solid #eee;
  padding: 4rem 2.5rem;
  text-align: center;
}

.signup h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.signup > p {
  margin: 0 auto 1.75rem;
  max-width: 420px;
  color: var(--ink);
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--ink);
}

.signup-form button {
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.signup-form button:hover { opacity: 0.85; }

.signup-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.signup-status {
  min-height: 1.2em;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.signup-status.success { color: #1a7f37; }
.signup-status.error { color: #b3261e; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  border-top: 1px solid #eee;
  padding: 2rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .site-header { padding: 1.25rem 1.25rem; }
  .site-header nav a { margin-left: 1rem; }
  main { padding: 1.25rem 1.25rem 0; }
}
