:root {
  color-scheme: light;
  --paper: #faf3ec;
  --cream: #fffaf5;
  --ink: #34211f;
  --muted: #644d47;
  --berry: #7a2b42;
  --berry-dark: #5b1b2e;
  --rule: #d5bcb0;
  --button-border: #bb9b90;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: radial-gradient(ellipse at 12% 43%, var(--cream), transparent 60%);
}

.page-width {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 5rem), 76rem);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 4.75rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--rule);
}

.masthead p {
  margin: 0;
  font-size: .875rem;
}

.masthead-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--berry);
  font-weight: 600;
}

.masthead-label svg {
  flex: none;
}

.masthead-domain {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 6.25vw, 6.25rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5.4vh, 4.5rem);
}

.intro {
  padding-block: .5rem;
}

.launch-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 clamp(1rem, 2.15vw, 1.8rem);
  color: var(--berry);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.launch-note::before {
  width: 1.65rem;
  height: 1px;
  flex: none;
  background: currentColor;
  content: "";
}

h1 {
  margin: 0;
  font: 400 clamp(3.75rem, 7.25vw, 7rem)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: -.071em;
}

h1 em {
  display: block;
  padding: .045em .08em .14em 0;
  color: var(--berry);
  font-size: .87em;
  font-weight: 400;
  letter-spacing: -.067em;
}

.intro-copy {
  max-width: 26rem;
  margin: clamp(.7rem, 2vw, 1.45rem) 0 clamp(1.45rem, 2.65vw, 2.3rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.1875rem);
  line-height: 1.6;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  max-width: 26rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: flex;
  min-height: 3.25rem;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .58rem .45rem;
  border: 1px solid var(--button-border);
  border-radius: .45rem;
  background: var(--cream);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-links svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--berry);
}

.social-links .primary {
  border-color: var(--berry);
  background: var(--berry);
  color: white;
}

.social-links .primary svg {
  color: inherit;
}

@media (hover: hover) {
  .social-links a:hover {
    border-color: var(--berry);
    background: #f2e1dc;
    color: var(--berry-dark);
  }

  .social-links .primary:hover {
    border-color: var(--berry-dark);
    background: var(--berry-dark);
    color: white;
  }
}

.social-links a:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}

.social-links a:active {
  box-shadow: inset 0 0 0 1px currentColor;
}

.gallery {
  --photo-padding: .65rem;
  width: min(100%, 28rem, max(13rem, calc((100svh - 14rem) * .75)));
  min-width: 0;
  justify-self: center;
}

.gallery-photos {
  touch-action: pan-y pinch-zoom;
}

.gallery-slide {
  margin: 0;
}

.gallery-image {
  position: relative;
  aspect-ratio: 3 / 4;
}

.gallery-image img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  padding: var(--photo-padding);
  border: 1px solid var(--rule);
  border-radius: calc(.35rem + var(--photo-padding) + 1px);
  background: var(--cream);
}

.gallery-controls:not([hidden]) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem;
  padding: .45rem .15rem 0;
}

.gallery-controls button {
  min-height: 2.75rem;
  border-radius: .35rem;
  color: var(--berry-dark);
  font: inherit;
  cursor: pointer;
}

.gallery-controls button:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

.gallery-step {
  padding-inline: .7rem;
  border: 1px solid var(--button-border);
  background: transparent;
}

.gallery-step:hover {
  background: #f2e1dc;
}

.gallery-dots {
  display: grid;
  width: min(100%, 12rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-self: center;
  gap: .1rem;
}

.gallery-dot {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-dot::before {
  width: .55rem;
  height: .55rem;
  border: 1px solid var(--berry);
  border-radius: 50%;
  content: "";
}

.gallery-dot[aria-current="true"]::before,
.gallery-dot:hover::before {
  background: var(--berry);
}

@media (max-width: 47.5rem) {
  .masthead {
    min-height: 3.75rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.15rem 1.5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 11.75vw, 5.5rem);
  }

  .intro {
    padding: 0;
  }

  .launch-note {
    margin-bottom: .65rem;
  }

  .intro-copy {
    margin-block: .65rem .9rem;
  }

  .social-links a {
    min-height: 2.75rem;
  }

  .gallery {
    display: grid;
    --photo-padding: .45rem;
    width: min(100%, 19rem, max(15rem, 39svh));
  }

  .gallery-controls:not([hidden]) {
    grid-row: 1;
    padding: 0 .15rem .4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-links a {
    transition: none;
  }
}
