* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --background: #130910;
  --text: #fff1f3;
  --secondary: #d3b4c1;
  --accent: #efa0bb;
  --line: rgb(237 177 201 / 17%);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 85% 9%, #33101f, transparent 43%), var(--background);
  background-repeat: no-repeat;
}

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

button, input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #ffd4e2;
  outline-offset: 4px;
}

.shell {
  width: min(100% - 6rem, 88rem);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .94rem;
  letter-spacing: .16em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid rgb(239 160 187 / 55%);
  border-radius: 50%;
  color: var(--accent);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 1.14rem;
  letter-spacing: 0;
}

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(39rem, min(48rem, calc(100svh - 8.75rem)));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #16070e;
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 24%);
}

.stage-art, .stage-art::after, .stage-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-art {
  z-index: -1;
}

.stage-art::after {
  content: "";
  background: linear-gradient(91deg, #170810 0%, rgb(23 8 16 / 84%) 13%, rgb(23 8 16 / 30%) 42%, transparent 61%);
}

.stage-art img {
  display: block;
  object-fit: cover;
  object-position: center 12%;
}

.intro {
  width: min(100%, 32rem);
  margin-left: clamp(2.5rem, 6.35vw, 6.5rem);
  padding: 3.25rem 1.75rem 3rem 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1.18rem;
  color: var(--accent);
  font-size: .88rem;
  letter-spacing: .21em;
}

.eyebrow::before {
  content: "";
  flex: 0 0 1.65rem;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  color: #fff1f5;
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  font-size: clamp(4rem, 9vw, 8.4rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: .025em;
}

.description {
  margin: 1.2rem 0 2.1rem;
  color: var(--secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: .085em;
}

.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  min-width: 11.75rem;
  padding: .8rem 1.5rem;
  border: 1px solid #f9c1d3;
  border-radius: .3rem;
  background: #f6b2c7;
  box-shadow: 0 .55rem 1.9rem rgb(244 128 172 / 15%);
  color: #30101e;
  font-weight: 700;
  letter-spacing: .1em;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.enter:hover {
  background: #ffccdb;
  box-shadow: 0 .55rem 1.9rem rgb(244 128 172 / 25%);
}

.address-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  width: min(100%, 23.25rem);
  margin-top: 2.35rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: rgb(30 12 22 / 86%);
}

.address-details {
  min-width: 0;
  padding-left: .3rem;
}

.address-details label {
  display: block;
  margin-bottom: .25rem;
  color: var(--secondary);
  font-size: .875rem;
}

.address-details input {
  display: block;
  width: 100%;
  max-width: 14rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
}

.copy {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid rgb(235 164 192 / 26%);
  border-radius: .25rem;
  color: #f8dce7;
  background: #351626;
  cursor: pointer;
  font-size: .875rem;
}

.copy:hover {
  background: #532239;
}

.feedback:empty {
  display: none;
}

.feedback {
  position: absolute;
  right: 0;
  bottom: calc(100% + .5rem);
  max-width: 100%;
  margin: 0;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: #351626;
  font-size: .875rem;
}

.save-note {
  margin: .85rem 0 0;
  color: var(--secondary);
  font-size: .875rem;
  line-height: 1.5;
}

.footer {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  color: var(--secondary);
  letter-spacing: .08em;
}

@media (max-width: 980px) {
  .shell {
    width: calc(100% - 3rem);
  }

  .stage-art img {
    object-position: 65% 12%;
  }
}

@media (max-width: 740px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .masthead {
    min-height: 3.8rem;
  }

  .brand {
    padding-left: .35rem;
  }

  .stage {
    align-items: start;
    min-height: 0;
  }

  .stage-art {
    bottom: auto;
    height: clamp(21rem, 85vw, 30rem);
  }

  .stage-art img {
    object-position: center 27%;
  }

  .stage-art::after {
    background: linear-gradient(180deg, transparent 41%, rgb(22 7 14 / 24%) 57%, #16070e 98%);
  }

  .intro {
    width: 100%;
    margin-left: 0;
    padding: clamp(13rem, 64vw, 22rem) clamp(1rem, 5vw, 2.25rem) 1.65rem;
  }

  .eyebrow {
    margin-bottom: .6rem;
  }

  h1 {
    font-size: clamp(3.5rem, 13.8vw, 5.25rem);
  }

  .description {
    margin: .65rem 0 1.25rem;
    font-size: 1rem;
    letter-spacing: .025em;
  }

  .enter {
    min-height: 3.2rem;
    width: min(100%, 23.25rem);
  }

  .address-card {
    margin-top: .75rem;
  }

  .footer {
    min-height: 3.25rem;
    padding-left: .35rem;
  }
}

@media (max-width: 365px) {
  .address-details input {
    font-size: .875rem;
  }
}

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