@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../assets/fonts/playfair-display-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #252321;
  --muted-ink: #5b554e;
  --paper: #fff;
  --paper-light: #fff;
  --turquoise: #3890b6;
  --orange: #ed8c21;
  --shadow: rgba(45, 27, 12, 0.28);
  --card-rx: 0deg;
  --card-ry: 0deg;
  --card-lift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      hsla(78, 0%, 63%, 0.05) 0,
      hsla(78, 0%, 63%, 0.05) 1px,
      transparent 1px,
      transparent 104px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(78, 0%, 63%, 0.05) 0,
      hsla(78, 0%, 63%, 0.05) 1px,
      transparent 1px,
      transparent 104px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(78, 0%, 63%, 0.08) 0,
      hsla(78, 0%, 63%, 0.08) 1px,
      transparent 1px,
      transparent 26px
    ),
    repeating-linear-gradient(
      90deg,
      hsla(78, 0%, 63%, 0.08) 0,
      hsla(78, 0%, 63%, 0.08) 1px,
      transparent 1px,
      transparent 26px
    ),
    linear-gradient(45deg, #fff, #fff);
  font-family: "Open Sans", Arial, sans-serif;
  font-synthesis: none;
  isolation: isolate;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(52rem, 72vw);
  aspect-ratio: 1;
  background:
    conic-gradient(
      from 212deg at 43% 45%,
      #050507 0 24%,
      #3890b6 24% 50%,
      #050507 50% 74%,
      #126ca5 74% 100%
    );
  content: "";
  filter: blur(clamp(4.5rem, 10vw, 9rem));
  opacity: 0.78;
  pointer-events: none;
  transform: rotate(-12deg);
}

body::before {
  top: clamp(-28rem, -28vw, -13rem);
  right: clamp(-30rem, -25vw, -12rem);
}

body::after {
  bottom: clamp(-30rem, -30vw, -15rem);
  left: clamp(-34rem, -30vw, -16rem);
  opacity: 0.58;
  transform: rotate(168deg) scale(0.82);
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.composition {
  width: min(48rem, calc(100vw - 2rem));
  padding: 0 0 clamp(6.5rem, 12vw, 9rem);
}

.announcement-sheet {
  position: relative;
  min-height: 39rem;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 7vw, 5.5rem) 17rem;
  background-color: var(--paper);
  background-image:
    linear-gradient(125deg, rgba(255, 255, 255, 0.42), transparent 34%),
    repeating-linear-gradient(94deg, rgba(48, 58, 62, 0.006) 0 1px, transparent 1px 7px);
  border: 1px solid rgba(79, 70, 58, 0.08);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.42) inset,
    2px 3px 2px rgba(47, 28, 13, 0.1),
    14px 20px 38px rgba(45, 25, 10, 0.22);
  isolation: isolate;
}

.announcement-sheet::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.18), transparent 52%),
    radial-gradient(ellipse at 80% 85%, rgba(76, 68, 57, 0.015), transparent 50%);
  content: "";
  pointer-events: none;
}

.announcement {
  max-width: 34rem;
}

.announcement__label {
  margin: 0 0 1rem;
  color: var(--turquoise);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
}

.announcement__copy {
  max-width: 33rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--muted-ink);
  font-size: 1rem;
  line-height: 1.72;
}

.announcement__copy p {
  margin: 0;
}

.announcement__copy p + p {
  margin-top: 1rem;
}

.business-card {
  position: absolute;
  right: clamp(-3rem, -4vw, -1.5rem);
  bottom: -7.25rem;
  z-index: 2;
  display: grid;
  width: min(40rem, calc(100% - 2.5rem));
  min-height: 22.5rem;
  grid-template-columns: 37% 63%;
  overflow: hidden;
  padding: 2.25rem;
  background-color: var(--paper);
  background-image:
    linear-gradient(130deg, rgba(255, 255, 255, 0.42), transparent 34%),
    repeating-linear-gradient(96deg, rgba(48, 58, 62, 0.006) 0 1px, transparent 1px 7px);
  border: 1px solid rgba(79, 70, 58, 0.08);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.42) inset,
    2px 3px 2px rgba(48, 28, 12, 0.12),
    13px 18px 32px rgba(45, 27, 12, 0.24);
  transform:
    perspective(75rem)
    translate3d(0, var(--card-lift), 0)
    rotateX(var(--card-rx))
    rotateY(var(--card-ry))
    rotateZ(-1deg);
  transform-origin: 50% 60%;
  transform-style: preserve-3d;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
  will-change: transform;
}

.business-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 40%);
  content: "";
  pointer-events: none;
}

.business-card__brand {
  display: grid;
  min-width: 0;
  place-items: center;
  padding-right: 1.75rem;
}

