@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Noto+Sans+TC:wght@100..900&display=swap');

@font-face {
  font-family: "Avenir";
  src: url("assets/fonts/avenir-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("assets/fonts/avenir-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("assets/fonts/avenir-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --page-blue: #a0d6eb;
  --brand-blue: #00a3c0;
  --text-blue: #2a4758;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-blue);
  color: var(--text-blue);
  font-family: Avenir, "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  background: var(--page-blue);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.brush-layer {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.brush {
  animation-duration: 2.5s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  height: auto;
  position: absolute;
  user-select: none;
  will-change: opacity, transform;
}

.brush-top {
  animation-name: brushTopEnter;
  left: 0;
  top: 0;
  transform-origin: top left;
  width: 33.333vw;
}

.brush-bottom {
  animation-name: brushBottomEnter;
  bottom: 0;
  right: 0;
  transform-origin: bottom right;
  width: 24vw;
}

@keyframes brushTopEnter {
  from {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(0.5);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes brushBottomEnter {
  from {
    opacity: 0.1;
    transform: translate(50%, 50%) scale(0.5);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brush {
    animation: none;
  }
}

.utility-bar {
  align-items: center;
  color: var(--brand-blue);
  display: flex;
  gap: 10px;
  height: 156px;
  position: absolute;
  right: 69px;
  top: 0;
  z-index: 10;
}

.language-switch {
  align-items: center;
  display: flex;
  gap: 5px;
}

.language-switch a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.notice-area {
  display: grid;
  inset: 78px 0 0;
  overflow: hidden;
  overflow-y: auto;
  padding: 15px 0;
  place-items: center;
  position: absolute;
  z-index: 8;
}

.notice-card {
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 34px;
  height: auto;
  max-width: calc(100% - 30px);
  overflow: hidden;
  padding: 76px 82px 72px;
  position: relative;
  width: min(760px, 72vw);
}

.brand-mark {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.brand-mark img {
  display: block;
  height: auto;
  max-width: 380px;
  min-width: 160px;
  width: 20vw;
}

.notice-copy {
  color: var(--text-blue);
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 590px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.notice-copy p {
  margin: 0;
}

@media (max-width: 991px) {
  .brush-top {
    width: 62vw;
  }

  .brush-bottom {
    width: 42vw;
  }

  .utility-bar {
    height: 92px;
    right: 30px;
  }

  .notice-area {
    inset: 58px 0 0;
  }

  .notice-card {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    gap: 28px;
    padding: 58px 50px 54px;
    width: min(690px, calc(100vw - 30px));
  }

  .brand-mark img {
    width: min(300px, 48vw);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .brush-top {
    left: -20vw;
    width: 112vw;
  }

  .brush-bottom {
    right: -28vw;
    width: 88vw;
  }

  .utility-bar {
    height: 70px;
    right: 20px;
  }

  .notice-area {
    inset: 70px 0 18px;
    padding: 0;
  }

  .notice-card {
    gap: 24px;
    max-width: calc(100vw - 24px);
    padding: 44px 28px 40px;
    width: calc(100vw - 24px);
  }

  .brand-mark img {
    width: min(220px, 58vw);
  }

  .notice-copy {
    font-size: 15px;
    line-height: 1.7;
  }

}
