@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variable.woff") format("woff"),
       url("../fonts/nunito-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --red: #c76e73;
  --rose: #f4dce0;
  --white: #ffffff;
  --ink: #6e2538;
  --rule: #edd1d5;
  --gutter: clamp(24px, 4.65vw, 80px);
  font-family: "Nunito", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { background: var(--white); }
img { max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.header, .hero, .footer { position: relative; z-index: 1; }

.mesh {
  position: absolute;
  display: none;
  max-width: none;
  height: auto;
  opacity: .82;
}

.background__art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: .55;
}

.mesh--right {
  width: min(65vw, 960px);
  right: -21.5vw;
  top: -10px;
}

.mesh--left {
  width: min(55vw, 820px);
  left: -17vw;
  bottom: -24vw;
  transform: rotate(180deg);
}

.header {
  padding: 56px var(--gutter) 0;
}

.brand-logo {
  display: block;
  width: clamp(220px, 20.6vw, 306px);
  height: auto;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 88px;
  text-align: center;
  outline: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1140px;
}

.hero__ruby {
  display: block;
  width: auto;
  height: 200px;
}

h1 {
  margin: 22px 0 14px;
  color: var(--red);
  font-size: clamp(72px, 8.88vw, 132px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.tagline {
  margin: 0;
  font-size: clamp(25px, 2.56vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.005em;
}

.updates {
  margin: 6px 0 0;
  font-size: clamp(19px, 1.82vw, 27px);
  font-weight: 400;
  line-height: 1.24;
}

.instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 378px;
  min-height: 70px;
  margin-top: 32px;
  padding: 14px 32px;
  border: 2px solid var(--red);
  border-radius: 19px;
  background: var(--rose);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.instagram-button img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.instagram-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

@media (hover: hover) {
  .instagram-button:hover {
    background: #efd0d6;
    transform: translateY(-2px);
  }
}

.instagram-button:active { transform: translateY(0); }

.footer {
  margin: 0 var(--gutter);
  padding: 14px 0 50px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.footer p { margin: 0; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

@media (min-width: 901px) and (max-height: 850px) {
  .header { padding-top: 32px; }
  .brand-logo { width: 250px; }
  .hero { padding-top: 35px; padding-bottom: 55px; }
  .hero__ruby { height: 150px; }
  h1 { font-size: 108px; margin-top: 18px; }
  .tagline { font-size: 30px; }
  .updates { font-size: 21px; }
  .instagram-button { min-height: 60px; min-width: 330px; font-size: 21px; margin-top: 28px; }
  .instagram-button img { width: 28px; height: 28px; }
  .footer { padding-bottom: 28px; }
}

@media (max-width: 900px) {
  .background__art { display: none; }
  .mesh { display: block; }
  .header { padding-top: 36px; }
  .brand-logo { width: 240px; }
  .hero { padding: 48px 28px 64px; }
  .hero__ruby { height: 170px; }
  h1 { font-size: clamp(65px, 9.8vw, 105px); }
  .tagline { max-width: 640px; font-size: 28px; }
  .updates { font-size: 21px; margin-top: 10px; }
  .instagram-button { min-width: 330px; min-height: 62px; font-size: 21px; }
  .instagram-button img { width: 28px; height: 28px; }
  .mesh--right { width: 90vw; right: -45vw; opacity: .62; }
  .mesh--left { width: 85vw; left: -40vw; bottom: -38vw; opacity: .62; }
  .footer { padding-bottom: 32px; }
}

@media (max-width: 600px) {
  .header { padding-top: 28px; }
  .brand-logo { width: 220px; }
  .hero { padding: 42px 24px 52px; }
  .hero__ruby { height: 140px; }
  h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 11.2vw, 68px);
    line-height: 1.12;
    letter-spacing: -.04em;
  }
  .tagline { max-width: 330px; font-size: 22px; line-height: 1.35; }
  .tagline span { display: block; }
  .updates { max-width: 285px; margin-top: 12px; font-size: 17px; line-height: 1.6; }
  .instagram-button {
    gap: 12px;
    min-width: 0;
    min-height: 56px;
    max-width: 100%;
    margin-top: 28px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 17px;
    border-width: 1.5px;
  }
  .instagram-button img { width: 23px; height: 23px; }
  .mesh--right { width: 120vw; right: -85vw; top: 8%; opacity: .42; }
  .mesh--left { width: 115vw; left: -60vw; bottom: -50vw; opacity: .52; }
  .footer { font-size: 12px; padding: 14px 0 26px; }
}

@media (max-width: 350px) {
  .brand-logo { width: 190px; }
  .hero { padding-inline: 18px; }
  .tagline { font-size: 20px; }
  .updates { font-size: 16px; }
  .instagram-button { padding-inline: 16px; font-size: 16px; }
}

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