.business-card__logo {
  display: block;
  width: min(100%, 10rem);
  height: auto;
  mix-blend-mode: multiply;
}

.business-card__details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  border-left: 1px solid rgba(67, 60, 50, 0.13);
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.identity__portrait {
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 auto;
  margin-left: auto;
  object-fit: cover;
  object-position: 50% 38%;
  border: 2px solid var(--turquoise);
  border-radius: 50%;
}

.identity__text {
  min-width: 0;
}

.identity__name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 0.98;
}

.identity__name span {
  display: block;
}

.identity__role {
  margin: 0.5rem 0 0;
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.address {
  margin: 1.05rem 0 1.2rem;
  color: #4e4943;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.embossed-control {
  display: inline-flex;
  min-width: 2.875rem;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--turquoise);
  border: 1px solid var(--turquoise);
  border-radius: 100px;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    transform 90ms ease,
    color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.embossed-control--contact {
  min-width: 7.25rem;
  padding: 0.8rem 1.35rem;
}

.embossed-control--icon {
  width: 2.875rem;
  padding: 0;
}

.embossed-control img {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  filter: brightness(0) invert(1);
  transition: filter 120ms ease;
}

.embossed-control:hover {
  color: var(--turquoise);
  background: #fff;
}

.embossed-control:hover img {
  filter: none;
}

.embossed-control:active {
  transform: scale(0.97);
}

.embossed-control:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 4px;
}

@media (min-width: 1200px) {
  .composition {
    width: min(72rem, calc(100vw - 4rem));
    padding-bottom: 0;
  }

  .announcement-sheet {
    width: 48rem;
    min-height: 0;
    padding-bottom: 5rem;
  }

  .announcement {
    max-width: 28rem;
  }

  .announcement__copy {
    max-width: 27rem;
  }

  .business-card {
    top: 8.5rem;
    right: -22rem;
    bottom: auto;
    width: 35rem;
    min-height: 19.5rem;
    grid-template-columns: 36% 64%;
    padding: 1.75rem;
  }
}

@media (max-width: 899px) {
  .page {
    align-items: start;
    padding-top: clamp(2rem, 7vw, 4rem);
  }

  .composition {
    width: min(43rem, calc(100vw - 2rem));
    padding-bottom: 8rem;
  }

  .announcement-sheet {
    min-height: 38rem;
    padding-bottom: 16rem;
  }

  .business-card {
    right: 4%;
    bottom: -7rem;
    width: 92%;
    min-height: 21rem;
    grid-template-columns: 35% 65%;
    padding: clamp(1.75rem, 4vw, 2.25rem);
  }
}

@media (max-width: 600px) {
  .page {
    display: block;
    padding: 1rem;
  }

  .composition {
    width: 100%;
    padding: 0 0 12.5rem;
  }

  .announcement-sheet {
    min-height: 44rem;
    padding: clamp(2.4rem, 9vw, 3.5rem) clamp(1.4rem, 7vw, 2.25rem) 25rem;
  }

  .announcement__label {
    max-width: none;
    font-size: 1rem;
    line-height: 1.5;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .announcement__copy {
    font-size: 1rem;
    line-height: 1.62;
  }

  .business-card {
    right: auto;
    bottom: -11.5rem;
    left: 50%;
    display: flex;
    width: calc(100% - 2rem);
    min-height: 32rem;
    flex-direction: column;
    padding: 1.75rem;
    transform: translateX(-50%);
    will-change: auto;
  }

  .business-card__brand {
    grid-column: auto;
    grid-row: auto;
    order: 0;
    min-height: 11rem;
    padding: 0 0 1.4rem;
  }

  .business-card__logo {
    width: 8rem;
  }

  .business-card__details {
    grid-column: auto;
    grid-row: auto;
    order: 1;
    flex: 1;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(67, 60, 50, 0.13);
    border-right: 0;
    border-left: 0;
    text-align: left;
  }

  .identity__name {
    font-size: 1.75rem;
  }

  .identity {
    justify-content: space-between;
  }

  .address {
    margin: 1.15rem 0 1.4rem;
  }

  .actions {
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .embossed-control--contact {
    min-width: 7.5rem;
  }
}

@media (max-width: 350px) {
  .page {
    padding-inline: 0.6rem;
  }

  .announcement-sheet {
    padding-inline: 1.2rem;
  }

  .business-card {
    width: calc(100% - 1.25rem);
    padding-inline: 1.25rem;
  }

  .actions {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .business-card {
    --card-rx: 0deg !important;
    --card-ry: 0deg !important;
    --card-lift: 0px !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  body::after {
    display: none;
  }
}
