/* ==========================================================================
   MARGINE — landing page
   Layout scaled from the 1920x1080 InDesign artboard; 1 design unit = var(--u)
   ========================================================================== */

@font-face {
  font-family: 'Buckwheat TC';
  src: url('../fonts/buckwheat-tc.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Buckwheat TC', 'Oswald', 'Arial Narrow', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  /* one artboard unit, capped so the whole composition always fits */
  --u: min(100vw / 1920, 100svh / 1080);

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

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

.hero__content {
  position: relative;
  flex: none;
  width: calc(1920 * var(--u));
  height: calc(1080 * var(--u));
  padding: calc(128.5 * var(--u)) calc(80 * var(--u)) calc(80 * var(--u)) calc(300 * var(--u));
}

.hero__logo {
  display: block;
  width: calc(246 * var(--u));
  height: auto;
}

.hero__title {
  margin: calc(60.46 * var(--u)) 0 0;
  font-size: calc(97.644 * var(--u));
  line-height: calc(87.696 * var(--u));
  font-weight: 400;
  text-transform: uppercase;
}

.hero__address {
  margin: calc(29.53 * var(--u)) 0 0;
  font-size: calc(39 * var(--u));
  line-height: calc(33.264 * var(--u));
  letter-spacing: -0.01em;
}

.hero__social {
  display: block;
  margin: calc(52.74 * var(--u)) 0 0;
  font-size: calc(39 * var(--u));
  line-height: calc(73.281 * var(--u));
}

.hero__social-link {
  display: inline-block;
  position: relative;
  top: calc(7.24 * var(--u));
  margin-left: calc(12 * var(--u));
  line-height: 0;
  transition: opacity 0.25s ease;
}

.hero__social-link:hover,
.hero__social-link:focus-visible {
  opacity: 0.7;
}

.hero__social-icon {
  display: block;
  width: calc(43 * var(--u));
  height: calc(43 * var(--u));
}

/* Fluid layout for portrait and small screens ------------------------------ */

@media (max-width: 1023px), (max-aspect-ratio: 4 / 3) {
  .hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
  }

  .hero__image {
    object-position: 42% center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: clamp(32px, 12vw, 96px) clamp(24px, 8vw, 72px);
  }

  .hero__logo {
    width: min(52vw, 300px);
  }

  .hero__title {
    margin-top: min(9vw, 56px);
    font-size: min(9.4vw, 54px);
    line-height: 0.9;
  }

  .hero__address {
    margin-top: min(7vw, 40px);
    font-size: min(4.6vw, 26px);
    line-height: 1.15;
  }

  .hero__social {
    margin-top: min(5vw, 28px);
    font-size: min(4.6vw, 26px);
    line-height: 1.15;
  }

  .hero__social-link {
    top: min(1vw, 6px);
    margin-left: min(2vw, 12px);
  }

  .hero__social-icon {
    width: min(6.4vw, 36px);
    height: min(6.4vw, 36px);
  }

  .hero__br--wrap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__social-link {
    transition: none;
  }
}
