@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&display=swap");

:root {
  --ink: #412903;
  --link: #666;
  --linkHover: #888;
  --max: 1300px;
}

html,
body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  font-family: "EB Garamond", serif;
  padding: 20px;
  max-width: var(--max);
}

header {
  margin: 15px auto 10px;
  text-align: center;
}

header img {
  max-width: 100%;
  height: auto;
}

a,
a:visited {
  color: var(--link);
  text-decoration: none;
}
a:hover,
a:active {
  color: var(--linkHover);
  text-decoration: underline;
}

h1 {
  color: var(--ink);
  font-size: 20.83px;
  text-align: left;
  margin: 30px 0 15px;
  font-weight: normal;
  text-transform: uppercase;
}

h2 {
  color: var(--ink);
  font-size: 18.75px;
  text-align: center;
  margin: 15px auto 60px;
  font-weight: normal;
}

/* --- Carousel (no JS) --- */
.slideshow {
  width: 100%;
  margin: 30px auto;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
}

.carousel img {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  scroll-snap-align: center;
  border: 0;
}

/* --- Bio layout --- */
.bio {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 30px;
  align-items: start;
  margin: 10px 0 0;
}

.bio-butterfly {
  background: transparent
    url("./assets/laurie-steichen-design-bio-butterfly.jpg") no-repeat top left /
    cover;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.bio-photo {
  background: transparent url("./assets/laurie-steichen-design-bio-laurie.jpg")
    no-repeat top right / cover;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.bio-text {
  width: 100%;
}

footer {
  height: 50px;
  margin: 25px auto 15px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .bio {
    grid-template-columns: 1fr;
  }
  .bio-butterfly,
  .bio-photo {
    max-width: 420px;
    margin: 0 auto;
  }
}
