:root {
  --brand-brown: #544240;
  --brand-pink: #ef4682;
  --overlay: rgba(0, 0, 0, 0.28);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--brand-brown);
  font-family: var(--font-display);
  color: #111;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Carousel */

.carousel {
  position: relative;
  width: 100%;
  height: min(700px, 68vh);
  min-height: 380px;
  overflow: hidden;
}

.carousel-logo {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
}

.carousel-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.is-active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.slide-overlay--dark {
  background: rgba(0, 0, 0, 0.5);
}

.slide-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 24px;
  color: #fff;
  text-align: center;
  font-weight: 400;
  line-height: 1.3;
  font-size: clamp(44px, 8vw, 64px);
}

@media (max-width: 600px) {
  .slide-text .line-break {
    display: none;
  }

  .slide {
    opacity: 1;
    transition: transform 0.45s ease-in-out;
  }
}

.slide--hero .slide-text {
  font-size: clamp(88px, 20vw, 176px);
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #fff;
}

/* Newsletter */

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 106px 24px 96px;
  background: var(--brand-brown);
  text-align: center;
}

.newsletter-intro {
  max-width: 950px;
}

.newsletter h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 4.5vw, 48px);
  color: #fff;
}

.newsletter-subtext {
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 20px);
  color: #fff;
}

.newsletter-form {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.newsletter-form input {
  flex: 1 1 160px;
  height: 56px;
  padding: 0 20px;
  border: none;
  background: #fff;
  color: #2f2f2f;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
}

.newsletter-form input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mc-honeypot {
  position: absolute;
  left: -5000px;
}

.newsletter-submit {
  width: 100%;
  margin-top: 16px;
  min-height: 60px;
  padding: 8px 16px;
  border: none;
  background: var(--brand-pink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 32px);
  cursor: pointer;
}

.newsletter-submit:hover {
  filter: brightness(1.05);
}

.mc-branding {
  margin: 16px 0 0;
  font-size: 12px;
}

.mc-branding a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* Site footer */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 32px 40px;
  background: var(--brand-brown);
}

.footer-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  justify-self: start;
}

.footer-meta {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-meta .social-icons {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-meta .social-icons img {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
  }

  .footer-logo {
    justify-self: center;
  }
}

.copyright {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}
