/* Reset default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: Helvetica, Arial, sans-serif;
  color: #fff;
}

/* On html only: a body background would paint over the fixed image */
html {
  background: #161a1f;
}

/* Image, headline and share bar are all pinned to the viewport so they
   can never drift apart if the page box ends up shorter than the window */
.background,
.content,
.share {
  position: fixed;
  left: 0;
  right: 0;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Headline, with a dark fade so it reads over the hair */
.content {
  top: 0;
  text-align: center;
  padding: calc(1.5rem + env(safe-area-inset-top)) 1rem 4rem;
  background: linear-gradient(to bottom, rgba(10, 12, 15, 0.8) 0%, rgba(10, 12, 15, 0.45) 60%, rgba(10, 12, 15, 0) 100%);
}

.content h1 {
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.content h1 em {
  font-style: normal;
  color: #f00808;
}

/* Share bar */
.share {
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 4rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10, 12, 15, 0.75) 0%, rgba(10, 12, 15, 0) 100%);
}

.share-native {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 26px;
  background-color: #f00808;
  color: #fff;
  font: 700 20px/1 Helvetica, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease;
}

.share-native[hidden] {
  display: none;
}

.share-native svg {
  width: 22px;
  height: 22px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.share-buttons a,
.share-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background-color: #f00808;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.share-buttons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.share-buttons svg[fill="none"] {
  fill: none;
}

.share-native:hover,
.share-buttons a:hover,
.share-buttons button:hover {
  background-color: #0015BC;
}

.share-native:focus-visible,
.share-buttons a:focus-visible,
.share-buttons button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.toast {
  min-height: 1.2em;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}
