:root {
  --color-bg: #8ecae6;
  --color-accent: #ffb703;
  --color-ink: #023047;
}

@font-face {
  font-family: "Bree Serif";
  src: url("/static/fonts/BreeSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Variable";
  src: url("/static/fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans Variable", "Segoe UI", sans-serif;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.1rem 1rem 1.1rem;
}

.card-wrapper {
  position: relative;
  width: min(1240px, 80vw);
  filter: drop-shadow(0 18px 20px rgba(2, 48, 71, 0.24));
}

.paper-card {
  width: 100%;
  aspect-ratio: 375 / 281;
  padding: clamp(2.2rem, 5.4vw, 4.1rem) clamp(2rem, 6.2vw, 5.5rem)
    clamp(2.1rem, 4.8vw, 3.3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: center / 100% 100% no-repeat url("/static/images/papier-dechire.png");
}

@media (min-width: 901px) {
  .paper-card {
    aspect-ratio: 375 / 220;
  }
}

.pin {
  position: absolute;
  top: clamp(0.25rem, 0.7vw, 0.55rem);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(4.2rem, 7.1vw, 6.4rem);
  pointer-events: none;
  z-index: 2;
}

.content {
  width: 100%;
  max-width: 40rem;
  transform: translateY(-2rem);
}

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: clamp(12.5rem, 20.5vw, 20rem);
  height: auto;
}

h1 {
  margin: 0 0 0;
  font-family: "Bree Serif", serif;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.91;
  color: var(--color-ink);
}

.subtitle {
  margin: clamp(0.8rem, 1.8vw, 1.3rem) 0 0;
  font-size: clamp(1.3rem, 2.15vw, 2rem);
  line-height: 1.19;
}

.subtitle-star {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: baseline;
  transform: translateY(0.14em);
}

.status-pill {
  margin-top: clamp(0.95rem, 2.2vw, 1.65rem);
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-size: clamp(0.82rem, 1vw, 1.02rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.015em;
  padding: 0.46em 1.35em;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: clamp(1.4rem, 2.2vw, 2.2rem);
}

.social-links a {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}

@media (max-width: 900px) {
  .stage {
    align-items: flex-start;
    padding: 5.7rem 0 1rem;
    overflow-x: hidden;
  }

  .card-wrapper {
    width: 100vw;
    max-width: none;
    flex-shrink: 0;
  }

  .paper-card {
    width: 168vw;
    margin-left: -34vw;
    margin-right: -34vw;
    padding: 4.05rem 3.1rem 3.1rem;
  }

  .pin {
    width: 5.75rem;
    top: 0.35rem;
  }

  .content {
    max-width: 21rem;
    transform: translateY(-2rem);
  }

  .brand-logo {
    width: clamp(15rem, 44vw, 17.5rem);
  }

  h1 {
    font-size: clamp(3.5rem, 12.6vw, 5rem);
    line-height: 0.9;
  }

  .subtitle {
    margin-top: 0.8rem;
    font-size: clamp(1.05rem, 5vw, 1.55rem);
    line-height: 1.17;
  }

  .status-pill {
    margin-top: 1.02rem;
    font-size: clamp(0.8rem, 3.2vw, 0.94rem);
    padding: 0.53em 1.46em;
  }

  .social-links {
    gap: 3rem;
    padding-bottom: 11rem;
  }

  .social-links a {
    width: 2.6rem;
    height: 2.6rem;
  }

  .social-links img {
    width: 3rem;
    height: 3rem;
  }
}
