:root {
  --aubergine: #2e1930;
  --text: #e9e4ea;
  --muted: #c8bccb;
  --max-width: 1500px;
  --photo-gap: 28px;
  --footer-height: 56px;
  --header-height: 64px;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--aubergine);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.1px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--footer-height);
  overflow-y: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 10;
  background: linear-gradient(180deg, rgba(46, 25, 48, 0.98), rgba(46, 25, 48, 0.65));
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-transform: none;
}

.logo-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.logo-image {
  width: 290px;
  height: auto;
  display: block;
}

.logo-link:focus-visible {
  outline: 2px solid rgba(233, 228, 234, 0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

.logo-script {
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.logo-sub {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--muted);
}

.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--photo-gap);
  align-items: center;
  align-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.photo {
  margin: 0;
  background: #201222;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.98);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  text-align: center;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 1.2px;
  font-weight: 400;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(46, 25, 48, 0.98), rgba(46, 25, 48, 0.65));
  z-index: 10;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  text-transform: none;
  font-variant-caps: normal;
  letter-spacing: 1.2px;
  transition: color 120ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 32px 140px;
  text-align: left;
}

.page h1 {
  margin: 0 0 26px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.page h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text);
}

.page h3 {
  margin: 16px 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text);
}

.page p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

.page a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 228, 234, 0.25);
  transition: color 120ms ease, border-color 120ms ease;
}

.page a:hover,
.page a:focus-visible {
  color: var(--text);
  border-color: rgba(233, 228, 234, 0.6);
}

.page-section {
  margin: 0 0 28px;
}

.footer-sep {
  margin: 0 12px;
  color: #8f8092;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-header {
    height: 58px;
    padding: 0 20px;
  }

  .gallery {
    padding: 12px 20px 72px;
    min-height: auto;
  }

  .page {
    padding: 72px 20px 60px;
  }

  .site-footer {
    position: static;
    height: auto;
    padding: 10px 20px 24px;
    margin-top: 8px;
    font-size: 15px;
    background: none;
  }

  .logo-image {
    width: 260px;
  }

  body {
    padding-bottom: 0;
  }
}
