@font-face {
  font-family: "Source Han Serif CN";
  src: url("./assets/fonts/camus-source-serif-cn-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Serif CN";
  src: url("./assets/fonts/camus-source-serif-cn-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Source Han Serif CN";
  src: url("./assets/fonts/camus-source-serif-cn-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --site-red: #e9283e;
  --site-ink: #060504;
  --site-nav-bg: #0b0a09;
  --site-warm: #f2ecd8;
  --site-nav-height: 76px;
  --site-nav-height-mobile: 64px;
}

@keyframes site-shell-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: site-shell-enter 220ms ease both;
}

body.site-shell-leaving {
  opacity: 0;
  transition: opacity 180ms ease;
}

.site-contact {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 80;
  appearance: none;
  border: 0;
  height: 26px;
  padding: 5px 7px;
  background: transparent;
  color: rgba(242, 236, 216, 0.62);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0.48;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-contact svg {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-contact:hover,
.site-contact:focus-visible {
  color: var(--site-warm);
  opacity: 0.9;
}

.site-contact:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

body.is-intro .site-contact {
  pointer-events: none;
  opacity: 0;
}

body.secondary-page a,
body.secondary-page button,
body.secondary-page input,
body.secondary-page textarea,
body.secondary-page select,
body.secondary-page [role="button"],
body.secondary-page [tabindex]:not([tabindex="-1"]) {
  cursor: pointer !important;
}

.top-nav {
  height: var(--site-nav-height) !important;
  min-height: var(--site-nav-height) !important;
  padding: 0 clamp(28px, 3vw, 56px) !important;
  background: var(--site-nav-bg) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.top-nav--flow {
  position: relative;
  z-index: 30;
}

.top-nav__brand {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(26px, 2.4vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: var(--site-warm) !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: color 200ms ease !important;
}

.secondary-page .top-nav__brand:hover,
.secondary-page .top-nav__brand:focus-visible {
  color: var(--site-red) !important;
}

.top-nav__links {
  display: flex !important;
  align-items: stretch !important;
  height: 100% !important;
  gap: 8px !important;
}

.top-nav__links a {
  display: flex !important;
  align-items: center !important;
  position: relative;
  padding: 0 clamp(20px, 2.5vw, 34px) !important;
  box-sizing: border-box !important;
  font-family: "Source Han Serif CN", "思源宋体 CN", "Noto Serif SC", "Songti SC", serif !important;
  font-size: clamp(16px, 1.45vw, 19px) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: var(--site-warm) !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.top-nav__links a.is-active {
  height: 100% !important;
  align-self: stretch;
  background: var(--site-red) !important;
  color: #fff !important;
}

.top-nav__links a:not(.is-active)::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 10px;
  height: 4px;
  background: var(--site-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.top-nav__links a:not(.is-active):hover::after,
.top-nav__links a:not(.is-active):focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 760px) {
  .top-nav {
    height: var(--site-nav-height-mobile) !important;
    min-height: var(--site-nav-height-mobile) !important;
    padding: 0 12px !important;
  }

  .top-nav__brand {
    font-size: clamp(16px, 4.8vw, 20px) !important;
    letter-spacing: 0 !important;
  }

  .top-nav__links {
    gap: 0 !important;
  }

  .top-nav__links a {
    padding: 0 clamp(7px, 2.2vw, 12px) !important;
    font-size: clamp(13px, 3.5vw, 16px) !important;
  }

  .top-nav__links a:not(.is-active)::after {
    bottom: 10px;
  }

  .site-contact {
    left: 8px;
    bottom: 8px;
    height: 24px;
    padding: 4px 6px;
    font-size: 9px;
  }

}

@media (max-width: 430px) {
  .top-nav__brand {
    font-size: 0 !important;
  }

  .top-nav__brand::after {
    content: "CAMUS";
    font-size: 15px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.site-shell-leaving {
    animation: none !important;
    transition: none !important;
  }

  .top-nav__links a::after {
    transition: none !important;
  }

  .site-contact {
    transition: none !important;
  }

}
