:root {
  color-scheme: dark;
  --night: #030812;
  --gold: #f0dcae;
  --seal: clamp(5.5rem, 13vh, 8.5rem);
  /* Room kept under the banner for the line and the seal. */
  --foot: 10rem;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.unseen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
}

/* A banner on the top edge: as wide as the window, but never so tall that the line and seal fall off the
   screen, so a short window narrows it (keeping its 1408:672 shape, centred) instead of cropping it. */
.city {
  position: relative;
  flex: none;
  width: 100%;
  max-width: calc((100vh - var(--foot)) * 1408 / 672);
  max-width: calc((100svh - var(--foot)) * 1408 / 672);
  margin: 0 auto;
}

/* The city, lit from the robot in its middle and lost to the night at its bottom and sides. */
.city img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask:
    linear-gradient(to bottom, #000 58%, rgb(0 0 0 / 0.5) 82%, transparent 100%),
    radial-gradient(ellipse 54% 120% at 50% 40%, #000 40%, rgb(0 0 0 / 0.45) 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to bottom, #000 58%, rgb(0 0 0 / 0.5) 82%, transparent 100%),
    radial-gradient(ellipse 54% 120% at 50% 40%, #000 40%, rgb(0 0 0 / 0.45) 74%, transparent 100%);
  mask-composite: intersect;
}

.city::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  background: radial-gradient(
    ellipse 34% 62% at 50% 54%,
    rgb(255 220 150 / 0.7) 0,
    rgb(255 190 100 / 0.4) 40%,
    rgb(255 170 80 / 0) 100%
  );
}

/* The line and the seal float just under the city, in its fade. */
.saying {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 2rem;
  margin-top: -1.5rem;
  padding: 0 1.5rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  font-size: clamp(1.4rem, 2.35vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: 0.012em;
  color: var(--gold);
}

.saying p {
  margin: 0;
}

.saying p:first-child {
  text-align: right;
}

.seal {
  width: var(--seal);
  height: var(--seal);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(240 220 174 / 0.5),
    0 0 2.2rem rgb(120 225 255 / 0.4),
    0 0 6rem rgb(255 190 100 / 0.22);
}

/* The picture is drawn larger than the seal so only its glowing ring and the robot inside it show. */
.seal img {
  display: block;
  width: 168%;
  height: 168%;
  margin: -34%;
  max-width: none;
}

/* A narrow window stacks the line around the seal. */
@media (max-width: 760px) {
  :root {
    --foot: 16rem;
  }

  .saying {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    row-gap: 1.2rem;
    margin-top: 0.5rem;
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .saying p:first-child {
    text-align: center;
  }
}
