:root {
  color-scheme: light;
  --ink: #101820;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.64);
  --boot-bg: #58add2;
  --hero-image-url: none;
  --hero-fallback:
    radial-gradient(circle at 55% 14%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #73bfe0 0%, #7cc7e1 35%, #197da8 58%, #0b4f78 100%);
}

:root[data-hero-mode="night"] {
  --boot-bg: #171923;
  --hero-fallback:
    radial-gradient(circle at 50% 43%, rgba(245, 116, 48, 0.42), rgba(245, 116, 48, 0) 26%),
    linear-gradient(180deg, #202232 0%, #503747 44%, #141923 68%, #091017 100%);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background: var(--boot-bg);
  color: var(--white);
  -webkit-user-select: none;
  user-select: none;
}

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

.site-shell {
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-fallback);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--boot-bg);
  background-image: var(--hero-image-url), var(--hero-fallback);
  background-size: cover;
  background-position: center center;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(5, 12, 18, 0) 52%, rgba(3, 9, 13, 0.12) 100%),
    linear-gradient(90deg, rgba(2, 9, 13, 0.12) 0%, rgba(2, 9, 13, 0) 42%, rgba(2, 9, 13, 0.08) 100%);
  pointer-events: none;
}

.image-guard {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: transparent;
  -webkit-user-drag: none;
  user-drag: none;
}

.topline {
  position: absolute;
  top: 28px;
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.wordmark {
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0;
}

.mail-tape {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(22px, 4vh, 46px);
  z-index: 14;
  display: inline-flex;
  min-width: min(82vw, 268px);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 28px 9px;
  transform: rotate(-3.2deg);
  color: rgba(247, 248, 241, 0.88);
  background:
    radial-gradient(ellipse at 16% 34%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 22%),
    radial-gradient(ellipse at 74% 66%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 26%),
    linear-gradient(103deg, rgba(255, 255, 255, 0) 0 23%, rgba(255, 255, 255, 0.20) 24%, rgba(255, 255, 255, 0.05) 29%, rgba(0, 0, 0, 0.10) 31%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(82deg, rgba(255, 255, 255, 0) 0 58%, rgba(255, 255, 255, 0.13) 60%, rgba(0, 0, 0, 0.10) 63%, rgba(255, 255, 255, 0) 66%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, rgba(255, 255, 255, 0.02) 1px 3px, rgba(0, 0, 0, 0.04) 3px 5px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 1px, rgba(255, 255, 255, 0.04) 1px 3px, rgba(255, 255, 255, 0) 3px 8px),
    linear-gradient(180deg, #9a9f9a 0%, #7e8582 44%, #6d7371 68%, #8a908c 100%);
  background-blend-mode: screen, multiply, normal, normal, normal, normal, normal;
  border: 0;
  clip-path: polygon(2% 7%, 98% 1%, 99% 17%, 97% 31%, 100% 49%, 97% 70%, 99% 94%, 3% 99%, 1% 83%, 3% 64%, 0 46%, 2% 28%);
  box-shadow:
    0 3px 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 2px 7px rgba(0, 0, 0, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -2px 2px rgba(0, 0, 0, 0.24);
  font-family:
    "Segoe Print", "Bradley Hand ITC", "Microsoft YaHei", sans-serif;
  font-size: clamp(13px, 1.08vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 4px rgba(230, 234, 229, 0.12),
    0 1px 7px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
  filter: saturate(0.78) contrast(1.06);
}

.mail-tape::before,
.mail-tape::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, rgba(0, 0, 0, 0.08) 1px 4px, rgba(255, 255, 255, 0) 4px 7px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, rgba(0, 0, 0, 0.06) 1px 5px),
    #7a817e;
  box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.18);
}

.mail-tape::before {
  left: -14px;
  clip-path: polygon(20% 0, 100% 3%, 86% 12%, 100% 24%, 82% 37%, 100% 52%, 84% 66%, 100% 80%, 76% 100%, 18% 96%, 0 84%, 16% 68%, 0 54%, 14% 41%, 0 26%, 16% 12%);
}

.mail-tape::after {
  right: -14px;
  clip-path: polygon(0 4%, 82% 0, 100% 14%, 84% 29%, 100% 43%, 82% 56%, 100% 72%, 84% 88%, 96% 100%, 0 96%, 15% 84%, 0 70%, 14% 55%, 0 39%, 16% 22%);
}

@media (max-width: 720px) {
  .hero-media {
    background-position: center bottom;
  }

  .topline {
    top: 18px;
  }

  .mail-tape {
    right: 18px;
    bottom: 18px;
    min-width: 0;
    max-width: calc(100vw - 36px);
    min-height: 44px;
    padding-inline: 18px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}
